LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible for a boolean control to Latch and Switch??

I'm trying to figure out how to reset the time in this VI when I click "Log Data". Is there a way to switch the true/false for the case structure and latch the true/false for the timer reset?
 
I'm using LabVIEW 8.0.
 
Michael J Fidler
0 Kudos
Message 1 of 2
(2,687 Views)
How about this.
 
The log data button is still set for "switch".
 
You use a shift register to keep track of what its setting was the last iteration of the loop.  If the switch is set for true and the last iteration was false (so Not false makes it true) then the timer is reset.  The new switch state of true is put into the shift register.
 
Next iteration.  Switch is still set for true and the last iteration was true (so Not true makes it false, the result of the And is false) the timer is not reset.  For either of these, the boolean control remains true and runs the case structure for the log data functions.
 
If the switch is false, than the result of the And is false and the timer is not reset.  The case structure is false and the data is not logged.

Message Edited by Ravens Fan on 05-04-2007 02:26 PM

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