03-02-2011 06:30 AM - edited 03-02-2011 06:33 AM
Hi,
I wanted to log this bug on the forum. I have already logged this with NI UK Support: CAR# 286873
I was trying to find a way to turn off a laptop lcd monitor during measurements. I was trying to replicate this
http://codereflect.com/2009/04/03/how-to-programmatically-turn-onoff-your-monitor/
which uses windows messaging.
I found the attached Monitor-1.vi somewhere on the forum that seems to do the above. However when I run the VI it crashes LabVIEW 10.f2 on Windows 7 32-bit.
cheers
David
Solved! Go to Solution.
03-02-2011 11:48 AM
If you delete la last frame, and replace "1" with "2" (the last input of DLL) it's working (i'm also in win7, labview 2010)
03-02-2011 11:58 AM - edited 03-02-2011 11:59 AM
Hi cosmin,
Thats strange I just tried what you suggested but it still kills my LabVIEW. I admit the monitor did switch off however when it came back my LabVIEW was gone.
Have you installed LabVIEW 2010 SP1 or still running the original install of LabVIEW without any patches?
Many thanks for pitching in.
David
03-02-2011 12:00 PM
Hi David,
I have 2010f4
03-02-2011 12:01 PM
change calling convention to stdcall
03-02-2011 12:07 PM
Hi Cosmin,
That was it! Thank you so much!
I will let NI UK support that you identified the issue and get them to close the CAR.
cheers
David