Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

sampling rate for digtial and analog input

I am working with the 6225, 6220 and the 6009 and wish to sample both analog and digital input at the same time.  Can the sampling rate for analog input be different than that for digital input?  Or must both digital and analog sampling be performed at the same rate?
 
Thanks,
 
 
Ian
0 Kudos
Message 1 of 4
(3,612 Views)
Hello,
 
I wish to clarify that I only wish to sample both digital and analog input on only 1 device.
 
Thanks,
 
 
Ian
0 Kudos
Message 2 of 4
(3,615 Views)

Hello Ian,

Yes, you can concurrently run an analog and digital input task. Take a look at the shipping examples on multi-function applications. In LabVIEW, click Help>>Find Example to open the NI example finder. Browse to Hardware Input and Output>>DAQmx>>Synchronization>>Multi-Function.

The sampling rate for the analog input and the digital input will be determined by the source of the sample clock and the sampling rate. Were you planning on synchronizing the two task or would like them to sample at different rates?
 
Regards,
  Sandra T.

Applications Engineer | National Instruments

0 Kudos
Message 3 of 4
(3,572 Views)

Hello Sandra,

I will be recording both digitized digital input and analog input.  It is important that the onset of events in the digital input be precisely timelocked with the analog input.   In other words, when an event is recorded in the digital input I must be able to precisely identify the analog data that occurred at the same time as the event in the digital input. 

I have already reviewed sample code that illustrates how to synchronize the digital input with the analog input providing that the sampling rates are the same for both types of input.  In my case, I would like that the sampling rate for the digital input be about 2000Hz whereas the sampling rate for the analog input be about 500Hz per channel.   Can this be done and still be able to precisely timelock the digital input data with the analog input data?

I am developing my application in C++ using NIDAQmx v8.

Thank you for your time and input

Ian

0 Kudos
Message 4 of 4
(3,563 Views)