LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detect HDMI or VGA connection

Dear forum members,

 

Out of some reasons, I want that one of my LabVIEW programs runs only if the laptop is connected to my audio and video system via HDMI. The program shall give a warning or similar if the laptop is connected to the audio and video system via VGA.

So, is there any way how I can detect if the laptop is connected via HDMI or VGA?

 

I would be happy about some feedback!

0 Kudos
Message 1 of 3
(3,620 Views)

The property node on the application class has a All Monitors under the display category.  This returns the number of monitors on the system, and their resolution, and color depth.  This information might change if you are plugged into an external monitor or not depending on how Windows is configured.  Other than that you'll probably need some system level calls to read the current monitors and display driver names.

Message 2 of 3
(3,538 Views)

Thanks a lot for the feedback!

 

The idea is great. Unfortunately, I have different laptops which behave differently.

One changes the display size the other not id I connect them to the HDMI wire.

So, I cannot really use the All Monitors Application for detecting if there is a HDMI or VGA connection.

Meanwhile, I also think that I will build in my program some dialog in - this is easy and will work for sure.

Anyway, Thanks a lot - I learned something 😉

0 Kudos
Message 3 of 3
(3,519 Views)