NI myRIO C and C++ Development Support and Examples

Publish Date: Feb 19, 2019 | 5 Ratings | 1.80 out of 5 | Print | 1 Customer Review | Submit your review


NI myRIO is an embedded hardware device designed specifically to help students design real, complex engineering systems more quickly and affordably than ever before. NI myRIO is based on NI reconfigurable I/O (RIO) technology, which gives you the ability to program both a processor running a real-time OS and a customizable FPGA. In addition to NI LabVIEW software, the NI myRIO processor is fully programmable in C or C++ using the default shipping personality placed on the FPGA. You can only customize the FPGA using the LabVIEW FPGA Module. Follow the steps below to start programming the NI myRIO processor in C.

Table of Contents

  1. Install Development Tools, Toolkit, Examples and Documentation
  2. Next Steps
  3. Additional Resources

1. Install Development Tools, Toolkit, Examples and Documentation

  1. Install the C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition, typically the latest version.
  2. Download and install the LabVIEW myRIO Toolkit. This toolkit provides you with the necessary drivers to use NI myRIO as well as some software utilities, which offer useful information about your device.
  3. Download the NI myRIO C Support. The NI myRIO C examples are written in C. However, C++ is also supported if you use the tools provided in Step 1.  This download also includes examples for using the myRIO with Accelerometers, Analog I/O, Digital I/O, Encoders, I2C, IRG, PWM, SPI, and UART.
  4. Connect power to the NI myRIO device.
  5. Connect the USB cable from NI myRIO to your development computer.
  6. The NI myRIO USB Monitor appears and displays the IP address of the NI myRIO device.

    • Click Launch the Getting Started Wizard.

    • The Getting Started with NI myRIO Wizard installs software on a new NI myRIO device. Click through the prompts in the wizard to install software.

  7. After software is installed on NI myRIO, use the documentation you downloaded in Step 3 to start using the Eclipse environment to program the NI myRIO processor in C.


Back to Top

2. Next Steps

Learn more about myRIO


Back to Top

3. Additional Resources


Back to Top

Customer Reviews
1 Review | Submit your review

Link to C code examples is broken  - Sep 5, 2014

Very interested to see more details of how this is achieved but can't download the code examples

Bookmark & Share


Rate this document

Answered Your Question?
Yes No