09-27-2017 04:33 PM
I would like to demonstrate to that some code is stable and immune to high cpu usage. Is there a LabVIEW tool or vi that can hog a lot of CPU time for testing? A simple loop with nothing in it is barely noticeable on my CPU Usage graph.
Solved! Go to Solution.
09-27-2017 04:43 PM - edited 09-27-2017 04:45 PM
I assume your PC is a multi-core machine. In which case have you tried throwing down several empty while loops, one for each logical core of your machine?
There are also probably other, better ways of demonstrating limited CPU-bound activity if you can give us some more information of what you are actually doing.
09-27-2017 04:47 PM
I have 8 core machine and when I place down 8 while loops generating random numbers (no wait), I get 100% CPU usage and PC becomes unusable.
09-27-2017 05:11 PM
@TeraTech wrote:
A simple loop with nothing in it is barely noticeable on my CPU Usage graph.
If there is nothing in the loop producing any output, the compiler might eliminate such loops, especially if debugging is off. Might be worth doing some tests....