LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Move Vi Front Panel window

I need to move a Vi on the primary display to a different position (simulating a user dragging it somewhere)

 

Basically I need to ensure that sub vi's open in a particular place, but Sub-Panels cannot be used (Another software package is in use that calls Vi's and doesn't support Sub-Panel usage)

 

I want the sub vi to open and on the first execution loop move to the position that is passed through inputs. Is this possible?

0 Kudos
Message 1 of 3
(4,464 Views)

Use a property node linked to the VI to get a reference to the Front Panel and then another property node to set the panel's position.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(4,453 Views)

If it is always going to be the same place, go to VI Properties (Ctrl+I) on the subVI, choose Window Run-Time Position from Category, and set the position.

If you are going to programmatically choose the position, you can use a property node. There is a document here:

How Can I Programmatically Move My Front Panel to Desired Position in LabVIEW?

Ian
LabVIEW since 2012
0 Kudos
Message 3 of 3
(4,450 Views)