LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

usb 6008 DI sample rate

Solved!
Go to solution

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

 

 

0 Kudos
Message 1 of 2
(3,250 Views)
Solution
Accepted by topic author dotNet_to_LabW

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

Message 2 of 2
(3,239 Views)