LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I cannot make my front panel display controls at the top of the monitor.

I have upgraded a program from LabView 5.1 to 6i. Some of the vi's are process screens with precisely drawn schematics. If I do not modify the vi in 6i, it will be displayed centered on the video monitor allowing access to all controls. If I open and save the vi in 6i, the front panel is shifted down from the top of the screen from 1/4 to 1 inch the next time I run it. I have tried changing the vi property (Front Panel Origin)with no success. I do not want the operator to have to use the slide bars to see all of the front panel.
0 Kudos
Message 1 of 6
(2,998 Views)
> I have upgraded a program from LabView 5.1 to 6i. Some of the vi's
> are process screens with precisely drawn schematics. If I do not
> modify the vi in 6i, it will be displayed centered on the video
> monitor allowing access to all controls. If I open and save the vi in
> 6i, the front panel is shifted down from the top of the screen from
> 1/4 to 1 inch the next time I run it. I have tried changing the vi
> property (Front Panel Origin)with no success. I do not want the
> operator to have to use the slide bars to see all of the front panel.
>

You shouldn't have to do anything, but perhaps there is a bug in the
migration of the older VIs. The first thing to do is determine if it is
the VI size or the scroll location that changed. There are propert
ies
for the VI Size as well as the origin to affect scrolling, but sizing
the window interactively and saving it will also affect the window
position and size.

If you continue to have problems with this or other VIs, you should try
to send it into technical support.

Greg McKaskle
0 Kudos
Message 2 of 6
(2,998 Views)
You can use the FrontPanel proptery FP.Origin to position the frontpanel to an absolut position. This works quite well for the upper left corner. For other locations it will probably be neccessary to check the screensize before hand.

You can modify this property within the VI itself once you have obtained it's reference number and so place it right at it's start to where it belongs.

Gabi
7.1 -- 2013
CLA
0 Kudos
Message 3 of 6
(2,998 Views)
Thanks for the response, I've tried to use the FP origin but it seems to only work when you have chosen to size the front panel to entire screen (under VI Properties-Window Size). In my application, I am using a dual monitor video card and cannot size to entire screen. If you do not choose this option, I have found there is always a gap at the top of your VI at least the size of the Title Bar when you run it. Also I have found that ver. 4.1 was the last LabView version where I did not have this problem.
0 Kudos
Message 4 of 6
(2,998 Views)
I attach a sample of how I did it.
It includes a little Subvi to get the reference number of the owner. I hope it helps you to find your own way

Gabi
7.1 -- 2013
CLA
0 Kudos
Message 5 of 6
(2,998 Views)
Thank you very much. We were able to accomplish what I wanted using your method.
0 Kudos
Message 6 of 6
(2,998 Views)