Running Linux Shell Commands and Variables in LabVIEW

Updated Aug 17, 2023

Reported In


  • LabVIEW

Operating System

  • Linux

Issue Details

I am writing a LabVIEW code for my Linux machine, and I would like to use the outputs of shell commands and environmental variables in the code. How can I access the outputs of these commands and variables?


You can send commands to be executed on a terminal in LabVIEW by using the System Exec.VI. Enter the terminal command as a string into the command line input of the System Exec VI. The output can then be used as needed.

Additional Information

Here is an example of using the System Exec VI to output driver messages relating to the system's serial ports: