ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using the stacked sequence frame value

Hello, I was just wondering if it was possible to use the frame value of the stacked sequence structure inside the structure.  For example, if I am in frame 5, is it possible to wire the value 5 into the structure as a constant.  Currently, I am building vi's with dozens of frames in a stacked sequence, and for each frame, I have to manully go in and fix the frame value.  If I could wire the frame value directly, it would save me a lot of time.  Thanks
JOe
0 Kudos
Message 1 of 4
(2,743 Views)
Hi Joe,
can you show us a picture of what you mean please? I recommend to use a state architecture instead of many stacked sequence structure.

Mike

Message Edited by MikeS81 on 05-26-2008 11:17 PM
0 Kudos
Message 2 of 4
(2,742 Views)
This sounds like an absolute nightmare of a code design. I absolutely agree with Mike, use a state machine architecture instead.
 
0 Kudos
Message 3 of 4
(2,731 Views)

Whatever you do, try to get rid of the stacked sequence and go with a state machine instead.  You'll save yourself and whoever ends up with the code lots of headaches.. 

Do a search on state machines or do into the example finder and search state machine.  The beauty of a state machine is that you can store the value in a wire which goes to shift registers at the edge of the loop.  You last value becomes the active value in the next iteration of the loop. 

RayR

0 Kudos
Message 4 of 4
(2,720 Views)