LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to resize or maintain proportion of the front panel window for different monitor resolutions ?

Hi all,

              I've been trying to find an option in Labview for maintaining the proportion of the window for different monitors. I've enabled the option in Tools>>> VI propperties>> Window Size>>> Maintain proportions of window ...for different monitor resolutions in LabVIEW. It doesn't workout. What should i do now?

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

Hello Jothirajalingam_SS,

 

I would like to simulate your situation to offer further help.  Could you post which version of LabVIEW you are using?  Also, it would be helpful if you attached your VI, and a screenshot of your Front Panel, as you would like it to appear.

 

Regards,

George

George T.
Senior Applications Engineer
National Instruments UK and Ireland
0 Kudos
Message 2 of 4
(4,585 Views)

Hello george,

                          I've been using LabVIEW 8.2.1 now. I'm herewith appending the VI and the front panel screen shots for your reference. 

 

 

Regards,

Jothirajalingam_SS 

Sriram Automations & SOft Solutions,

Chennai. 

 

0 Kudos
Message 3 of 4
(4,573 Views)

Hi Jothirajalingam_SS,

 

Thank you for that information.  I have been able to open your VI in my installation of LabVIEW 8.2.1.  The screenshots have also helped.  It looks like you are already familiar with the 'VI Properties...' section of the 'File' Menu within LabVIEW.  In the 'Window Size' section, there is also an option that states 'Scale all objects on the Front Panel as the Window Resizes.'  This will allow the objects to resize with the window.  This often works well, however, LabVIEW makes its own decision on which direction to scale objects, and therefore, you should test how it would look in the different resolutions.  The text may also not scale along with the objects.

 

It is possible to use a Property Node to read the resolution of the screen your application is running on.  You select a Property Node from the Palette under 'Programming' -> 'Application Control.'  Click on the Property Node and select 'Display' -> 'Primary Workspace.'  

 

In your block diagram, I can see that you are using a Property Node for 'This VI'.  Drag the Property Node to allow for another selection.  Choose 'Front Panel Window' -> 'Panel Bounds.' 

 

These properties will give you further options to intelligently resize the Front Panel.  There is an example in the NI Developer Zone which will allow you to also resize your text.  Please navigate to 'http://www.ni.com/zone' -> 'Search within results' the text 'front panel font size' -> Click example 'Change Front Panel Font Sizes to Adapt to Different Screen Resolutions.'

 

Programmers often see results in designing the front panel layout for the lowest resolution they believe their VI will be used, and then allow resizing upwards.

 

Regards,

George T.
Senior Applications Engineer
National Instruments UK and Ireland
Message 4 of 4
(4,553 Views)