12-18-2022 07:25 AM
the sample rate set as 500Hz, sample per loop 500, cycle 100. I found the task was finished in 10 s instead of 100s.
what i dont understand is the time taken for this task. i suppose per loop takes 1s, 100 cycle should be 100s. furthermore, the input is 1kHz, however the counting is 0.
The VI scheme was attached.
12-18-2022 12:14 PM
It probably would help to attach the VI instead of showing truncated pictures.
Lots of your code makes little sense (I am not a hardware guy, so I focus on the code logic only):
12-18-2022 10:02 PM
Thanks "Altenbach",
The VI is attached. What I am trying to do is a counter application, input 1KHz or higher.
My questions is why the task time is not the "samples per loop" / "sample rate" * "number of cycles"