LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I determine the number and resolution of the current displays/screens?

I am developing a vision application that will require a specific window size, thus the application must run with the screen resolution at predified levels. It is also possible that the application will run on a system with multiple monitors, so I need to be able to determine the number of monitors, and the resolution of each.
0 Kudos
Message 1 of 3
(2,915 Views)
Hi

I recommend you to work with the VI Server functions (Application class properties). See my little example.
Regards,
Luca
Message 2 of 3
(2,915 Views)
> I am developing a vision application that will require a specific
> window size, thus the application must run with the screen resolution
> at predified levels. It is also possible that the application will run
> on a system with multiple monitors, so I need to be able to determine
> the number of monitors, and the resolution of each.
>

The VI Server returns some of this information. I believe there is an
array of monitor sizes available. If this doesn't have the information
you need, check with the Windows Utility sort of DLLs that are available
on zone.ni.com or on similar archive sites. All this is available from
the OS, and many of these calls have already been wrapped into a VI call
and are available for download.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,915 Views)