Connecting a CompactRIO to a XBee/XBee-PRO S2C Zigbee RF Module

Updated Aug 16, 2018

Reported In


  • CompactRIO Controller
  • CompactRIO Chassis

Issue Details

I have a XBee/XBee-PRO S2C Zigbee RF Module and would like to process the data from this module on my CompactRIO.


The XBee/XBee-PRO S2C Zigbee RF Module has two primary communication interfaces as per page 38-45 of the user guide for the device.

Methods for communication with CompactRIO:
  • Serial/UART - The module can communicate to a compactRIO via serial using a level translator (for example, through a RS-232 or USB interface board). With a USB level translator, you can connect directly into a CompactRIO USB port and receive serial commands using the NI-VISA drivers. For RS232, a NI-9870 Serial Interface module can be used.
  • SPI - The XBee/XBee-PRO Zigbee RF Module supports SPI communications in slave mode. Although there are not any SPI modules explicitly for the CompactRIO line of products, a C Series digital module such as the NI-9402 can be used in conjunction with LabVIEW FPGA to implement a SPI master on the CompactRIO.

Additional Information

See pages 39-45 of the XBee/XBee-PRO S2C Zigbee RF Module user guide for more information on correclty interpreting UART/SPI commands from the module.


Not Helpful