Discussion:
Is there a way to automatically jump to a certain frame in a stacked sequence?
(too old to reply)
D. Luprek
2008-08-07 18:10:08 UTC
Permalink
I am working with stacked sequence structures.  I would like to have a condition in some of the frames, such that if the condition is false, the sequence proceeds normally, and if the condition is true, the sequence jumps to a certain frame.  Is this possible?
Jorge Amaral
2008-08-07 18:10:08 UTC
Permalink
Hello,
The purpose of the sequence stack was not for that. so, you should modify your code to a state machine.
But you can do a trick. use a case in each frame. And use that to escape the frames that you don't wanna do.
drewsky
2008-08-07 18:10:09 UTC
Permalink
No, but it might be a good idea to switch from a stacked sequence to a state machine.&nbsp; State machaines are easier to use and sequence structures are generally frowned upon.&nbsp; You can check out state machines <a href="http://zone.ni.com/devzone/cda/tut/p/id/3024" target="_blank">here</a>.
GerdW
2008-08-07 20:10:10 UTC
Permalink
Hi D. Luprek and drewsky, besides "sequence structures are generally frowned upon": JUMPing around in code is generally frowned upon! :smileywink:Long long time ago I used BASIC for programming and heard comments like "BASIC is <a href="http://en.wikipedia.org/wiki/Spaghetti_code" target="_blank"> spaghetti code</a>" or "using JUMPs (aka GOTO) isn't programming"
mikeporter
2008-08-08 03:40:05 UTC
Permalink
To paraphrase a famous book reviewer from the 1930's: "Sequence structures should not be cast aside lightly - they should be thrown with great force,,,"Mike...
JoeLabView
2008-08-08 13:10:05 UTC
Permalink
Well said Mike..
Can I quote you on that? ;)
mikeporter
2008-08-09 02:40:09 UTC
Permalink
Go for it...Mike...

Continue reading on narkive:
Loading...