Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO CPU Usuage

I was developing my application with NI 9012. I had a timed-loop inside my VI which does nothing. I started my application on the 9012 and view the CPU Usage statistic using NI distributed manager and the CPU usuage is 100%. I'm not sure whats causing this.

 

Anyone has idea about this??

 

Many thanks!

0 Kudos
Message 1 of 2
(3,079 Views)

Hi all, i found the problem to max CPU loading. In my time-looped, there's 2 nested for-loop. The foop loop actually reads in an array of IO variable path (outter for loop), and the second for-loop (inner for-loop) reads the value of the IO variable.

 

The nested for-loop caused the CPU laoding of approx 80+%.

 

I tried to use only 1 for-loop to accomplish this operation and the CPU loading lowered to ~30%.

 

FYI, i have around 100 Iinputs IO variables.; 32 AI and 64 DI.

 

In a nutshell, TRY to use as little nested loop as possible. 


Hope this helps for those who had the same problem.

0 Kudos
Message 2 of 2
(3,075 Views)