To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example dynamically updates the sample rate of the analog input and output tasks through the use of an external clock source.
Description
The external clock source, in this case, is an onboard counter. A possible modification of the code would be to fix the Samples to Read input of the DAQmx Read to 1/10th of the sample rate in order to simplify the UI and reduce the chance of buffer overflow and timeout errors. For quick testing specify, Using AI0 as your input physical channel, AO0 as your output physical channel and Ctr0 as your Clock.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Regards,
Dan King
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.