NI DIAdem Integration With NI TestStand

Updated Sep 19, 2023

Environment

Software

  • DIAdem 2022 Q2
  • TestStand 2021 SP1
  • LabVIEW 2021

Operating System

  • Windows

This article focuses on explaining the steps to integrate NI DIAdem analysis in NI TestStand for automating the test sequence. The NI DIAdem integration can be categorized into two different approaches:
  1. Using NI DIAdem Automation APIs in NI LabVIEW
  2. Using Legacy DIAdem Connectivity Steps Types in  NI TestStand
The outcome of this article is to attain a seamless automation experience with NI DIAdem & NI TestStand. The intended audiences are users who are looking to automate large set of test data for post-process analysis.


Prerequisite Knowledge Required:

  1. NI LabVIEW 2021
  2. NI TestStand 2021 SP1 32 bit
  3. NI DIAdem 2022 Q2

The NI DIAdem integration with NI TestStand can be categorized into two different methods:


​​​​​Using NI DIAdem Automation APIs in NI LabVIEW

  1. To run the NI DIAdem Scripts (.vbs file) in NI TestStand, DIAdem Automation VIs can be called in LabVIEW.  
  2. Open the DIAdem Automation VIs by navigating to C:\Program Files (x86)\National Instruments\LabVIEW 20xx\vi.lib\ExportToExcel.2.png
  3. Refer to Run a DIAdem Script from LabVIEW to develop the VI with DIAdem Automation APIs.
  4. Save this VI as Call DIAdem.vi. Refer to the block diagram snippet below:
Call DIAdem VI.png
  1. Wire the path to your DIAdem Script (.vbs file) to the script file input of the DIAdem Run Script.vi.
  2. Run the Call DIAdem.vi to test the DIAdem script execution.
  3. Open existing TestStand sequence in NI TestStand 2021- Sequence Editor.
  4. Follow the steps mentioned in Using a VI in TestStand to add the Call DIAdem.vi in the existing NI TestStand sequence.3.png
  5. Run the TesStand Sequence by clicking the Single Pass button.


Using Legacy DIAdem Connectivity Steps Types in  NI TestStand

  1. The Legacy DIAdem Connectivity Step Types allow NI TestStand users to send channel data to DIAdem, receive channel data from DIAdem, and run DIAdem scripts. 
  2. To install, extract the DIAdemStepsTypes.zip file attached into the default directory C:\Users\Public\Documents\National Instruments\TestStand\DIAdemStepTypes.
  3. Open DIAdem Example.seq from this folder to run the example TestStand Sequence.
  4. Observe the DIAdem Steps folder is now available in NI TestStand environment to use. DIAdem Step Types.png

By following the steps mentioned above, the NI DIAdem Scripts can be integrated with the NI TestStand sequence to achieve complete automation of the test application.