03-21-2011 01:15 AM
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!
03-21-2011 02:33 AM - edited 03-21-2011 02:35 AM
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.