LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to change Display settings, either resolution or color

HI

Due to a faulty graphics driver I need to be able to change my display settings dynamically.

I know that I should use DLL calls to user32.dll, and I know that I should use the EnumDisplaySetting and ChangeDisplaySettings. But No matter what I try my LV 6.02 crashes.

I can not use G-Tool as I'm not allowed to buy it. and the shareware version dosn't include this functionality.

I have found the following links to be helpfull (but not enough):

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_84oj.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_7gz7.asp

Can anyone please give me a hint. I suspect this is due to a bad choice
of input/output datatypes.

Attached is the code I have so far (it does not work)
0 Kudos
Message 1 of 3
(2,826 Views)
I took a crack at making the code work from LabVIEW and failed. The devmode struct is way too complicated! I believe you would be best off writing code in VB or C that can change the resolutions then call that code from LabVIEW. You might even find example code to do this on the web.
0 Kudos
Message 2 of 3
(2,826 Views)
Hi Jeremy

I have been looking for an OCX (activeX component) without any luck.

And I have no Idea of any other way to implement VB or C code into Labview. Can you help me?

J;-)
0 Kudos
Message 3 of 3
(2,826 Views)