To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This is a simple DAQ program which will run an analog input multiple different times at varying specified rates, then output the data to a series of files with the rate as a portion of the name for easy identification later.
Description
This would be useful in a testing situation to figure out how quickly to sample to get a good description of the signal, or get varying descriptions of a signal of unknown frequency. It also can be handy for integrating into programs which need similar functionality to the file series write.The Auto indexed for loop is passed a series of rates, which will be indexed through on each iteration of the loop.The DAQ is setup using the current rate, the specified length of test, and the specified channels.Using the current rate, we build a file name of Test [rate].lvm. Upon completion of the DAQ and path building, the file is written to the name.Repeat until the array has been indexed through.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.