Example Code

Write to File Every N Samples of Continuous 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 example uses DAQ Assistant to acquire data continuously, and writes the value to a Measurement File at a specified interval.

 

Description

The original application was to allow for the data to be monitored continuously for many hours, without creating a datalog of thousands and thousands of points. This way, you can specify every nth points to be logged.

 

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. Configure the parameter for the right channel and device.
  2. Connect your hardware appropriately.
  3. Run the VI.

 

Additional Information or References

 

Write N Samples to file.png

 

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

 

 

Product Support Engineer
National Instruments

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