To download NI software, including the products shown below, visit ni.com/downloads.
The VISA step types are an example of custom steps that integrate TestStand with VISA devices. This example provides a set of new steps that allow TestStand to perform basic VISA operations such as Read, Write, and Configure Serial Port without additional code. The VISA steps use substeps called using the LabWindows™/CVI Adapter to communicate with a DLL created with LabWindows™/CVI.
If you need to perform more sophisticated VISA tasks, you can use the NI-VISA built-in functions available in LabVIEW or LabWindows™/CVI to develop your code. This example requires the NI-VISA driver.
The VISA step types use the NI-VISA driver functions to perform basic VISA operations. This example uses the LabWindows™/CVI adapter and the source code is provided. The VISA steps can be configured for any VISA device. Each step type provides a configuration dialog to set the parameters at edit-time for the VISA call using an edit substep defined in the step type. When the step is executed, the VISA call is implemented in a post-step substep.
Note: These step types are compatible with 32-bit versions of TestStand only.
The TestStand Step Types include:
If you need to perform more sophisticated VISA tasks, create specific code modules using the NI-VISA built-in functions available in LabVIEW or LabWindows™/CVI to develop your code.
Opens a VISA session to a VISA Resource. To configure the VISA Open step, Right Click on the step » Configure VISA Open.
VISA Config Serial Port
When the VISA session is a serial port, use this step to configure parameters of the serial port. To configure the VISA Config Serial Port, Right Click on the step » Configure VISA Serial Port.
Allows basic Write operation to VISA sessions. To configure the VISA Write, Right Click on the step » Configure VISA Write.
Allows basic Read operation to VISA sessions. To configure the VISA Read, Right Click on the step » Configure VISA Read.
Closes a VISA session. To configure the VIS Close step, Right Click on the step » Configure Close.
VISA Step Types for TestStand - TS2016.zip
TestStand 2016 or Compatible (32-bit only)
LabWindows™\CVI 2013 SP2 or compatible
Installing the VISA Step Types
Using the VISA Step Types
After installing the step types, a new "VISA" folder will appear in the insertion palette. You can insert these step types in a sequence in the same way as other TestStand steps
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.