07-13-2005 09:51 AM
07-13-2005 10:01 AM - edited 07-13-2005 10:01 AM
Hi,
The stop.vi is not a normal way to stop a vi. It works the same way as if you would press teh stop button in LabVIEW.
Just terminate your sub-vi normally, it will stop and the top level will continue.
By terminate normally I mean that it don't have any more operations to do.
Paulo
Message Edited by PauloM on 07-13-2005 04:02 PM
07-13-2005 10:02 AM
07-13-2005 10:07 AM
07-13-2005 12:25 PM
07-13-2005 12:34 PM
07-13-2005 12:44 PM
07-13-2005 12:48 PM
05-30-2006 08:00 AM - edited 05-30-2006 08:00 AM
in the mean time.....one year later :P... I never use sequence structures anymore. State machines are the way to do this. But i have one question.. I want a sequence of states to be run ( so state 1 then state 4 then state 8 , etc..).. and that sequence will be determind @ a state of that state machine....
for example I have a state machine VI that runs a test in every state. And the last state you can select to run the tests again that failed.. Is there a simple way to do this? maybe by using an array of states?
Greetz Bart
Message Edited by bartb on 05-30-2006 03:04 PM
05-30-2006 11:01 AM
It sounds like you're looking for a "Queued State Machine." I think there's a shipping example and I'm sure you'll get several hits by searching on ni.com
A Queued State Machine will let you queue up a whole sequence of individual states. Another nice feature I've found is related to error handling. Suppose you have an Error Handler state. Whenever you detect an error, you can use "Enqueue at Opposite End" to put the Error Handler state immediately to the front of the line.
-Kevin P.