04-02-2008 01:22 PM
04-02-2008 02:55 PM
04-03-2008 05:47 PM
Hello Alok,
I am glad you were able to find a resolution to your issue. There are numerous shipping examples included with DAQmx. Check out the example MultiFunctionSyncAIAO_DigStart as well for synchronized AI and AO. Hope this helps.
04-03-2008 06:02 PM
Dear Browning,
Thanks again for your reply. While trying to figure out the problem with the delayed read, I found that 446x has some filter delays in reading and writing. Now here is something interesting that i figured out and would like to know if there is a solution to this.
Assuming 204.8 kS/s the read delay is 63 samples and write delay is 32 samples. Now since i have connected AO of the 4461 to AI I expect the delay to be 63+32 that is of 95 samples.
Now interestingly there is additional 2/3 sample delay that is coming for all possible combinations. In the above case the actual data is starting after 98 samples. I exprimented with following settings.
Read 204.8 kS/s and write at 51.2 kS/s. as per the specs, read delay should be 63 samples and write delay should be 42.3 samples
since read rate is 4 times write, I assume the final delay should be 63 + 4 * 43.2 = 235.8 samples. In this case the actual delay registered is 238 samples again 2 additional samples.
Similarly i tried other combinations and there is a delay of additional 2/3 samples.
The problem with the application is that i need to know exactly whether it would be 2 samples additional or 3 samples additional so that i can compensate for the same while interpreting the data. Is there something specific regarding the cards behaviour that i am missing on?
Regards,
Alok
04-04-2008 03:53 PM
Hello Alok,
You are correct, there is a delay introduced by the filter on the input and output channels for the 4461. While there is a specified delay in the spec sheet for the 4461 there can be other sources of delay. These delays are deterministic and can be compensated for.
If you are performing a test that requires the propagation delay between AO and AI, you can calibrate these values out. At a specific combination of AI and AO sample rates the propagation delay will remain constant. As you change the sample rates, the overall propagation delay will change, but will remain constant for that sample rate. As a result it is possible to measure this delay and calibrate it out. The Sound and Vibration Toolkit includes VIs for doing this, but it looks like you created a method for measuring this delay yourself. Please note that the number of samples will not always be an exact integer.
04-05-2008 04:00 AM
Dear Browning,
So now I will experiment out with all the possible combinations that my application would require and will fix the delays.
As per the documentation I also found that the delays could be in terms of non-integral samples. However but since we would be reading the samples which are finally related to sample clock, I think i can only compensate the samples in integral form. Is there a way to compensate for the sample in non-integral way?
Regards,
Alok Damle.
04-09-2008 09:59 AM
04-09-2008 11:26 AM - edited 04-09-2008 11:29 AM
04-09-2008 12:45 PM
04-09-2008 02:08 PM