LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timed loop and processor load

Hello,
I have a problem of occupation of the processor load by a timed loop: - I have a loop clocked at 100ms - the content of the loop takes a little less than one ms to execute - launching the vi containing this loop increases the CPU load from 10% to 20% !? I Have other vi loaded in the same time of this one. In particular some vi which manage the sending of RS485 frame all of 10ms (with timed loop too). I have well isolated the problem on the timed loop. In the timed loop there is an FGV type VI which is well configured (not "reentrant") I have no idea of what can cause it .......i have made a lot of test and .....i dont understand! i have other timed loop vi ...and they take just 1 or 2% of processor load......

Thank you! Regards,

 

0 Kudos
Message 1 of 2
(766 Views)

Hi doublevprint,

 

replace the TimedWhileLoop by a simple While loop with a 100ms wait function inside…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(759 Views)