From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,190 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,136 Views)

Hi Kevin,

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

0 Kudos
Message 3 of 6
(2,122 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,091 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,039 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,984 Views)