LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Preallocated Clone Front Panel Placement

I've got a some strange behavior with LV 2018 and the Front Panel of a Preallocated Clone VI

 

For some reason, the Front Panel of this Clone VI wants to open almost entirely off my monitor.

 

I thought an easy fix would be to make any quick edit to the main instance, and then save it.  The Front Panel should open where the VI was last saved. 

 

For some reason this is not working for this VI. 

 

I've tried a few other things too.  But so far, this Clone always wants to open almost off the screen. 

 

Is there any way to change where this VI is opening?   

 

 

---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 1 of 4
(1,321 Views)

Hi pallen,

 

You can change this by configuring the VI Properties of your main instance VI in the Window Run-Time Position Category.

Simply use something else than "Unchanged", for example "Centered" or "Custom".

Also setting the Monitor to "Primary" ensures that your clone is opened on the same screen as your main VI.

 

raphschru_0-1658930585160.png

 

Message 2 of 4
(1,262 Views)

Thanks for your reply! 

 

This is something that I tried, and I can force all the clones to open Centered.  This at least ensures they are all on screen. 

 

However, it is not ideal as if I open several clones they all stack up on top of each other.  

 

Initially when the position was set to "Unchanged", the clones appeared to remember where they were last closed.  

 

Somehow I managed to change something though, and now the clones want to open almost off screen.  

 

I even tried forcing to Centered, making a small change, and then saving to see if I could "reset" the position of the clones.  

 

It's a minor issue.  But a bit annoying.  I just wondered if there was something (normally) obvious that I was overlooking. 

---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 3 of 4
(1,229 Views)

I wouldn't rely on the last position stored when opening multiple clones. It works well when you open the original instance, but apparently not so much for clones.

 

To fully control your clone placement, use the property "Front Panel Window.Panel Bounds" before you open its front panel, or "Front Panel Window.Window Bounds" after you open its front panel.

 

See the example attached.

0 Kudos
Message 4 of 4
(1,222 Views)