Overview
This example shows how to call a targeted Windows' application (i.e. Calculator) using the System Exec VI.
Description
This VI uses a Call Library Function Node along with string and path manipulation VIs to build inputs to the System Exec VI. This VI allows the user to make command line calls from LabVIEW. This example includes the ability to launch Windows Volume Control as well as the Windows Calculator. It could easily be expanded to include other command line applications.
Note: If you are using a Windows 7 machine, the String Constant in the Volume Ctrl case of the Case Structure should be changed from "System32\sndvol32.exe" to "System32\sndvol.exe"
Requirements
- LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
- Select which target application you would like to run using the Target control on the front panel
- Click the Run button
- Your application will launch
Additional Information or References
VI Snippet
Solution Prepared By,
Ian Fung, Koo
ian_fung@yahoo.com | Singapore
**This document has been updated to meet the current required format for the NI Code Exchange.**