Melbourne Posted April 7, 2012 Report Share Posted April 7, 2012 Hi All I have an application where I require 2x monitors running under XP (in an extended desktop). I need to programmatically set the resolution of the secondary monitor - and at the same time leaving the primary monitor in its usual resolution. I understand that the ChangeDisplaySettingsEx fn can be used to do this via User32.dll. Can someone point me to an example vi on how this might be achieved please. Many thanks Quote Link to comment
BigAngryHillMan Posted April 8, 2012 Report Share Posted April 8, 2012 I don’t think you can directly change the resolution from Labview using the Windows API. You will need either a DLL or ActiveX as a wrapper for the call to the API. See the link below. It doesn’t do every thing you want sadly, but it is a starting point. http://zone.ni.com/devzone/cda/epd/p/id/1429 Quote Link to comment
Melbourne Posted April 9, 2012 Author Report Share Posted April 9, 2012 Thanks for the quick response, but I had already seen that DLL, but it seems only to switch primary monitor resolutions. I was hoping to find something functionally similar that switched the secondary only or itself had a selector to choose which monitor was to switch resolution. Quote Link to comment
Melbourne Posted April 11, 2012 Author Report Share Posted April 11, 2012 Hi All I found a utility called "Display Changer" from 12 Noon, that seems to work fine. Its a stand alone .exe (dccmd.exe), but have managed to plumb in some string handling to enable command line control over resolution, depth, frequency etc control of the primary or secondary monitors independently from within LV. If someone has a better solution - would love to hear from them. http://12noon.com/?page_id=80 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.