Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6009 Digital Input Sample Clock

Solved!
Go to solution

Can any one tell me the Sample Clock frequecy (dt) of a single channel Digital Input of USB6009 when we Read data using Digital Waveform 1 Channel N Sample mode?

 

In the digital waveform received the dt parameter is 0, however all the samples are read at the end of complete acquisition?

 

Is this hardware timed or Software Timed Input, as the read command is given only once per acquisition and all the samples are received automatically?

 

Can this waveform be used for comparison of data received from the Analog Input side?

 

Please reply.

0 Kudos
Message 1 of 11
(6,025 Views)

As you should know from reading the manual for the 6009, the digital I/O is software timed only. You can only take a single sample at a time - not a waveform. The actual time between samples is going to be dependent on your pc, os, etc and will be subject to quite a bit of jitter.

0 Kudos
Message 2 of 11
(6,024 Views)

Yes Dennis, thanks for your quick reply.

 

I did read the manual. But I am confused because I can acquire complete Digital Waveform (containing n number of samples) at a time and not a single sample.

 

Is this a driver feature?

0 Kudos
Message 3 of 11
(6,021 Views)

Or perhaps you are getting an error and ignoring it? No idea. As far as I know, specifying anything other than  1Sample/On Demand timing will result in an error.

0 Kudos
Message 4 of 11
(6,017 Views)

No certainly there is no error and i get N number of samples in one go without any error.I have not configured a sample clock (as it gives an error) although.

 

The sampling seems to be around 1000 samples per second as I can make out from the time taken (about 1000ms) for taking a 1000 samples. The thing is that I get 0 in dt parameter of waveform and cannot makeout the exact timing.

 

I will post the VI which I am using along with the sampled data when I reach office tomorrow.

0 Kudos
Message 5 of 11
(6,014 Views)

Here is the VI used for testing purpose.

0 Kudos
Message 6 of 11
(6,003 Views)

Any Replies Please.

0 Kudos
Message 7 of 11
(6,000 Views)

Interesting. I've never tried the NSamp option. With static digital, I've just placed the read in a loop. Perhaps the driver is doing something similar but since it is software timed, it will not return a dt value.

0 Kudos
Message 8 of 11
(5,992 Views)

Dennis is correct.  The underlying implementation is not hardware timed.  You should not attempt to correlate the data to analog input samples, because there is no way for you to determine dt.  The implementation is essentially the same as you calling read 1 sample in a loop.

0 Kudos
Message 9 of 11
(5,982 Views)

Thanks Mark & Dennis for your valuable inputs.

 

One Last question, can we take this digital pulse input from the counter input (pfi) of USB6009 and co-relate with Analog Input (in any way), as it may be hardware timed?

 

Otherwise , we will have to use other hardware timed board for our purpose.

0 Kudos
Message 10 of 11
(5,979 Views)