I am trying to output two channels of analog output while reading two or more channels of analog input. I have adapted code from the NI-DAQ C examples, using the appropriate WFM and SCAN routines.
The analog output is being triggered by the analog input start trigger and is sync'ed to the analog input clock.
My problem is that my application works so long as the update rate (scan rate) is below 10,000 S/sec. However, I need to output and acquire the signals at a minimum rate of 40,000 S/sec. This should be well within the capability of the board (besides, I can do this within LabView without trouble!). However, I get errors stating that the sample rate is too high. Also, I need to set the sample clock such th
at the analog input channels are sampled as close to simultaneously as possible.
Again, I have been able to do all these things in LabView. However, my current application requires the use of C.
Thank you for any suggestions.