Show DOS Window in LabVIEW Tutorial

The System Exec VI in LabVIEW can be used to execute command line instructions and display the DOS window. The following are the specific steps:

  1. On the Block Diagram panel, choose System Exec VI under Functions » Programming » Execution Control and drag it onto the Block Diagram panel.
  2. Right-click on System Exec VI and select Properties.
  3. In the System Exec Properties dialog box, set the Command Line parameter to the command line instruction you want to execute. For example, you can enter cmd.exe to open a DOS window.
  4. In the System Exec Properties dialog box, set the Show Front Panel option to True to display the DOS window.
  5. Click OK to close the System Exec Properties dialog box.
  6. Connect the Error Out output and the Done output of the System Exec VI.
  7. Connect the Front Panel Out output of the System Exec VI to an Indicator control on the Front Panel.
  8. Click the run button and the DOS window will appear.

Caution: If LabVIEW is running on a 64-bit operating system, you may need to set the Execution target property of the System Exec VI to 32-bit. This setting can be adjusted in the Execution tab of the VI Properties dialog box.

bannerAds