LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using event structure to switch modes of operation?

Hi there 

 

I'm trying to use an event structure to toggle between two 'modes of operation'

 

Two different pieces of code exist to toggle between the two modes of operation, and the code to change the mode of operation must only be run once (at the event where the switch is pressed).

 

Using the 'value change' event allows me to toggle to one mode of operation, but what about toggling back to the other?

 

Any help here would be appreciated.

0 Kudos
Message 1 of 3
(3,430 Views)

Hi Yush,

      If you're using one button to switch between modes, then you probably want to put a case structure inside the event-case which is handling the button value-change.  See example attached.

 

Cheers!

Message Edited by tbd on 09-14-2008 11:36 PM
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 2 of 3
(3,427 Views)

Thanks for the quick reply tbd, that's exactly what I needed.

0 Kudos
Message 3 of 3
(3,417 Views)