LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My Labview Program is NOT Scaling Properly when changing resolutions. How to do it properly?

Hi there

 

I'd like to ask just how to properly set my Labview interface such that it scales appropriately with different monitor resolutions.

I've tried VI Properties -> Windows Size -> Maintain proportion and Scale all objects checked.

 

I've also tried changing the "Set Current Panel Size", but no luck. I think the problem is that this setting does not adjust text size or something. I don't know.

 

Here is an example of incorrectly changing the size of the panel, literally just maximizing and minimizing window.

oscarjgv24_0-1649663907416.png

oscarjgv24_1-1649663954198.png


Can someone please specify clearly what do I need to do such that I change resolutions and everything is exactly where it is just smaller/bigger?

 

Thanks a lot.

 

Regards,

Oscar

0 Kudos
Message 1 of 19
(1,994 Views)

What you are trying to do just does not work well, and never has. I never use any scaling features.

What are you trying to achieve? How many different resolutions are you planning to support?

What's wrong with supporting only one windows size?

0 Kudos
Message 2 of 19
(1,963 Views)

@altenbach wrote:

What you are trying to do just does not work well, and never has. I never use any scaling features.

What are you trying to achieve? How many different resolutions are you planning to support?

What's wrong with supporting only one windows size?


I have to admit this is my biggest Pet Peeve about LabVIEW. I really hope this issue gets high priority on the roadmap. Not being able to make UIs that scale correctly leads a bunch of non-LabVIEW programmers/users to easily dismiss it as not a serious programming language.

Message 3 of 19
(1,959 Views)

Hi there

 

Thank you for your reply. 

 

It is not that I need the application to support multiple resolutions. I just work on different computers, some of which have 4K, 3K, and HD whilst others just have. 

 

I mean, I assume I could just fix the res to HD on all monitors, but I don't know. I guess I expected this to be solvable.

 

Either way, is good to know that someone else also has prpblems with this, so I guess I'll just have to settle for now.

 

Thanks a lot!

 

Oscar

0 Kudos
Message 4 of 19
(1,936 Views)

Agree 100%

0 Kudos
Message 5 of 19
(1,955 Views)

The best way to scale objects on the front panel is by using splitters and panes. You can have one object in the pane and have it scale. BUT, as you have found this will only scale the control and not the font size, that would have to be done programmatically.

 

Splitters and panes can help a lot, but there are still some missing gaps.

0 Kudos
Message 6 of 19
(1,948 Views)

All my front panels fit nicely on 1902x1280 (examples,). It is often useful to be able to see other things if the monitor has more space (second program, news, email, browse the forum, etc.). 🙂

 

Trying to make any LabVIEW program scalable is just herding cats.

0 Kudos
Message 7 of 19
(1,931 Views)

I write programs internally for a large lab. The major issues are:

  1. Not everyone has their display settings set to the same scale.
  2. Not everyone has a HD Monitor. (NI, I am looking in your direction. Their monitor that goes with their PXI chassis is 1024x768)
  3. Some users are more senior than other users; our experienced employees prefer larger fonts and scaling.

All modern applications seem to handle scaling pretty well. Giving a user an application that they can't resize feels limiting to them. I spend a significant amount of time doing splitters, panes, and resizing for distributed applications. Unfortunately, they are stuck with one font size. I haven't gone down that hole yet.

 

In addition, modern applications are adding a dark mode theme also, would be nice to be able to switch effortlessly between a normal and a dark mode automatically.

0 Kudos
Message 8 of 19
(1,922 Views)

I feel you.... it is definitely required if you want to give this to any user. Seems like the most important thing missing is the font, but I've also seen other cases where the field/variable itself doesn't scale well. One example of this is a VISA array that I showed.

 

To thise tuning into the conversation... Can we get like 10,000 likes and like 1M views for this post so that NI fixes this? 😀

 

Thanks. 

Message 9 of 19
(1,910 Views)

have you tried splitter bars? Gives you at least a little scalability.

0 Kudos
Message 10 of 19
(1,882 Views)