Example Code

Quantizing Digital Filters Using the Digital Filter Design Toolkit in LabVIEW

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.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Overview

This example creates a Butterworth filter and quantizes the resulting coefficients three different ways: using a fourth order quantization structure, using cascaded second-order quantization structure, or using math VIs.

 

Description

Select your filter type and the type of quantization structure that you would like to use. Also, specify the number of bits that you would like to quantize your filter coefficients too. Double data types are floating point, 64-bit numbers. Many DSPs use 16-bit fixed-point numbers, so that is the default value of this VI. If the number of bits is set to 0, the VI will throw an error

 

Requirements
1. LabVIEW 2012 or compatible
2. Compatible Digital Filter Design Toolkit

 

Steps to Implement or Execute Code
1. Select the desired Quantization Method.
2. Select the desired filter type.
3. Run the VI.
4. Change the different configuration and run again.

 

Additional Information or References

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

Nick Keel
Product Manager - NI VeriStand and Model Interface Toolkit
National Instruments

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