12-10-2025 09:00 AM
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!
Solved! Go to Solution.
12-11-2025 09:37 AM - edited 12-11-2025 09:44 AM
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.
12-11-2025 10:23 AM
Try Group those controls together to preserve Z-order.
12-11-2025 11:23 AM
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?