02-15-2007 03:59 PM
02-15-2007 04:01 PM
02-18-2007 11:55 PM
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
02-19-2007 03:20 PM
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