08-10-2007 04:05 PM
08-10-2007 04:59 PM - edited 08-10-2007 04:59 PM
First, if you have more than about two sequence structures, you might want to consider reworking your program. With dataflow and using the error in/error out clusters, you seldom need a stacked or flat sequence structure. For more complex programs, the state machine is better as well. It is much more flexible. There are shipping examples of a state machine and it is also one of the desing templates you can choose.
As far as you immediate problem, the simplest way to handle it is with a shift register. If you don't care about which actual test failed or when, AND the current status with the value in the shift register. Be sure to initialize the shift register with a True constant (assuming true is equal to pass). If at some point you want to know which test failed, then use a shift register with a Boolean array. With each pass, append the new element to the array. Then you can use the AND Array Elements function to give you overall status. With the array, you can do a search for Fail results to see when and how often you got a failure.
p.s. In the future, questions like this should be posted to the LabVIEW and not to the Multifunction DAQ which is for issues with NI DAQ boards.
Message Edited by Dennis Knutson on 08-10-2007 04:00 PM