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

Updated Nov 18, 2022

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?

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.