Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

ai ao waveform

I am having trouble with synced AO waveform generation_AI acquire on my USB-4431.  In order to verify the code, I have tied my AO to one of my AI channels, while outputting a continuous BasicFunctionGenerator waveform.  The specific problem I have is that the AI Read waveform does not match the generated one input into AO Write.  The AO waveform frequency is controllable, however, the AI frequency is always = 0.1 * AO SampleClock Rate.  The samples written per channel of AO Write is always 1000.  I have wired 0 to the Timeout of the AO Write, verify that all the submitted samples are written.

 

I have been sniffing out one dead end after another and come here after several attempts.

 

Any insight or clarification would be monumentally appreciated.

 

Thanks,

 

kmsk

 

 

0 Kudos
Message 1 of 2
(2,613 Views)

Hi kmsk,

 

I believe the discrepancy is actually coming between the difference between sampling information between the waveform generator and the AO sample clock. The waveform generator has a different delta t. If you wire in a constant for sampling information of the waveform generator, you can set the number samples of the generator to be the same as the AO sample clock's samples to read. In this manner, it will write the same waveform that is being generated.

 

Kind Regards,

0 Kudos
Message 2 of 2
(2,537 Views)