09-27-2011 12:30 PM
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
09-27-2011 01:30 PM
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
10-11-2011 06:28 AM
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
10-11-2011 07:44 AM
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.