Example Code

Using an External Timebase to Measure Period of an Incoming Signal Using LabVIEW and DAQ

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 VI was created in order to allow a user to use an external timebase in order to measure the period of an external signal.


Description
Use property node to set the timebase source, timebase rate and signal to measure.

Select the counter count incoming signal; select the location of the timebase and set the timebase Rate, as well as other settings”

 
Requirements

  • LabVIEW 2012 (or compatible)
  • NI-DAQmx 12.0 (or compatible)


Steps to Implement or Execute Code

  • Select which counter you want to use as the "Counter" of your incoming signal.
  • Select the location of the "Timebase", and the "Signal" to measure from you DAQmx card
  • Set the Timebase Rate, as well as the settings for "Minimum Value", "Maximum Value", and "Edge"
  • Run the program

 

Additional Information or References
VI Snippet

2-263.png

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

Frank,
National Instruments
Software Group Manager

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