Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

State Machine Doubt..in Labview

if there is 8 different tests ot be performed and this may execute together or stand alone how do i do in labview?
i am using Standard State Machine design pattern for this test.
and in control vi ( i.e .ctl) its defined as 10 states
initialization is start and stop is the final state. In between added my tests.
in this pattern i can test each by selecting the states,  suppose if i need all the test sequentially inside the same pattern of state machine how do i do this?
 
 
Joe
Using Ver. 8.0
0 Kudos
Message 1 of 4
(3,302 Views)

Each state of the state machine is executed after another state, parallellisme is only possible when you have more statemachines,
But you can flexible arder all the states in any order from inside. keep looping in one or jum to another state.

I have the feeling that you better can write each test in a separate vi and then call these vi's in the correct order by wiring error in/error out.
If you need two tasks to perform parallell wire the same error out to their error ins and afterwards use merge error.vi to switch to a single task line again.

greetings from the Netherlands
0 Kudos
Message 2 of 4
(3,294 Views)

i have different VI's for each test case.

Do you mean to say using Stacked sequential structure ,each VI (Test Case) i need to execute and the error out of 1st test VI will decide the next sequence structure to run or not?

If i am using state machine how do i change state after each test case? is that going to increment automatically? while testing i found that when you run the state machine, which ever in the default drop-down will be executing and it wont increment or change the state automatically.

pls help

 

Joe
Using Ver. 8.0
0 Kudos
Message 3 of 4
(3,283 Views)
You don't need the stacked or normal sequence frames.
You can do a perfect sequence by connecting the error out of the first vi to the error in of the second one.
This is called sequence by wiring and is the strenght of a dataflow language that LabVIEW is.
 
I'll try to send you a small example after the keynote speech that starts now.
greetings from the Netherlands
0 Kudos
Message 4 of 4
(3,277 Views)