Example Code

TDMS Logging with Digital Start Trigger and Digital Pause Trigger

Code and Documents

Attachment

Overview

This VI uses a digital start trigger in order to start analog voltage acquisition and logs the data via TDMS. It also uses a digital signal to pause data acquisition.

Description

This example takes in analog voltage data, and logs the data to a TDMS file at a specified location. It allows the user to specify the maximum and minimum voltage, the terminal configuration, voltage input channel, sampling rate, samples per channel, start trigger source, and pause trigger source. Currently, acquisition will pause while the pause trigger source is high, and will acquire while it is low. One may reverse this by changing "High" to "Low" in the block diagram. Additionally, the timeout on the DAQmx Read VI is currently set to wait indefinitely. One may change this by adjusting the timeout value in the block diagram. Attached are versions for LabVIEW 2015, LabVIEW 2014, and LabVIEW 2013.

Steps to Implement or Execute Code

  1. Configure hardware for analog voltage input.
  2. Configure front panel to settings that correspond to hardware input and desired file path location.
  3. Run VI.

Requirements

Software

LabVIEW 2013 or later, DAQmx

Hardware

Additional Images or Video

TDMS Logging with Digital Start Trigger and Digital Pause Trigger.png


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

Comments
Not applicable
on

Sorry about my OOO msg... deleting it

Contributors