03-06-2024 01:55 AM - edited 03-06-2024 01:57 AM
Hello. I want to make a code that measures finite digital signals using ni9423. What I was trying to make was a code that measures digital signals 10 times per second. I really want to use daq timing to measure every certain amount of time. But when I run the code, it only runs once and ends. Which part should I fix? Thank you.
03-06-2024 02:09 AM
Just use while loop which will iterate every 100 ms - this will give 10 measurement per second:
03-06-2024 02:17 AM
Thank you for your kind reply, but if I turn the while loop with the other loop, there is a problem of delay than 100ms. Do you happen to know how to solve this?
03-06-2024 02:19 AM
03-06-2024 05:39 AM
And no wait in the loop needed.
the samplerate and number of points to read define the (min*) loop duration.
*) min, because depending on the other stuff you put into the loop. (but you can look at the producer-consumer architecture if things get critical)