03-04-2009 09:17 AM
03-04-2009 09:27 AM
Whoever wrote the comment at the top of the block diagram does not know much about LabVIEW programming.![]()
You've got a very infexible architecture with that sequence structure. A stacked sequence structure is something to be avoided at all costs anyway. What you should really be looking at is a state machine based program. Instead of individual indicators, you might want to consider something else. A boolean array that is passed with a shift register might be a reasonable alternative.
03-04-2009 09:33 AM
03-04-2009 09:40 AM
03-04-2009 09:46 AM
03-04-2009 10:00 AM
03-04-2009 10:08 AM
03-04-2009 10:24 AM
There is also no data flow mechanism to ensure that the wait function calls happens after the DAQ Assistants executes.
-AK2DM
03-04-2009 10:26 AM
I also noticed frame 4 "Apply: +12V Machine Wait: 1.5 sec". I once learned long time ago that this is the wrong way of doing it, because you might end up with "Wait: 1.5 sec Apply: +12V Machine ". Since you have no control of the execution order in this case. This because there are no dataflow between the "Apply: +12V Machine " and "Wait: 1.5 sec" functions. A frame should be used in this case

03-04-2009 10:27 AM