Greetings All,
I'm trying to learn how to do state machines in LabVIEW. I do NOT have access to the Statechart Module or the State Diagram Toolkit, so I'm trying to do this from "scratch" using the WHILE loop structures, CASE statements, and EVENT structures. I hope that part is right so far. I've been looking at the tutorials (e.g. http://zone.ni.com/devzone/cda/tut/p/id/7595) but there are some things still unclear to me.
Having created a state diagram (attachment follows this post), I do NOT have what they refer to as an INIT state or a DONE/EXIT state. This sequence detector is supposed to detect when the sequence 011 has come through. The machine has one input, x, and one output, z. There are four states. I made this as a Moore machine (per comments from another tutorial).
Has anyone done anything like this before? Is this really the best tutorial for state machines? If you have done EXACTLY this, would you care to share your solution? This is strictly for my learning. Ultimately, I need to create a state (machine) process for a data acquisition system where LV is the Master Controller for initiating data collection, starting/stopping various process (e.g. fault injection), and system resets (i.e. sending out a binary signal to reset external processors). I'm trying to crawl before I run.
Any assistance would be invaluable. Thanks in advance!
Michael
Sequence Detector for Pattern x=011