I am taking over software for project which previously used USB2637 for 8 channels of A/D acquisition, and we are now switching over to USB-1808. Acquisition of 8 channels (previous code, for USB-2637) is performed in software by
Options = BACKGROUND + EXTCLOCK + SINGLEIO +CONTINUOUS;
ULStat = cbAInScan(BoardNum, LowChan, HighChan, Count, &Rate, Gain, ADData, Options);
We have a 1kHz external clock which is EXTCLOCK signal.
Count = 4096, and Rate =1000 (though since we are using EXTCLOCK, I believe that Rate is not used…)
I am trying to understand what Count = 4096 parameter accomplishes. We are triggering acquisition of 8 channels every 1ms, and 8 samples are transferred into memory (ADData) buffer at this rate.
According to Universal Library help file,
Count: The number of A/D samples to collect. Specifies the total number of A/D samples that will be collected. If more than one channel is being sampled, the number of samples collected per channel is equal to Count / (HighChan – LowChan + 1).
Does this still apply - even if we are triggering at 1KHz?