Example Code

Software-Defined Digital Filtering for 2nd Generation cDAQ

Code and Documents

Attachment

Overview

 This example shows how to proceed software filter to signal and then calculate frequency.

 

Description

Unlike the cDAQ 9172, the 2nd Generation Compact DAQ Chassis does not support digital filtering before NI DAQmx 9.4. NI recommends upgrading to the latest version of NI-DAQmx, however if you are unable to upgrade, the inability to provide digital filtering can cause issues with performing frequency measurements on noisy input signals. Then you can use this example to process software filter.

 

Requirements

 Software

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

 Hardware

  • NI cDAQ-9178

Steps to Implement or Execute Code

    1.Configure the following settings in the block diagram:

      (1)Select the counter.

      (2)Set the pulse width.

   2.Run the VI

   3.Check the frequency result.

搜狗截图16年12月25日1728_1.png

 

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

John Passiak

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