11-05-2021 07:24 PM
Hi all,
We have a labview 2015 application which displays the GUI front panel on monitor 1 and monitor 2, the monitor 2 is remote in a lab, where we need to turn it off for some lab operations to avoid the monitor display light shining onto a finishing product.
1. is there a solid software solution in labview?
2. is there a hardware solution to turn on/ff the monitor 2 on its power or video stream?
Thanks,
Kimberly
Solved! Go to Solution.
11-06-2021 09:13 AM
Hi!
Have you considered displaying a black graphic on the second monitor? That may be the simplest and fastest solution if that is dark enough and is entirely possible from within LabVIEW without touching any tools, hardware or configuration options.
I could think of a few more options. In roughly ascending intrusiveness and effect:
11-06-2021 10:33 AM
You may be successful with a command line tool like this:
https://www.nirsoft.net/utils/control_my_monitor.html
LabVIEW System Exec with the command line:
ControlMyMonitor.exe /TurnOff "\\.\DISPLAY3\Monitor0"
11-06-2021 03:10 PM - edited 11-06-2021 03:18 PM
Here's an article that describes a couple way to achieve this:
The batch file or Powershell script could be called through LabVIEW
Also I don't know it off the top of my head but I would think the Windows API would have a way of doing this too
11-06-2021 05:30 PM - edited 11-06-2021 05:35 PM
@RTSLVU wrote:
Also I don't know it off the top of my head but I would think the Windows API would have a way of doing this too
Yes there is: SetVCPFeature()
It allows to set any of the VESA Monitor Control Command Set (MCCS) VCP (Virtual Control Panel) codes (if the monitor supports that command).
But it requires one to enumerate the monitors first and that requires to pass an enumeration callback function to another API. But callback function pointers is with the Call Library Node, while not entirely impossible to do, a major pita to implement. So you end up to not really getting around to write some wrapper DLL code.
11-15-2021 08:26 PM
ControlMyMonitor.exe /TurnOn "73GTT77JA22L" to turn on the monitor
ControlMyMonitor.exe /TurnOff "73GTT77JA22L" to turn off the monitor
If we use the above command to turn off the monitor, what command to use to know that the monitor is indeed off?
11-16-2021 06:42 AM - edited 11-16-2021 06:42 AM
@KimberlyWang wrote:
If we use the above command to turn off the monitor, what command to use to know that the monitor is indeed off?
Your Dell monitor has a completely refined remote control suite, including a C++ API. Have You tried connecting the USB cable and installing the support programs from Dell?
11-16-2021 09:27 AM
ControlMyMonitor.exe /GetValue "<your monitor>" D6
Make sure to set the SystemExec to wait for completion, check the return string in the standard output and if it is 1 it is on and if it is 4 or 5 it is off.