LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI Window Run-Time Position in executable

Hi,
 
I have a Labview program with two screens (dual head video card) and two front panel VIs, one on each screen.
 
In the Labview environment everything works fine. I set the monitor position of one of my VIs (in File -> VI Properties -> Window Run-Time Position) which opens when called to be the second monitor (Monitor 2) and everything works fine. But whenever I create an executable of the VI and run it the second VI runs on top of the first. Is there something I have to set in the executable build ?
 
Martin
0 Kudos
Message 1 of 6
(5,067 Views)
Hi martin,

a similar question is asked here.
Where I posted this snippet for maximizing a panel/window:


You can use this to set the monitor on!
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 6
(5,057 Views)
Hi,
  the following thread discusses the jpg implementation above aswell :
 
Hope that helps
 
Thanks

Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 3 of 6
(5,039 Views)

Thank you very much for the help, that seems to work much better using FP.Monitor = 2

I'm also having to use FP.Origin to set the position of the window (I'm getting errors and funky results with FP.PanelBounds), which I copied across from another example on the forum. I don't seem to be able to find FP.Origin when I use the drop down menus though, has this been deprecated in 8.2?

Martin

 

0 Kudos
Message 4 of 6
(5,039 Views)

Hi,

 yes it's been moved from the menu selection, however it will still work when copied and pasted across from an existing reference.

The "origin" property is relevant to the panes class now, which won't help in your case sine you're trying to move a window.

Hope that helps

Thanks

Sacha Emery National Instruments (UK)

 

Message Edited by SachaE on 11-15-2006 10:33 AM

// it takes almost no time to rate an answer Smiley Wink
Message 5 of 6
(5,018 Views)

Hi Sacha,

Thank you for the information, everything is working fine now 🙂

I've been using Labview for about 12 years now, and it keeps going from strength to strength.

Martin

 

0 Kudos
Message 6 of 6
(5,007 Views)