Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>LabView doesn't seem to support getting the dpi or physical dimensions directly, but you can get it indirectly from the command line. Alternately, you could write an external DLL that implements GetDisplayDpi. </p> <p>On Windows, here is how to get the physical dimensions on the command line:</p> <p>Use <a href="http://www.nirsoft.net/utils/dump_edid.html" rel="nofollow noreferrer">dumpedid.exe</a> to get information about the monitor:</p> <p>To get the physical monitor size in LabView you would build a vi with these function blocks :</p> <ol> <li>System Exec to run dumpedid.exe </li> <li>Match Pattern with string "Image Size.*" </li> <li>Scan From String with format string "Image Size : %f X %f"</li> </ol> <p>Add an additional output parameter to Scan From String. The two outputs are the physical screen dimensions as reported by the hardware (in cm.)</p> <p><img src="https://i.stack.imgur.com/aVWkm.png" alt="enter image description here"></p> <p>You could get the resolution from this program with another Match Pattern/Scan, but it's easier to use the system property node! </p> <p>Caution: the property for Display:Primary Workspace is less than the full display height, it has the Windows taskbar height subtracted. You will need to go through the Disp.AllMonitors property to get the correct values.</p> <p>Here is a full block diagram that retrieves the main monitor resolution and computes dpi. You will have to round the values - they will be numbers like 94.07 or 142.7.</p> <p><img src="https://i.stack.imgur.com/SZJSV.png" alt="enter image description here"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload