From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-02-2006 10:14 AM
08-02-2006 10:25 AM
08-02-2006 10:35 AM
08-02-2006 10:38 AM
Ahhh, the stacked sequence structure... You cannot escape it!
Maybe you should take two steps back and look at your code layout. Look at some code examples, especiallly state machines. Now redesign from scratch.
Stacking many layers of loops and sequence structures like one of those russian doll sets is simply bad form. I am sure there are better ways. What exactly are you trying to do?
08-02-2006 10:52 AM
08-02-2006 10:58 AM
You cannot break out of a sequence structure. here's how a sequence structure works.
Let's say you have while loop 1 and inside WH1 you have a sequnce str. with 3 cases. while loop 1 will proceed like this.
1. check stop condition.
2. execute case 1.
3. execute case 2
4. execute case 3.
5. sequence str ends
6. while loop checks stop condition and continues back at step one.
what you need is a type of stucture that will work like this.
1. check stop condition.
2. execute case 1.
3. check stop condition.
4. execute case 2.
5. check stop condition.
6. execute case 3.
7. check stop condition and if not met repeat steps 1-6.
This type of architecture is called a state machine. i would do some research on the forum on in the LV examples on the state machine. Your code as it is, is at a dead end. It will not do what you want and if you do somehow cludge it together to get it to work you will most likely never be able to maintain it or upgrade it. Take altenbachs suggestion and re-think what you actually want the code to do.
08-02-2006 11:24 AM
08-02-2006 11:39 AM