LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Latch action with event structure

If a boolean control is set to latch action and is handled by an event structure, the control is not reset after reading.

The event structure (conditon: value changed) is being executed and therfore the new value was recognized but after reading it is not reset. It only functions if you read the control itself and not the 'NewVal' element inside the event structure. Is it a bug or why is the latch action not handled consequently?
0 Kudos
Message 1 of 2
(3,108 Views)
Hi

This is not a bug. Look the "Caveats and Recommendations when Using Events in LabVIEW" in the LV help. I copied this from there:
When you trigger an event on a Boolean control configured with a latching mechanical action, the Boolean control does not reset to its default value until the block diagram reads the terminal on the Boolean control. You must read the terminal inside the event case for the mechanical action to work correctly. As a reminder, a note appears in the Edit Events dialog box when you configure a Value Changed event on a latched Boolean control.

Luca P.
Application Engineer
National Instruments
Regards,
Luca
0 Kudos
Message 2 of 2
(3,108 Views)