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: 

Run 7 while loops in same vi

Hi,

I have to run 7 threads in Labview 2012. If i run 7 while loops it is taking >50-85%of CPU.

Please let me know if you How to minimize this?

 

Thanks & Regards,
Harish. G.
0 Kudos
Message 1 of 4
(2,420 Views)

You throttle the threads with either a wait block or timed loop structure where appropriate. Of course if you need all those loops processing away at full tilt it's going to cost you 50 to 85%.

0 Kudos
Message 2 of 4
(2,410 Views)

Thanks ToeCutter,

 

But am using wait loop in every while loop. It is not causing any effect.

 

If you have any example show me 🙂  

Thanks & Regards,
Harish. G.
0 Kudos
Message 3 of 4
(2,406 Views)

There are 1,000,001 reasons for high CPU usage.  Can you post your code?  What are your different loops doing?  Are you dynamically building arrays?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(2,389 Views)