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
Requirements
Software
LabVIEW 2013 or later, DAQmx
Hardware
Additional Images or Video

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Sorry about my OOO msg... deleting it