Adding Serial Instruments with RS-xxx
- Updated2024-10-31
- 2 minute(s) read
- 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 RS-xxx as the Protocol.
- Click OK.
-
Configure the following settings:
Figure 1. Serial Instrument Configuration Page 
- Enter a unique name in the Name field to reflect the instrumentation that you are using.
- Enter the rate, in Hz, in the PCL Decimation field, at which communication with the instrument occurs. For example, if you set the Target Rate of the cRIO-9047 controller 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.
-
Use the Discovery Wizard button (
) in the Port field to select available
serial ports on the target.
- Configure the Baud Rate, Data Bits, Parity, Stop Bits, and Flow Control fields as needed for the instrument you are communicating with.
-
Configure messages to send to your device, as listed in 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 RS-xxx, 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 serial instrument in your system.
- Save the system definition file and configure instrument communication as listed in Configuring Instrument Messaging.