Example Code

Insert Comments into File during Data Acquisition

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 program allows you to insert comments into the data file as you're collecting data.

  

Description

This application is especially useful when you enable "End text entry with Enter key" option under Tools»Options»Environment (otherwise you'd have to use the Enter key or click outside the text box for the text entry to register). Also, you probably want to use the "One header only" option of the Write to File Express VI.

Requirements

Software

  • LabVIEW 2012 or compatible
  • NI-DAQmx 9.5.5 or compatible

Hardware

  • NI Multifunction DAQ Device

Steps to Implement or Execute Code

  1. Double-click on the DAQ Assistant to configure and select your data acquisition device
  2. Double-click the Write To Measurement File to select the file path
  3. Run the VI

Additional Information or References Comments DAQ.png

 

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

Misha

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

Comments
Todd S.
NI Employee (retired)
on

Great stuff.  Thanks for posting!

Todd S.
LabVIEW Community Manager
National Instruments