LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert flat sequence to queue state machine?

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.

0 Kudos
Message 1 of 2
(2,147 Views)

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.

 

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 2 of 2
(2,126 Views)