Example Code

Change Acquisition Parameters During Execution Time Using LabVIEW with DAQmx

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

Overview

This VI allows the user to acquire a signal for a period and to change the acquisition parameters during execution time.


Description
The general adoption rate is set before the start of the task in the DAQ sampling process. However, for some applications, the sampling rate need to adjust during the execution of the VI. The example uses a simple state machine to control the state of the sample process to achieve a simple DAQ sampling rate change in the operation of the data acquisition.


Requirements

  • LabVIEW 2012 (or compatible)
  • NI DAQmx


Steps to Implement or Execute Code

  1. Unzip the attached folder to your computer
  2. Open the VI "Parameters Change in Running 2012 NIverified"
  3. Run the program

 

Additional Information or References
VI Snippet

3-187.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Francisco Arellano

National Instruments Mexico
Field Systems Engineer - Energy Segment
www.ni.com/soporte

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.