11-05-2007 02:30 PM
11-05-2007 02:46 PM
Drew,
It would seem that you're getting the first channel measurement before the mux does anything, and the second in the middle of it changing.
DAQmx offers a property called DelayFromSampClk.Delay, as well as DelayFromSampClk.DelayUnits. They are both located in the timing property node under more->AI Convert. By varying the convert clock delay to the end of your sample clock interval you'll make sure you're getting both channels after the MUX has changed.
Hope that helps.
Daniel D.
11-05-2007 02:49 PM
11-06-2007 10:58 AM
The convert clock is not restricted to be a 2x multiple of the sample rate (in the case of 2 channels to sample). Poke around further in the DAQmx Timing property node and you should find a way to set the rate. In combination with the previous suggestion about delay, you should be able to shift the 2 ADC conversions down toward the late end of the sample cycle.
-Kevin P.
11-06-2007 12:22 PM - edited 11-06-2007 12:22 PM
11-06-2007 01:41 PM
11-07-2007 03:00 PM