LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

increasing CPU usage -> crash

My desktop CPU usage is steadily increasing from 0 - 100% (then the PC crashes) when I run my LabVIEW program. I am using WinXP and LV2010, in an application that reads data from a TCP port then does lots of maths processing on that data (which takes about 20ms). I have set the time critical subvis to have a high priority. I use a producer and two consumer loops to accomodate fluctuations in the stream, and flush the queues if the queue lengths reach 20.  

 

Any ideas why the CPU is struggling? The usage increases linearly for about 2 minutes before crashing.

 

 

Thanks

 

 

0 Kudos
Message 1 of 4
(2,324 Views)

Not much to go on.

 

Try tossing the number crunching to see if you are not keeping up with the incoming data stream. It may be backing up in the IP stack.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 4
(2,312 Views)

Hi Ben,

 

My email didn't tell me you had replied!  .. How do I see what is happening on the IP stack? I've used the profiler to check subvi performance, but the network side is new to me. What other info. would you like?!

 

 

Graham  

0 Kudos
Message 3 of 4
(2,280 Views)

Hi Graham,

 

I think Ben's suggestion is to remove the maths processing and then see if you are still having the problems. This would insolate the problem to the math's or the networking.

 

Give this a go and let me know how you get on.

Nick
0 Kudos
Message 4 of 4
(2,268 Views)