11-08-2007 07:40 PM
11-09-2007
07:58 PM
- last edited on
04-16-2025
04:43 PM
by
Content Cleaner
Hi J Bowen,
I consistently get the 200040 warning when I set the sample rate above 100 kS/s (using the device test panel in MAX). If you have two separate VIs for the two configurations (1x 9205 vs. 2x 9205), you might want to check whether you are using General Error Handler.vi. If "OK message + warnings" or "continue/stop + warnings" is not wired to the "type of dialog" input, General Error Handler.vi will not report warnings. If you are running the same VI for both configurations, posting a code snippet that demonstrates the problem would help show what's going on.
DAQmx always generates a warning above 100 kS/s for the NI 9263, although there are settling times besides 10 μs listed in the NI 9263 Specifications. Whether the NI 9263 outputs actually settle or not depends not just on the sample clock rate but also on how rapidly your waveform changes. At the high sample clock rate that you are using, a large voltage step (as opposed to the small steps in your sine waveform) would not settle completely by the next sample clock.
Errors in DAQmx have negative codes and warnings have positive codes, so 200040 is a warning. After a warning, DAQmx continues to run the task. An error would stop the task. For example, if you add more AO channels to the task or you set the sample rate too high, you will get a -200018 error, "DAC conversion attempted before data to be converted was available." This would indicate that a sample clock was generated while the previous sample was still being sent to the DACs.
A note about the AI.Convert property: if you use a version of DAQmx Read that returns a waveform (as opposed to an array), DAQmx uses the AI convert clock rate to adjust the waveform timestamps. This allows the LabVIEW graph indicator to display the waveforms more accurately in relation to each other, which in this case would make them line up instead of displaying phase shift. (Changing the plot style of the graph to highlight individual points would show more clearly what's going on.)
Brad