04-01-2011 04:36 AM
Hi,
I would like to sample N samples from a digital input channel on 6008. In AI port, it is possible to set Samples/channel and sample rate but I could not find a way to do the same for DI channel.
If I use MAX to read N samples on demand, I can increase or decrease the number of sampels to read but changing rate has no effect.
using:
DAQmxErrChk (DAQmxCfgSampClkTiming(g_TaskHandle, "" , samplesPerSecond, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, sampsPerChan));
also gives me error.
Dont know that to do 😞
Regards
RB
Solved! Go to Solution.
04-05-2011 03:20 AM
Hi RB,
digital I/O lines on the USB-6008 are "static", meaning they are controled by software. There is no sample clock to defining the time when a sample is read/written. Your software provides the timing for DIO.
Measurement mode "Samples on demand" does refer to software timing.
On most NI products that provide DIO hardware timing (a sample clock) is available. As a low cost product, the USB-6008 does not offer hardware timing for DIO.
Regards, Topp