LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate and read dll in LabView

Hello,

 

I have a bit of a problem. I manage to generate a dll file on a simple addition and multiplication function. The Add VI add 2 doubles together and Muliplication VI multiplicate 2 doubles together. But when I try to read the dll in LabView using "Call Library Function" I don't manage to output correct value as seen from image 3 in attachment. What do I do wrong?

 

I hope someone can help me 🙂

 

br,

paalbrok

Download All
0 Kudos
Message 1 of 5
(3,072 Views)

Hi,

 

As observed in image 3, you have called only addition function in one CIN. And hence both outputs arg1 2 and arg 2 2 outputs the proper (addition) result as 2. If you want multiplication output also, kindly add one more CIN with multiplication function call. Kindly let me know if that answers your question or if i had misunderstood your question.

 

Mathan

0 Kudos
Message 2 of 5
(3,005 Views)

Hi paalbrok,

 

Is your problem solved? Any updates?

 

Mathan

0 Kudos
Message 3 of 5
(2,951 Views)

Hello Mathan,

 

I found out that I had forgotten to wire the inputs and output to the connector pane.. So now it works:)

 

br,

paalbrok

0 Kudos
Message 4 of 5
(2,942 Views)

Glad it worked. But just curious to see your final block diagram&front panel. Could you please share your vi or an image as you did in your first post?

0 Kudos
Message 5 of 5
(2,938 Views)