LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dual monitor - How can a VI be programmatically sized and positioned?

I have a dual monitor setup and I'd like make an application that has one VI on each screen. I think the fact that I have dual monitors is irrelevant - all that I need to be able to do set the initial position and size of the two VIs - the second monitor is just a logical extension of the first, increasing the virtual resolution (i.e., 1024x768 + 1024x768 = 2048x768).
I realise that a VI can be set to be maximised through the File/VI Properties... menu option but this is not really what I want to do.

All suggestions are most welcome.

cheers,
Novak.
0 Kudos
Message 1 of 3
(3,144 Views)
hi,
Attached is a simple vi that sized its fp and position the subvi within its designated position.

Hope you find it useful.
feedback welcome

ian.f k
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 3
(3,144 Views)
> I have a dual monitor setup and I'd like make an application that has
> one VI on each screen. I think the fact that I have dual monitors is
> irrelevant - all that I need to be able to do set the initial position
> and size of the two VIs - the second monitor is just a logical
> extension of the first, increasing the virtual resolution (i.e.,
> 1024x768 + 1024x768 = 2048x768).
> I realise that a VI can be set to be maximised through the File/VI
> Properties... menu option but this is not really what I want to do.
>

Look at using the property node for the VI and set the window position.
The property you will likely use is the VI>>Front Panel Window>>Window
Bounds.

Greg McKaskle
0 Kudos
Message 3 of 3
(3,144 Views)