Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Quantizer (FPGA Module)

LabVIEW FPGA Module 8.2 Help
August 2006

NI Part Number:
371599B-01

»View Product Info

Quantizes an integer input signal using fixed-point rounding.

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs

Dialog Box Options

ParameterDescription
QuantizationContains the following option:
  • Interval (bits)—Specifies the desired integer quantization interval, such that 2^(Interval (bits)) is the width of each quantization bin.
Rounding ModeContains the following options:
  • Round to nearest—The default rounding mode. LabVIEW sets the lowest bits, specified by Interval (bits), to zero and rounds the result to the value nearest the original input. If input is at the exact midpoint of a quantization bin, LabVIEW rounds the result to an even number. Use this option to return the most accurate result. Rounding up in the upper-most quantization bin results in overflow. This function uses the wrap overflow mode, which produces a negative output if the upper-most quantization bin overflows.
  • Truncate—Equivalent to rounding to negative infinity. LabVIEW sets the lowest bits, specified by Interval (bits), to zero and leaves the rest of Input unaffected. Use this option to optimize the size of the VI.
Result PreviewPreviews the behavior of the function for the selected Interval (bits). The options in this section do not affect the behavior of the quantizer but allow you to see how the quantizer affects any integer input.
  • Input—Specifies the value the VI quantizes.
  • Quantized output—Displays how the quantizer affects Input.

Block Diagram Inputs

ParameterDescription
inputThe value you want to quantize. input is a 32-bit signed integer.

Block Diagram Outputs

ParameterDescription
outputThe quantized input.

output = [input / 2n] * 2n

where n is equal to the configured interval (bits) and the [] operator indicates a fixed-point quantization operation that discards the lowest n bits using the specified Rounding Mode.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit