Example Code

Timed Acquisition using DAQmx

Code and Documents

Attachment

Overview

 

This is an example of how to acquire data for a fixed period of time using DAQmx.

 

Description

 

This example is based on the Voltage - Continuous Input.vi with the difference that instead of choosing the number of samples, the user selects for how long the VI will run.

 

Front Panel ViewFront Panel View

  

Hardware and Software Requirements

 

Any DAQ device that uses analog inputs.

LabVIEW Full Development System 2018

 

Steps to Implement or Execute Code

 

1. Select Physical Channel.
2. Select Sample Rate and Acquisition Time.
3. Run the VI.

 

 

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

Contributors