LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with a state machine

I am trying to setup a structure such that when a button is pressed
(boolean True/False) that N cycles( N comes from a numeric control) of a
while loop are executed and then the button is then set to false. I'm
new to labview so if this is a simple question I apologize. I'm using
V5.01
Thanks
Jim Stockton
0 Kudos
Message 1 of 4
(3,130 Views)
Jim Stockton wrote in message
news:75CDD5598ED17BD7.C4CA4C14B9F7716C.E838B8882EA40A09@lp.airnews.net...
> I am trying to setup a structure such that when a button is pressed
> (boolean True/False) that N cycles( N comes from a numeric control) of a
> while loop are executed and then the button is then set to false. I'm
> new to labview so if this is a simple question I apologize. I'm using
> V5.01
> Thanks
> Jim Stockton

Like this?




[Attachment timer.vi, see below]
0 Kudos
Message 2 of 4
(3,130 Views)
Here's a simple state machine example.
0 Kudos
Message 3 of 4
(3,130 Views)
That sounds to me like a while loop with the run button and a case
statement. Inside the case statement you would have the while loop that you
want to run N times (or a for loop) and a false wired to a local variable of
the run button.

"Jim Stockton" wrote in message
news:75CDD5598ED17BD7.C4CA4C14B9F7716C.E838B8882EA40A09@lp.airnews.net...
> I am trying to setup a structure such that when a button is pressed
> (boolean True/False) that N cycles( N comes from a numeric control) of a
> while loop are executed and then the button is then set to false. I'm
> new to labview so if this is a simple question I apologize. I'm using
> V5.01
> Thanks
> Jim Stockton
0 Kudos
Message 4 of 4
(3,130 Views)