LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My boolean switch keeps switching off even when latch is engaged

Hi,
I'm a new labview user and I'm trying to develop a simple analog input with digital waveform out routine to trigger an external device at different stimulus rates.
I have just begun to add file writing capability controlled by an on/off switch within the acquisition loop. For some reason the boolean switch keeps popping to "off" after my case structure executes even though it's supposed to be latched.
Any idea why this control is changing without user input and how to fix it?
VI is attached (I have a PCI 6221 digitizer).
Thanks
 
Brian O'Rourke
Johns Hopkins Univ.
0 Kudos
Message 1 of 2
(2,416 Views)

I can understand that the naming of the various mechnical actions could be a bit confusing. 🙂

In LabVIEW, a latch action boolean stays TRUE until it is read once by the code, at which time it reverts to FALSE.

 

Maybe you want a "switch action"!

(Have a look at the various images when you select the mechnical action. It makes the function more clear. Also check the online help)

0 Kudos
Message 2 of 2
(2,408 Views)