Run a DIAdem Script from LabVIEW

Updated Aug 29, 2018

Reported In


  • DIAdem
  • LabVIEW

Issue Details

I want to run a DIAdem script (.vbs file) from LabVIEW. Where are the DIAdem automation VIs stored and how can I use them to remotely run a DIAdem script?


The DIAdem Automation VIs are stored in <C:\Program Files (x86)\National Instruments\LabVIEW VERSION\vi.lib\ExportToExcel> and can be called in LabVIEW.  

To automate the execution of a DIAdem Script from LabVIEW, you only need to use three VIs: 
  • DIAdem Open
  • DIAdem Run
  • DIAdem Close
Use these three VIs in sequence and wire the path to your DIAdem Script (.vbs) to the "script file" input of the DIAdem Run and the DIAdem script should start when that VI is called. 

Additional Information

If you want to run the script in command prompt, you can also use the System in LabVIEW. The format for the DIAdem command line is: DIAdem.exe /CScriptStart('MyScript.vbs')


Not Helpful