Communication Test Sequence
- Updated2025-04-25
- 3 minute(s) read
The Communication Test sequence demonstrates data read and write operations through I2C, SPI, and serial communication using a USB-845x or USB-232 device.
This TestStand sequence uses the LabVIEW measurement libraries. By default, the test sequence is installed to the following location: C:\Users\Public\Documents\National Instruments\PCB Assembly Test Toolkit for LabVIEW\TestStand\Automation\Communication Tests
Refer to the Communications APIs Library topic for information about related examples on which the Communication APIs are based.
Required Driver Application Software
This sequence requires a supported version of the following driver application software:- NI-DAQmx
- NI-845x
- NI-Serial
Highlighted Features
Hardware Configuration



Using the Sequence with Physical Hardware
- Update the I2C Comm Test sequence.
- Update the DeviceID variable with the connected
USB-845x device ID in the Update I2C Interface Device
ID step.
Copy this step and associated variables if you create a custom sequence.
- Review and update step settings for the I2C Read – Read Register Data and I2C Write – Write Register Data steps based on the relevant I2C specifications. These settings are used in read and write operations.
- Review the configurations of USB-845x I2C pins for your intended use case.
- Update the DeviceID variable with the connected
USB-845x device ID in the Update I2C Interface Device
ID step.
- Update the SPI Comm Test sequence.
- Update the DeviceID variable with the connected
USB-845x device ID in the Update SPI Interface Device
ID step.
Copy this step and associated variables if you create a custom sequence.
- Review and update step settings for the SPI Read – Read Register Data and SPI Write – Write Register Data steps based on the relevant SPI specifications. These settings are used in read and write operations.
- Review the configurations of USB-845x SPI pins for your intended use case.
- Update the DeviceID variable with the connected
USB-845x device ID in the Update SPI Interface Device
ID step.
- Update the Serial Comm Test sequence.
- Update the Serial VISA variable with the targeted
serial COM VISA address in the Update Serial VISA
step.
Copy this step and associated variables if you create a custom sequence.
- Review and update step settings for the Simple Serial Comm step based on the relevant serial port specifications. These settings are used in read and write operations over the serial COM port.
- Review the connections between the serial com ports for your intended use case.
- Update the Serial VISA variable with the targeted
serial COM VISA address in the Update Serial VISA
step.
Related Information
- Creating and Modifying Global Virtual Channels
A virtual channel is a collection of settings such as a name, a physical channel, input terminal connections, the type of measurement or generation, and scaling information. A virtual channel that is created outside a task is a global virtual channel.
- Communication APIs Library
The Communication APIs Library contains simple read and write VIs for I2C, SPI, and serial communication modes. This library is applicable for the USB-8452, USB-232, and corresponding driver application software.
- Set Up Communication with Serial Instruments in LabVIEW using NI-VISA
- Serial Installation Guide for PCI/PCIe, PXI/PXIe, USB, ENET, ExpressCard, and PCMCIA Hardware
- Archived: NI-845x Software and Hardware Installation Guide (May 2011)
- Location of NI-845x Example