ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
To download NI software, including the products shown below, visit ni.com/downloads.
1. Overview
This example shows how to acquire waveforms in one loop, while reading those same waveforms and resampling them for display in a different loop.
2. Description
Using a producer-consumer architecture. The example shows a producer loop that generates (or acquires) waveforms and sends them to the consumer loop by using a Queue. In the consumer loop, the program resamples the waveforms according to the selected decimate rate to later show them in a chart.
3. Requirements
4. Steps to Implement or Execute Code
5. Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines.**
Description-Separate-2Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.