Adding LAN/SCPI Instruments with NI-VISA
- Updated2024-10-31
- 2 minute(s) read
Adding LAN/SCPI Instruments with NI-VISA
NI-VISA is used to communicate with LAN/SCPI devices, such as third party battery cyclers, chillers, and environmental chambers.
- From the VeriStand Editor, launch System Explorer.
- Expand Controller and select Custom Devices in the configuration tree.
- Right-click Custom Devices and select Instrument Addon.
- Select VISA as the Protocol.
- Click OK.
-
Configure the following settings:
Figure 1. LAN/SCPI Instrument Configuration Page 
- Enter the a unique name in the Name field to reflect the instrumentation being used.
- In the PCL Decimation field, enter the rate, in Hz, at which communication with the instrument occurs. For example, if you set the Controller’s Target Rate to the recommended 1,000 Hz in Configuring the VeriStand Engine (cRIO-9047), and the PCL Decimation to 100, communication with the instrument occurs at 10 Hz. This custom device is designed to communicate at tens of Hz.
-
Enter the IP address for LAN instrumentation in the VISA
Resource. This typically takes the form
TCPIP::xxx.xxx.xxx.xxx::INSTR, where
xxx.xxx.xxx.xxx refers to the instrument’s IP address.
Note Discovery of VISA resources is not supported on Linux x64 targets.
- Configure Enable Termination Character, Append Write Termination Character, and Termination Character as needed for the instrument you are communicating with.
-
Configure messages to send to your device, per Configuring Instrument
Messaging.
Note You can reuse configurations you have completed for a specific instrument by right-clicking the custom device and selecting Export Config. This saves the personality to a DAT file. When creating a new instance of the instrument, you can then right-click Custom Devices and select Instrument Addon. When the Set Your Initial Settings dialog appears, change the Protocol to VISA, set the Previous Personality Path to the path of the saved DAT file, and select OK. Then change any configuration that is specific to this instrumentation instance, for example, VISA Resource.
- Repeat steps 3 through 7 for each LAN/SCPI instrument in your system.
- Save the system definition file and configure instrument communication as listed in Configuring Instrument Messaging.