Example Code

Implementing a Custom Digital Interface with R Series Multifunction RIO

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.


  • LabVIEW
  • LabVIEW FPGA Module


  • R Series Multifunction RIO

Code and Documents



This is an example of how to implement a custom digital interface with LabVIEW FPGA and the attached files can be used as a starting point for implementing any serial protocol on Intelligent DAQ hardware.


How to Use

For a detailed explanation of the LabVIEW project and block diagrams, please see PDF below - Implementing a Custom Digital Interface with R Series Multifunction RIO.pdf


Additional Information



  • LabVIEW Full/Professional Development System 8.0 or later
  • LabVIEW FPGA Module 8.0 or later


  • R Series Multifunction RIO


Custom or proprietary digital protocols are commonly used in today's world for device or sub-system communication in everything from Aerospace to Consumer Electronics. While this often ensures hardware-timed speed and reliability, it also requires a custom digital interface to prototype and test these devices, which can involve the high development costs of custom hardware. The integrated I/O on FPGA-based Intelligent DAQ devices allows you to leverage off-the-shelf hardware to implement almost any custom digital protocol for design, control, and test applications. The LabVIEW FPGA module eliminates the need for hardware design experience by compiling graphical block diagrams into routines that execute in silicon.


Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.