LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO CPU utilization - running from project vs real-time executable

Solved!
Go to solution

Hello, 
  I have an application that I've been working on that's deployed to a cRIO target. So far, I've been running the code mostly by deploying my project directly. Today however I built an rtexe. 

  My issue is that when I run my Main.vi from the project directly, my CPU usage is healthy, ~10%. When my real-time executable runs however, CPU usage is >95%. I am operating in hybrid mode, with two serial modules using the ni-serial scan engine support. Other than that, nothing too out of the ordinary.

Does anyone have any insight into what might cause an RT EXE to hog so much more CPU vs. the same VI running in project mode?

CoreyRotunno_0-1718228475629.png  

CoreyRotunno_1-1718228514245.png

 

 


Corey Rotunno

0 Kudos
Message 1 of 2
(432 Views)
Solution
Accepted by topic author Corey.Rotunno

False alarm. As previously mentioned, I am running in hybrid mode. One of my modules, an NI9213, is running in "Real-Time NI-DAQmx" mode. When running from my project, the bitfile was always previously running so no problem. When I ran application as a startup-vi though, the DAQmx read loop did not wait long enough for the FPGA bitfile reference to open and start running. This cause an error which caused a run-away loop around my DAQmx read.


Corey Rotunno

0 Kudos
Message 2 of 2
(420 Views)