01-26-2012 10:41 AM - edited 01-26-2012 10:44 AM
Here is a simple example for a state machine that does stimulus > response tests, analyzes the data and logs it to file. Very standard stuff. The states are init, config, stim, read, anal, log, close. You can see how by changing the NEXT state control in the CURRENT state makes it easy to re-order (or skip) the states and gives you control over your programs flow. it also makes it very easy to add new states for more options in the future.
I think you're using LV9 so I wrote it in 8.5.1.
EDIT: BTW, I started this code by opening the STANDARD STATE MACHINE template. Look at the templates offered for more examples and a good way to jump start your projects (until you can write your own templates).
01-26-2012 11:26 AM
Thank you.
I will work on the vi during weekend when Im done with my finals.
If I face any problem iIl post it on the forum
Best
01-26-2012 12:43 PM
OK, good luck!
Once you become comfortable with the basic SM you can look into its more advanced cousins:
1. Queued SM
2. Queued SM with parallel UI loop
3. SMs with AEs (Action Engines)
4. LVOOP based SMs.
5. SCMs (State of Confusion Machines )