LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Real time loop rate

Hello. 

Does the blocks inside loop (serial write)affect Maximum loop rate or it strickly follows its timing 

Regards

0 Kudos
Message 1 of 3
(2,332 Views)

It depends.  That question is so vague that no answer suggests itself.  Some LabVIEW code showing what you mean (including what "real time" means to you, what you are trying to do, etc.) would enable us to give you some guidance.  Such things as sampling rate, type of hardware, etc. are important to know ...

 

Bob Schor

Message 2 of 3
(2,247 Views)

The max loop rate is determined by the slowest serialized code fragment inside the loop. Once everything is finished, the loop can go to the next iteration. Typically you want everything to be faster than the wait so the loop rate is determined fully by the wait alone. (note that the wait runs in parallel to the rest of the loop code).

 

As we have discussed in all your other threads (why not keep it all in one place???), running on a non-realtime OS (such as windows) cannot guarantee anything. Even if everything in the loop has finished, there could be an OS (or other) task stealing clock cycles from your program.

Message 3 of 3
(2,235 Views)