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
- last edited on
03-09-2026
01:21 PM
by
Content Cleaner
Hello SuperSnake428,
Theoretically, yes thats what we are saying. At least that is how it is calculated and seen by the card. In reality, things are a bit more confusing. I used the AI Convert clock rate property on my M series card and discovered that for 2 channels reading at 50k, my convert clock was running at 100kHz (10us between channels). This means that the convert clock looks like your "Actual Convert Clock" signal. This is not because the sample clock is being divided by two, but because that is the rate the hardware uses by default. You can increase this rate (by writing to that property) upto 1MHz (1us between channels). I found this out by using the AI Convert Maximum Rate property. You have to be careful when increasing this rate since you can start running into issues such as ghosting between channels and such.
Minimum and Maximum Values for the Interchannel Delay Setting
You can then use the delay from sample clock property to delay the convert clock off of the sample clock edge if you wish. I hope this clarifies.