Virus scan in progress. Please wait to download attachments.
This example shows how to change the sampling rate while acquiring data.
The sample rate is initialized at 1000 Hz. In order to change the sampling rate while acquiring data, the task must be stopped, the sample clock must be reconfigured and then the task must run again. This VI achieves this through the advent of an event structure which performs this every time that the rate control experiences a value change. After a timeout of 10ms, data is acquired continuously at this new sample rate, until another value change occurs at the rate control.
LabVIEW 2012 or compatible
NI-DAQmx 9.5.5 or compatible
NI Multifunction DAQ Device
Steps to Implement or Execute Code
Configure the parameter for the right channel and device
Connect your hardware appropriately
Run the VI
Chang the sample rate.
Check the result.
Additional Information or References
The following image displays the event that occurs when a value change occurs on the rate control:
The following image displays the event that occurs when no value change occurs on the rate control:
**This document has been updated to meet the current required format for the NI Code Exchange.**