Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

ni6210 sample rate and sample per loop, task time

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.

Download All
0 Kudos
Message 1 of 3
(1,262 Views)

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):

 

  • What is the size of the DATA array?
  • Why are you reshaping a 2D array (what size is it?) to another 2D array?
  • Why do you wire N of the FOR loop when autoindexing?
  • ...
0 Kudos
Message 2 of 3
(1,232 Views)

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"

0 Kudos
Message 3 of 3
(1,195 Views)