10-04-2013 02:36 AM
Hi,
I was wondering if there is any way to programmatically change the z-axis of the objects in LabVIEW, just like you would do using CTRL-J or CTRL-K in edit mode.
Regards,
Chris
10-04-2013 02:48 AM
I think this is not possible but what you can do is use system exec.vi and focus on control you want to shift. Try this(I never tired this)
10-04-2013
08:09 AM
- last edited on
04-01-2025
05:10 PM
by
Content Cleaner
I'm not sure about that but maybe you can do that with VI scripting (ibut I think that it's not free !) :
https://www.ni.com/en/support/downloads/tools-network/download.labview-vi-scripting.html
To install it in evaluation mode, you can follow those instructions :
https://lumen.ni.com/nicif/us/evaltlklvscript/content.xhtml
Once installed, you can have a look at LV examples by typing "script" in example searcher...
10-04-2013 09:17 AM
Scripting has been free since LabVIEW 9.0, so most folks can use it now. Unfortunately, shifting the z-order of panel objects is not exposed in scripting. The horrible, cludgy workaround is to delete all your controls and recreate them in the z-order you want them. This would require rewiring their terminals on the block diagram, as well. If you need this functionality, please kudo this and this LabVIEW Idea Exchange idea.
10-04-2013 09:40 AM
You can use this. Note however that z-order can only be changed on a VI that is in edit mode; you cannot change the z-order of a running VI.