LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CPU Load at RT Loop varies every time

Hi,

I have a simple CAN Read Node in a RT Loop which runs on an sbRIO.

The CPU Load is at about 5-10%.

When I stop the VI and start it again, it sometimes goes up to 90% on one core.

Has anyone ever had such a problem?

0 Kudos
Message 1 of 6
(2,198 Views)

Hi,

 

you have to put a sleep (with for example 250ms) somewhere into the while loop, please take a look into the attached image.

0 Kudos
Message 2 of 6
(2,144 Views)

Hi Kevin,

This is a Timed Loop. The delay is set in the loop Settings.

0 Kudos
Message 3 of 6
(2,130 Views)

Although this is a timed loop, I think you need to sleep for a while.

I can't explain why, but for me it mostly fixes this problem

0 Kudos
Message 4 of 6
(2,099 Views)

Hi nicolaus33,

are you still struggling with this issue?

If so, could you please write a little bit more about your project or perhaps share it? What is the part number of your sbRIO? Why are you using 1 MHz timed loop to read data from CAN? What does your application in general and what does this loop do in the context of whole project?

0 Kudos
Message 5 of 6
(2,047 Views)

Hi Agnes,

I get CAN Messages down to every 8ms and because you can only read one message at a time with the sbRIO CAN function, I need to use this fast cycle time.

0 Kudos
Message 6 of 6
(1,992 Views)