LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control the Z-Order of Controls when using “Place VI As Content

Solved!
Go to solution

I have a VI that contains two controls, and inside the VI their Z-order is defined correctly.

However, when I add this VI to a palette using “Place VI As Content”, and then place it on a block diagram from the palette, the Z-order of the controls changes.

 

Is there a way to force or preserve the original Z-order of the controls in a VI that is placed using Place VI As Content?

 

Thanks!

0 Kudos
Message 1 of 5
(231 Views)

When a VI is placed as content, the z-order of the newly created controls depends on the z-order of the control terminals on the block diagram of the original VI.  Specifically the z-order of the controls on the FP will be the reverse of the z-order of the terminals on the BD.

I strongly recommend that you put a comment in the VI indicating that what the z-order of the terminals must be.

Message 2 of 5
(139 Views)
Solution
Accepted by topic author maxnoder1995

Try Group those controls together to preserve Z-order.

 

George Zou
0 Kudos
Message 3 of 5
(127 Views)

Thanks!

One more question: Is there a way to keep the original control layout when using Place VI As Content and ensure that each control keeps its exact X,Y position on the front panel?

0 Kudos
Message 4 of 5
(114 Views)

@maxnoder1995 wrote:

Thanks!

One more question: Is there a way to keep the original control layout when using Place VI As Content and ensure that each control keeps its exact X,Y position on the front panel?


No exactly.  However,  you can keep all of that information when creating new vis from a vit.   That may give your related vis the commonality that you are probably looking for by misusing place vi contents.


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 5
(36 Views)