04-12-2023 09:52 AM
I'm going to jump in off topic but addressing some disturbing observations of your code.
You have configured a finite Task for exactly 1000 points at 1000 samples per second. Then you stuck the read in a loop! Worse, you added a wait 200msec function in the loop that cannot complete until 1 second worth of samples have been acquired. This is not ideal.
04-12-2023 10:59 AM - edited 04-12-2023 10:59 AM
Thanks a lot @Mr.Altenbach and @ROtakecandad
It worked as expected.
Thanks Mr. Altenbach for the explanation.