LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Are sequence structures the right approach here?

Thanks Jason,

I had thought about that, but in the actual program, this "cluster" will be kept as an array and used to set logic on a digital output device.  In other words, I am using the cluster now for what should happen to pneumatic valves when hooked into the device.


Brad
0 Kudos
Message 21 of 23
(655 Views)
Brad,

The state machine could (should) have an initialization state and probbably a shutdown state. If you use the timeout of the event structure and set the timeout value to other than -1, you will have a place to handle things that cannnot wait for an event. Of course the timeout case will also need to handle the situation where timeout occurs, most likely many times, between events.

I have an application which has a state machine running in the timeout case (the case structure only-it uses the outer while loop) and getting commands and user entered information from the value changed cases. No indicators use property nodes or local variables for initialization or updates.

Lynn
0 Kudos
Message 22 of 23
(648 Views)
Thanks for the help everyone.  This was a fun introduction to event programming in LabVIEW.  See http://forums.ni.com/ni/board/message?board.id=170&message.id=190998&jump=true#M190998
for more examples concerning this problem, including Altenbach's "event machine."

Brad
0 Kudos
Message 23 of 23
(640 Views)