LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

use event handler programmatically

Solved!
Go to solution

Hello, I use the Labview 8.2.1 and I would like to ask something about event handler.

I have some buttons and I use an event handler to perform their tasks. The buttons are used only with the mouse and not programmatically.

Now, I want to use a button programmatically without pressing it. I didn't find how to do this, so I created a boolean variable and I added to the event handler of a button a second "Event Specifier" of that boolean variable with the event "value change".

I assumed that it would work, but it does not, that is, the event handler is not used when the value of the boolean variable changes.

 

How can I solve it?

 

Thank you in advance.

0 Kudos
Message 1 of 2
(2,636 Views)
Solution
Accepted by topic author nikosfs

Write to the Value(Sgnl) property node of the variable you want to change.  This will set off an event programatically.

 

22272iA53B1FB96387ADA6

- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 2
(2,635 Views)