09-28-2012 02:44 AM
Is there any ways or guide for me to do a conversion from flat sequence to queue state machine. Any simple guide out there? I simply cannot understand anything from https://decibel.ni.com/content/docs/DOC-14169.
09-28-2012 07:23 AM
Any particular reason it needs to be a QSM vs just a state machine, which would more accurately represent a flat sequence structure. A QSM is useful if you need to report results occuring within a state to another part of the program, or as in the example you used, have operator input that changes the execution of the state machine. Under the "examples" with LabVIEW open, there is a "State Machine Test Sequencer.vi" example, which is a very rudimentary one, but give the basics. What it doesn't show is that in a case the "next case" can be made conditional on results/errors/etc. occuring within that state. It also shows cases being numeric, but they can be typedef constants, strings etc.