From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Analog Input Pulse Counter

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

Download All

Overview
The VI reads and count the analog edge.

Description
This VI reads a waveform on an analog input and counts edges, as if it was a counter input.

Steps to Complete

  1. Connect your signal to an analog input line.
  2. Open the VI and select the appropriate analog input line and timing parameters.
  3. Run the VI

Requirements

  1. NI LabVIEW 2012 or compatible
  2. NI DAQmx 14 or compatible

 

 

 

2017-04-18_9-59-11.jpg

 

 

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

 

Gary P.
Applications Engineer
National Instruments

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

Comments
rajcerc
Member
Member
on

Anyone knows how to add a write to file part to save each trigger with actual timestamp  for multichannel analog inputs. This can be very handy.