10-26-2019 02:27 PM
Hello.
Does the blocks inside loop (serial write)affect Maximum loop rate or it strickly follows its timing
Regards
10-27-2019 01:58 PM
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
10-27-2019 05:11 PM - edited 10-27-2019 05:12 PM
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.