LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front panel scales up when running, picture does not.

Solved!
Go to solution

Hello,

 

I'm developing a kiosk like program to run on a 1920x1080 touch monitor and display real time data to customers during a tour. The problem is that I'm also developing it on a 1920x1080 monitor. When the program is run , all of the borders and menus present in the IDE disappear and cause the controls to scale. They are close, so it isn't much of a problem, but it really screws up the one picture I display:

 

Good.PNGBad.PNG

 

I've see a bunch of posts about resizing, and thats ok, but best would be some way for me to design the front panel so it doesn't scale up at all. Is this possible with a monitor the same size as the target display? Failing that, can I force the frame to fit the picture and still let the rest of the controls scale? Could I programmatically figure out how much the display has scaled and apply that to the picture? Some other way? I'm very new at displaying pictures so forgive me if I've missed something obvious.

 

Thanks,
Simon

0 Kudos
Message 1 of 4
(3,432 Views)
Solution
Accepted by topic author SimonAG

Hi Simon,

 

If I understand correctly, your picture control scales correctly, but the actual picture is displaying does not. To fix this, you can use the "zoom" property of the picture control. Right click the picture, select create >> property node >> zoom factor. You can also use the "Bounds" property to find out how big your control is, and fine tune the zoom depending on what you want. If you want the photo to be as big as possible, but not cut anything off, then find two ratios (horizontal pixels / picture control width) and (vertical pixels / picture control height) and apply the smaller of these as your zoom. If you want your picture to fill up the entire control, even if that means cutting off some of the picture, then apply the larger of these.

Message 2 of 4
(3,406 Views)
Solution
Accepted by topic author SimonAG

There is a VI property that turns off scaling, that'd be the easiest solution.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 3 of 4
(3,350 Views)

Thank you both!

 

Regards,
Simon

0 Kudos
Message 4 of 4
(3,336 Views)