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 4
(156 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.

0 Kudos
Message 2 of 4
(64 Views)
Solution
Accepted by topic author maxnoder1995

Try Group those controls together to preserve Z-order.

 

George Zou
0 Kudos
Message 3 of 4
(52 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 4
(39 Views)