03-24-2015 07:48 PM
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.
03-24-2015 08:07 PM
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?
03-24-2015 08:10 PM
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.
03-25-2015 04:22 AM - edited 03-25-2015 04:23 AM
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.
03-25-2015 11:53 PM
The following video explains that:
LabVIEW Tips: Set the window size of a front panel:
https://www.youtube.com/watch?v=MGVzV211vb8
Best Regards.