LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL function called on input change

Solved!
Go to solution

Hi everybody,

 

I know this is very basic; but I didn't get it by my own. I'm very new to LabVIEW and wasn't able to find a solution in the forum.

 

I want to call a function from a DLL every time when I press a button; but unfortunately the function is only called at start-up.

So, how can I call a DLL function on a change of some input?

I attached a screenshot. With the stuff I tried. It didn't work. Now the function is called twice during start-up.

 

Thanks in advance and best regards,

Chris

 

0 Kudos
Message 1 of 5
(2,705 Views)
Solution
Accepted by topic author ChrisTango
If you want to call anything with a button press, use an event structure with a value change event.

I would recommend that you take any of the free LabVIEW tutorials available on the site and refer to the shipping examples - Help>Find Examples.
Message 2 of 5
(2,677 Views)

Take a look at the Event Structure.  That'll let you make things happen when a button is pressed.  Move your dll call inside this structure

Message 3 of 5
(2,674 Views)

Hi Dennis,

 

Thanks that helped me out. Now I know also where to find good examples. Smiley Happy

 

Thank you also Natas!

 

Best regards

-Chris

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

Thanks I got it work! Smiley Happy

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