This example acquires AI data and performs inline datalogging to a text file of the user's choosing using NI-DAQmx with support for LabVIEW NXG for Data Acquisition Hardware..
This example acquires AI data and writes it to a waveform chart. It also performs inline datalogging to a text file of the user's choosing. The acquisition rate is implemented as a timer outside of the DAQmx API.
Hardware and Software Requirements
DAQ card with at least one Analog Input (AI) channel
NI-DAQmx 17.0 or compatible
LabVIEW NXG 1.0 or compatible
Steps to Implement or Execute Code
1. Select the Analog Input channels you want to acquire data on.
2. Select the time before points.
3. Run the code.
4. Click the 'Stop' button to end the acquisition.