myRIO VIs

LabVIEW 2018 ELVIS III Toolkit Help

Edition Date: March 2018

Part Number: 377208A-01

»View Product Info
Download Help (Windows Only)

March 2018, 373926F-01

Requires: myRIO Toolkit. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the myRIO VIs to create applications on the myRIO.

Complete the following steps to access the myRIO VIs:

  1. Select File»Create Project from LabVIEW to display the Create Project dialog box.
  2. Create a myRIO project by using the Create Project dialog box.
  3. In the Project Explorer window of the myRIO project, right-click the myRIO target and select New»VI from the shortcut menu.
  4. Select Window»Show Block Diagram to view the block diagram of the VI.
  5. Select View»Functions Palette and navigate to the myRIO palette.

The VIs on this palette can return general LabVIEW error codes and myRIO, roboRIO, and ELVIS RIO Control error codes.

Palette ObjectDescription
AccelerometerReads acceleration values along the X, Y, and Z axes of the accelerometer.
Analog InputReads values from one or more analog input channels.
Analog OutputWrites values to one or more analog output channels.
ButtonReads the value from the user programmable button.
Digital InputReads values from one or more digital input channels.
Digital OutputWrites values to one or more digital output channels.
EncoderReads and decodes signals from an encoder through the encoder channels. This Express VI reads the number of ticks that the encoder receives since the last counter reset.
I2CWrites data to or reads data from an Inter-Integrated Circuit (I2C) slave device through the I2C channels.

The roboRIO uses a 3.3 V voltage rail on the I2C port for powering I2C peripherals and provides 3.3 V DIO lines for generating I2C signals.
InterruptRegisters analog and digital input interrupts and creates timer interrupts.
LEDSets the states of the LEDs.
PWMGenerates a pulse width modulation (PWM) signal to an external peripheral through the PWM channels.

The roboRIO uses a 6 V voltage rail on the PWM port for powering servos and provides 5 V DIO lines for generating PWM signals.
SPIWrites data to or reads data from a serial peripheral interface (SPI) slave device through the SPI channels.

In addition to the SPI channels on the MXP port, the roboRIO also has an SPI port. The SPI port contains four chip select (CS) lines to support up to four slave devices. You also can use the CS lines as DIO lines. The roboRIO uses a 3.3 V voltage rail on the SPI port for powering SPI peripherals and provides 3.3 V DIO lines for generating SPI signals.
UARTWrites data to or reads data from a Universal Asynchronous Receiver/Transmitter (UART) device through the UART channels.

With the roboRIO, you also can use this VI to write data to or read data from an RS-232 device through the RS-232 channel.



SubpaletteDescription
Device Management VIsUse the Device Management VIs to set custom FPGA bitfiles and to reset I/O channels.
High Throughput FPGA Personality VIsUse the High Throughput FPGA Personality VIs to create applications on the myRIO or the NI ELVIS RIO CM with the high-throughput FPGA personality. The high-throughput FPGA personality supports high-speed analog or digital data access. You can use the high-throughput personality for audio signals and projects in need of waveform data.
Low Level VIsUse the Low Level VIs to control the I/O channels.

© 2013–2018 National Instruments. All rights reserved.

WAS THIS ARTICLE HELPFUL?

Not Helpful