LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the screen size fit the project

I want to be able to control the screen size, so that when I open a project, the screen of the vi should only take up the space that is needed by the front panel elements.

Can someone please tell me how to do that?

Thanks.

0 Kudos
Message 1 of 5
(3,289 Views)

The easiest way is just to size the VI and save it.  It'll open to that size.  Why would you do that programatically when the FP would be a fixed size?

0 Kudos
Message 2 of 5
(3,279 Views)

I don't want to do so programatically, I want to do it manually, but I don't know how.

Could you please guide me through the steps?

Thanks.

0 Kudos
Message 3 of 5
(3,276 Views)

You would have to do it manually by resizing the VI. If you want to prevent the user from changing the size at runtime there is an option for that in VI Properties. There are also options in there for fixing the panel size.

 

There is also a function in the OpenG palettes (found in VI Package Manager) that can resize the VI to the front panel elements (with an optional border pad). You could either put that in your VI and run it once or leave it there in case you accidentally resize it again in future.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 5
(3,242 Views)

The following video explains that:

 

LabVIEW Tips: Set the window size of a front panel:
https://www.youtube.com/watch?v=MGVzV211vb8

 

Best Regards.

David P.
National Instruments
Applications Engineer
www.ni.com/soporte
0 Kudos
Message 5 of 5
(3,201 Views)