Hi eesen,
While the example program in that KnowledgeBase article does allow you to acquire twice the number of samples for ai1 than ai0 in the same task in the same amount of time, you can't necessarily interleave both arrays of data returned for ai1 and have one array of samples that were acquired at a specific sampling frequency. To explain this:
Running a test of this VI yielded 2 arrays for ai1, one with a t0 of 10:07:45.9135839 and one with a 10:07:45.9135949. However, the dt value for both sets is 0.001s. If these 2 sets of data could be interleaved, you would want the 2nd array to have a t0 of 10:07:45.91
40839 (a difference of 0.0005s), but this is not the case because the difference in t0 of each data set is based upon the time for the multiplexer to scan through the channels in the task.
What results when you interleave the data is that samples are not separated by 0.0005s, but instead they are separated by alternating X and 0.001-X where X is the time between channel scans of the multiplexer (in the case of my test, X = 0.000011). If you plot the interleaved data you would notice that the waveform is very jittery because dt values are not consistent.
Regards,
Andrew W
National Instruments