myRIO VIs
- Updated2023-02-21
- 3 minute(s) read
myRIO VIs
June 2015, 373926C-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:
- Select File»Create Project from LabVIEW to display the Create Project dialog box.
- Create a myRIO project by using the Create Project dialog box.
- In the Project Explorer window of the myRIO project, right-click the myRIO target and select New»VI from the shortcut menu.
- Select Window»Show Block Diagram to view the block diagram of the VI.
- Select View»Functions Palette and navigate to the myRIO palette.
The VIs on this palette can return general LabVIEW error codes and myRIO and roboRIO error codes.
Palette Object | Description |
---|---|
Accelerometer | Reads acceleration values along the X, Y, and Z axes of the accelerometer on the myRIO or the roboRIO. |
Analog Input | Reads values from one or more analog input channels on the myRIO or the roboRIO. |
Analog Output | Writes values to one or more analog output channels on the myRIO or the roboRIO. |
Button | Reads the value from the user button on the myRIO or the roboRIO. |
Digital Input | Reads values from one or more digital input channels on the myRIO or the roboRIO. |
Digital Output | Writes values to one or more digital output channels on the myRIO or the roboRIO. |
Encoder | Reads and decodes signals from an encoder through the encoder channels on the myRIO or the roboRIO. This Express VI reads the number of ticks that the encoder receives since the last counter reset. |
I2C | Writes data to or reads data from an Inter-Integrated Circuit (I2C) slave device through the I2C channels on the myRIO or the roboRIO. |
Interrupt | Registers analog and digital input interrupts and creates timer interrupts on the myRIO or the roboRIO. |
LED | Sets the states of the LEDs on the myRIO or the roboRIO. |
PWM | Generates a pulse width modulation (PWM) signal to an external peripheral through the PWM channels on the myRIO or the roboRIO. The roboRIO uses 6 V voltage rail on the PWM port for powering servos and provides 5 V DIO lines for generating PWM signals. |
SPI | Writes data to or reads data from a serial peripheral interface (SPI) slave device through the SPI channels on the myRIO or the roboRIO. |
UART | Writes data to or reads data from a Universal Asynchronous Receiver/Transmitter (UART) device through the UART channels on the myRIO or the roboRIO. 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. |
Subpalette | Description |
---|---|
Device Management VIs | Use the Device Management VIs to set custom FPGA bitfiles and to reset I/O channels on the myRIO or the roboRIO. |
High Throughput FPGA Personality VIs | Use the High Throughput FPGA Personality VIs to create applications on the myRIO with the high-throughput FPGA personality. The myRIO 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 VIs | Use the Low Level VIs to control the I/O channels on the myRIO or the roboRIO. |
© 2013–2015 National Instruments. All rights reserved.