Hello,
my problem is about loop timing for data acquisition (and computations). As proposed, I use a time critical loop with high priority in LV RT, buffered read of, say, 4 scans (need low latency) at a sampling rate of, say 1500 Hz which will require 375 iterations per second. I set up the acquisition to be hardware timed (4472 board), so that is o.k. Now, to give the rest of the program a chance to operate, I have to introduce a delay in my TCL.
Which delay should I choose? Wait ms might block everything (if I understand right) and definitely takes away the time from my TCL, Wait until multiple ms would not match, as I have a required loop time of 2.66666 ms, hardware timed. Using 3 ms will make the loop too slow, using 2 ms might give
strange results based on the difference to the 2.66666 ms hardware timing, as the counter uses some kind of modulo operation.
How to say "lay back for the other threads a bit at the end of the iteration" without conflicts with the hardware timing?
Thanks,
acoustics