LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

latching trouble

Does anyone of you guys know how to resolve the following. I've got a while loop consisting of a case structure with a latched button attached to it. When a certain event happens in a different part of the program I want to trigger the case structure once, i.e. setting the button on and off. Is there a way how to do this with the 'mechanical action' of the button swithed to latch?

Cheerio, Georg
0 Kudos
Message 1 of 3
(2,577 Views)
Latch action is not compatible with local variables, but there is an easy way around it.
Simply use a "switch action" and do the latch programmatically using another local variable (see attached example code image).
0 Kudos
Message 2 of 3
(2,577 Views)
Thanks, that helped me out!
0 Kudos
Message 3 of 3
(2,577 Views)