10-19-2007 01:31 AM
10-19-2007
01:40 AM
- last edited on
03-13-2025
11:12 AM
by
Content Cleaner
Hi!
I think that stacked sequence is not the best way to implement your VI, maybe you can turn to a state diagram scheme, there're many possible implementations in LV, and there's also a state diagram toolkit (but I implement state diagram withoiut using it....).
Have a nice day!
graziano
10-19-2007 02:26 AM
You cannot alter a Sequence, thats what it implies.
Maybe you should restructure your aplication to be based on a state machine architecture, as told by Graziano.
You can go for an event-driven state-machine architecture.
10-19-2007 10:57 AM - edited 10-19-2007 10:57 AM
Here is a simple form of a state machine that runs from state 0 up to state 10 (similar to frame 0 to frame 10). If a test fails, the selector will set the state back to 0 and the cases (frames) will start all over again.
Ooops, you can move the selector and increment to after the case structure so that you don't have to create it for each case. Just wire the test result from each case to the right edge and then to the selector after the case structure.
Message Edited by tbob on 10-19-2007 08:57 AM
Message Edited by tbob on 10-19-2007 09:00 AM