LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Same controls in multiple frames of a stacked sequence?

From what I'm reading on the boards here, I gather that people try to avoid sequences because they "hide" some of your code on the block diagram. However, if you choose to use a stacked sequence, is it possible to have the same "code" (nodes on the block diagram) used in multiple frames of that sequence? That is, can I somehow copy and paste the code from one frame into another without having that action duplicate those controls on the front panel?

FYI - I would like to call the same .dll multiple times--first time through I'm writing all of the registers the user would like to write, and the second pass would read all of those registers the user chooses to read. All parameters are set by the same controls.


Thank you.
0 Kudos
Message 1 of 3
(2,998 Views)
Hello,

You can't have multiple terminals from the same object, but there are some ways to work arround that.
I think that the best in you case is using Sequence locals. Right click in the "wall" of the sequence and choose Add Sequence Local, do this for eatch variable you want to have in your frames. On the first frame connect the terminals to the sequence locals and you will be able to access them in all frames.
Another good option would be to have the terminals outside your sequence and connected to them, you would also be able to access them in all frames.

Hope thios helps,
Paulo
0 Kudos
Message 2 of 3
(2,994 Views)
Hi,

If you really insist to use stacked sequence, you may try this out.

First of all, place your control(s) outside the sequence/ frame.
Create Local Variable of the control(s) replacing any control terminal(s) respectively.

As long as there is no control/ indicator terminal(s) inside the sequence/ frame, you may now Right-Click on the frame (to be duplicated) and select Duplicate Frame. This will duplicate the intended frame without duplicating the control/ indicator terminals.

Hope above make sense to you 🙂

Cheers!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 3 of 3
(2,987 Views)