03-21-2011 03:10 PM
Hello,
I have developed a VI with multiple controls and indicators that needs to run on computers with screen resolutions ranging from 800x600 to 1680x1050. The problem I'm having is that the front panel does not properly scale for this range of resolutions by checking the options in the "VI properties" option. Is there a way to create multiple front panels of various sizes for my block diagram and programmatically select the appropriate front panel based on the screen resolution?
Solved! Go to Solution.
03-21-2011 06:12 PM
You could use a tab control as an indicator and select which one to display depending on the panel size.
Or you could rearrange the controls using property nodes.
03-21-2011 10:35 PM
You could possibly have multiple front panels. The controls and indicators don't really do anything. There would be just enough code to gather up the references for all the front panel objects and pass them into a main working VI that doesn't show itself, but reads all of the controls and puts all of the data into the indicators by way of the references passed to it and property nodes.
03-22-2011 08:46 AM
Ravens Fan,
How can I do this? I do not wish to use a tab control that duplicate my existing controls and indicators because I already have way to many, and I don not wish to programatically scale the controls, indicators and fonts because that tends to shift things around a bit. Would you be able to guide me in designing multiple front panels which will be chosen based on screen resolution that read and send data to a main VI?
03-22-2011 09:55 AM - edited 03-22-2011 09:57 AM
See the attached Zip file.
I have two different front panels. Open either one and run it. They both call MainCode.vi which takes the references passed to it and register for events. From there, it does all the work of the code you would have put in your front panel .vi.
This way each front panel can be laid out however you want for each screen resolution.
03-22-2011 10:40 AM
Thanks a lot! I will follow the same idea to create multiple front panels.
07-14-2011 02:34 PM
Hi,
I have exactly the same problem, but my LabVIEW version is 2009, can you save the solution at older version?
Thank you very much.
Best Regards,
07-15-2011 11:24 AM
Hi Luis,
Here you go.
Regards