From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

runtime position of subvi as in in main vi

Is there a property to let run subvi's on the same position as in main vi. I missing this feature in the window runtime property.
 
Kind regards Reto  
0 Kudos
Message 1 of 5
(2,707 Views)
Hi Reto,

if you need to have your subvi at the same screen position as the main vi (hiding it) you could do this:
Get a reference of the main vi, feed it to the subvi. In the subvi you can read the properties of the main vi (window size and position) and adjust the properties of the subvi accordingly (all by using property nodes). You can also hide the main vi by hiding it (property Front Panel Window:State)...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,703 Views)
What I'm looking for is this property. I can just find  frontpanel run time position method which indicats where the origin is.  Where can I get the window position? I'm using Labview 8.2 
0 Kudos
Message 3 of 5
(2,698 Views)
Hi reto,

it's the FP.WinBounds property as shown in the attached vi!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,693 Views)
Thank's a lot.
0 Kudos
Message 5 of 5
(2,690 Views)