This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

How Fast Can I Run a Control and Simulation Loop on a myRIO?

Updated Nov 27, 2024

Reported In

Hardware

  • myRIO Student Embedded Device

Software

  • LabVIEW Control Design and Simulation Module

Issue Details

I am trying to use a Control and Simulation Loop on the myRIO, but it seems like I can't use a rate faster than 1 kHz without the simulation diverging from real time. What kind of performance can I expect?

Note: The LabVIEW Control Design and Simulation Module was deprecated in 2023, meaning that the latest version available for download is 2022 Q3. See details here: Control Design and Simulation VIs for LabVIEW 2023 and Newer

Solution

Given the large number of variations in control applications, NI does not specify a maximum loop rate for specific hardware. 

Additional Information

As a generality, you can expect timed loops running control code to top out around 1 kHz. If you need faster performance than that, consider implementing the functionality on FPGA to reduce OS overhead and enable true parallelism. 

To determine how quickly your specific code will run, you can benchmark single-point RT execution through the example in the links below.