LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Button Press Event at Timeout Case in Event Structure?

We have a complicated "Event Structure"  Labview program, there are buttons for "Start", "Test", ...   . Each button has its "Value Changed" case in the Event Structure, there is a "Timeout" Case as well.

 

I would like to insert some code to automatic test those buttons rather than manually press button by mouse.  I am thinking to use the "Timeout" case to generate "Value Changed" Event for each button, Is that possible?

 

Regards

 

Samuel

0 Kudos
Message 1 of 2
(3,434 Views)

To trigger an event, you would write to a signaling value property of the control. One problem is the fact that your start, test, etc buttons are probably latch action, preventing the use of value properties. This means a little bit more code.

 

I don't like the thought of triggering events in the timeout case. Maybe an state machine would be a better choice. One state could be "continuous".

 

Would you mind attaching your program so we get a better idea what your questions is all about?

0 Kudos
Message 2 of 2
(3,427 Views)