Example Code

Read Counter Filtered Frequency with NI 9326 and NI-DAQmx

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.


  • Data Acquisition (DAQ)


  • LabVIEW


  • NI-DAQmx

    Operating System

  • Windows

    Programming Language

  • LabVIEW G


  • NI 9326

Code and Documents



This example shows how to acquire filtered frequency measurements with the NI 9326. Specifically, the example shows you how to set up the configurable filtering that is unique to the 9326 hardware. By being able to filter your measurements you gain the control to remove unwanted frequencies and noise from your frequency measurements. This example will allow users who want to acquire from variable reluctance sensors, encoders, or hall-effect sensors in noisy environments to shape their measurements and get more useful insights from their data.

How to Use

First select the 9326 module and counter you wish to use for your frequency measurements. Next configure the front panel for your measurement by setting sampling rate and filtering parameters. If you need more information about the 9326 configurable filters, please reference the NI 9326 Datasheet located in the related links section.

Additional Information

The NI 9326 was designed with a few specific sensors in mind. The sensor types include variable reluctance sensors, encoders, and hall-effect sensors. It was also designed as a replacement for the SCXI-1126 hardware. If you have used the 1126 in the past the 9326 may be a suitable replacement for that hardware with improved performance and up to date software support.

Related Links

NI 9326 Datasheet

NI 9326 Getting Started Guide

NI DAQmx Download

Obsolescence Planning

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