01-08-2007 11:19 AM
I have LabVIEW running on a server that clients can connect to and monitor telemetry data. I have added a background (Wallpaper) to each front panel for aesthetics. Clients are accessing this server remotely; therefore, the server adjusts to the resolution of the users PC. The front panel does not adjust to varying resolutions. I programmed the VI at my maximum resolution and enabled scroll bars to compensate for this, but this has led to an infinite sroll area. Is there a way to trouble shoot either of these problems? I need the LabVIEW resolution to adjust according to the user’s resolution to give me a single page panel, or somehow engage limits to the scroll area. I have read through the threads related to both issues and cannot find a solid solution.
01-10-2007 12:30 PM
01-11-2007 03:20 PM
Look at the following attachments for an example. The file names are the screen shot resolutions. I programmed the LabVIEW in 1024x768 therefore the plots and animations fit perfect at that resolution. If someone connects to the server at a lower resolution (800x600) the front panel explodes, therefore, requiring scroll bars to see the entire plot/animation/controls. If someone connects to the server with a higher resolution (1280x1024) the panel shrinks showing borders and open space. This is one page of several. I have abandoned trying to write a program to adjust all the graphics, controls, and indicators to the user’s resolution. Now I am looking into forcing the user’s computer to adjust to the VI's preferred resolution (1024x768).
Riconquis, the link you provided is an excellent idea. The only problem with your recommendation is in the first step before running the resolution VI, registering the dll file. LabVIEW is installed on the server and has no control of the users PC that is remotely accessing the server, therefore, cannot force this run command to occur on his/her PC. I tried this and the VI returned an error and then kept running at the user’s resolution.
01-12-2007 04:44 PM
01-12-2007 04:55 PM
01-15-2007 06:49 PM
Hi TheStig,
For these properties to work, please follow the steps given below:
Please let me know if this does not work. Best of luck on your application, and have a great day!!
01-16-2007 11:17 AM
I'm not sure if the "Maintain proportion of window for different monitor windows" option is working or not. This option was selected in the JPEG's above. I am sure it is not producing desirable reslults.
What I think needs to happen is the length and width of every control, graphic, or plot on my panel has to change with the resolution. For example, if the resolution is 800x600, use the ratio of 800/600 and apply that to the every thing on my front panel. Therefore a boolean button would be scaled using a function that includes the 800/600 ratio. I have not looked into this in depth. Another method would be to force anyone who accesses the animation to default to a specific resolution. This seems like the easiest case except for the issue with forcing a remote computer to change its resolution. There could also be a problem if the remote computer does not support the resolution.
Thanks for the help guys.
01-19-2007 04:40 PM
I think this simple VI will do the trick. I have not tried this with controls or graphs on top of the image but I think this is a good start. Change your screen resolution, open and run the VI, change resolution again and run again. The image should resize for different resolutions. I had to manually center the image to start but once it was centered and saved it stayed centered through all resolutions. I was working on programming it to center too, but it may not be necessary once everything on the front panel is in its location. Suggestions are appreciated.
01-19-2007 04:44 PM