03-19-2007 08:35 PM
03-20-2007 05:36 AM
03-20-2007 07:13 AM - edited 03-20-2007 07:13 AM
Message Edited by szekany on 03-20-2007 07:15 AM
03-20-2007 08:02 AM
03-20-2007 08:23 AM
03-20-2007 10:22 AM
First off, I don't think you're up against a true limitation. I'm not real sure where the problem is coming from, but I strongly suspect it's possible to resolve.
Just a shot in the somewhat dark: Are you by any chance reading your data as waveforms with embedded t0 and dt values?
I may be paranoid, but to this day I still don't completely trust timing information in waveform datatypes, ESPECIALLY when using an external clock. I'm pretty sure that years back I found that even using an internal clock, the dt value was derived from the requested sample rate rather than the slightly different sample rate that was actually possible. Maybe that's been fixed now, but I don't see how DAQmx can be expected to guess very well about external sampling clocks. I know there are issues about t0's representing a system time at the start of the task, even if the external clock doesn't start for several more hours.
All that to say that I reflexively do my reads in array format. When I need to call analysis functions expecting a waveform, I create a t0 / dt on the spot using a method I control. Soooooooo....
Could your timing comparison be influenced by the 'dt' value in waveform data? There really is nothing to tie that 'dt' value to any true timing properties of your external clock. I personally wouldn't trust it at all. Admittedly, I've got no idea where a round figure like 24000 might come from when it's not an integer divisor of the internal clock. Still, I'd have to echo Shane's question -- exactly how have you verified the actual sampling rate to be 24000 Hz when driven by an external clock that is "known" / verified to be 23976 Hz. I've never heard of actual DAQ hardware messing with external clock timing that way, so I first look elsewhere for the anomaly.
-Kevin P.
03-20-2007 10:23 AM - edited 03-20-2007 10:23 AM
Message Edited by shoneill on 03-20-2007 05:26 PM
03-20-2007 10:49 AM
03-20-2007 02:57 PM
03-20-2007 09:26 PM - edited 03-20-2007 09:26 PM
Message Edited by Kevin Price on 03-20-2007 10:27 PM