LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to activate both connected monitor

In my application, i have to connect 2monitors with the CPU and have to activate both connected monitors(means both should show windows)

PRASHANT SONI
SOFTWARE ENGINEER-LabVIEW
0 Kudos
Message 1 of 7
(3,297 Views)

Are you talking about a standard PC? Have you a video controller that can control two monitors? Is this about making a computer at all use two monitors or something more LabVIEW specific about using two monitors?

 

Questions and very little information!

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 7
(3,292 Views)

Its like two monitor connected with standard PC using video card. and by display setting manually we can select display connected . that same thing i want to do using labview. may be some windows dll can be used but i dont know exact.

PRASHANT SONI
SOFTWARE ENGINEER-LabVIEW
0 Kudos
Message 3 of 7
(3,287 Views)

You probably want to check out MSDN and there the MultiMonitor APIs such as SetDisplayConfig() for Windows 7 and ChangeDisplaySettingsEx() if it needs to run on earlier Windows versions too.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 7
(3,270 Views)

Hi Prashants,

 

what rolfk is suggesting is for windows display settings configuration. If you only need to control your LV application, you can simply use the VI server.

 

snippy.png

0 Kudos
Message 5 of 7
(3,263 Views)

Bublina,

 

It depends. If he only wants to assign a VI to a particular monitor or enumerate the currently active monitors, the VI server properties and methods are indeed all that are needed.

 

I interpreted the request however as being able to enable and disable monitors at runtime of the application and that can only be done with the Windows API functions directly. To my knowledge there aren't even .Net methods to do that.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 6 of 7
(3,256 Views)

sure, it just seems a bit weird, to disable and enable a monitor. If you have multiple monitors, all you have to do is plug them in computer, setup and you are done. The only applications, that do these settings are usually some driver related apps. So I thought, he only needs to control the FP position and his english is crap.
 

0 Kudos
Message 7 of 7
(3,236 Views)