LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front Panel scales incorrectly

I write my VIs on my desktop computer and then compile and send them to the test computer.  For some reason the front panel scales the opbjects differently than on my desktop. I have my window set to a particular size and tried turnign off any sort of scaling but I still cannot get the interface to stay put.  What am I doing wrong?

 

I've attached 2 images; one correct and one wrong. You can see in the wrong one that the numbers and labels on the right do not line up with the chart lines like they do in my programming file.

 

This is just one example of where this is off. There are others.  

 

Any help you can offer would be much appreciated.

Download All
0 Kudos
Message 1 of 5
(3,116 Views)

Most likely it is the fonts. Are the same fonts are both computers? Also right click on your Windows desktop select Personalize, and make sure the scaling is set to 100% not 125%, (usually the default.)

 

Cheers,

mcduff

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

I just recently went through something similar and came away with some valuable info.  But for you, you only need to do one thing:

 

McDuff is correct about your Windows default scaling.  125% vs 100% and what not.  I believe the default is 125% on Windows 7 and 100% on XP.  But doesn't matter, it is changeable.  A really good way to combat this is to just simply go to your Front Panel, Control All (Ctrl A) and select Segoe UI as the Font Name and change the Font size to 13.  If this causes controls on your Dev Front Panel to get all messy, just change Font Size till everything is scaled back down and fits.  Make the build and run it on the Test Machine.  I am 90% confident this will resolve your problem.  

 

Also, make sure you go to VI Properties, Select Window Size in the Drop Down Menu, and check the box "Maintain Proportions of window for different monitor resolutions."  

 

Ok, so these two solutions should fix your problem.  HAVE AT THEE!

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

Thanx for the tips guys.  Unfortunately the easy fix doesn't work as the Windows scaling is already 100% on both machines.  (The running computer is still on XP)  I changed the fonts as suggested. I'll let you know if this helps.

0 Kudos
Message 4 of 5
(3,016 Views)

Do you have any sort of 'scale all objects with front panel' or 'fit control to pane' turned on? These options (particularly the first one) can sometimes cause the alignment of items to change and even returning it back to the original size doesn't fix it. Is there anything in your code which changes the size of the panel?

 

Apart from the display scaling and/or font issues that others have mentioned, those are the most likely next things to have a look at.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 5 of 5
(2,977 Views)