Owning Palette: Signal Operation VIs
Requires: Full Development System
Resizes the input sequence Input Array to the next higher valid power of 2, sets the new trailing elements of the sequence to zero, and leaves the first n elements unchanged, where n is the number of samples in the input sequence. Wire data to the Input Array input to determine the polymorphic instance to use or manually select the instance.
Use the pull-down menu to select an instance of this VI.
Add to the block diagram | Find on the palette |
Input Array is the input sequence. If Input Array is empty, Zero Padded Array is also empty. | |
only non-power of 2? specifies when to zero pad the Input Array. When only non-power of 2? is TRUE, this VI zero pads Input Array only if the array size is not a valid power of 2. For example, if Input Array contains 500 elements, the size of the zero padded output sequence is 512. When only non-power of 2? is FALSE, this VI resizes Input Array to the next valid power of 2 even if the array size already is a valid power of 2. For example, if Input Array contains 1,024 elements, the size of the zero padded output sequence is 2,048. The default is FALSE. | |
Zero Padded Array is the Input Array padded up to the next power of 2 elements. Zero Padded Array is useful when the size of the acquired data buffers is not a power of 2, and you want to take advantage of fast processing algorithms in the analysis VIs. These algorithms include Fourier transforms, Power Spectrum, and fast Hartley transforms, which are extremely efficient for buffer sizes that are a power of 2. |
Input Array is the input sequence. If Input Array is empty, Zero Padded Array is also empty. | |
only non-power of 2? specifies when to zero pad the Input Array. When only non-power of 2? is TRUE, this VI zero pads Input Array only if the array size is not a valid power of 2. For example, if Input Array contains 500 elements, the size of the zero padded output sequence is 512. When only non-power of 2? is FALSE, this VI resizes Input Array to the next valid power of 2 even if the array size already is a valid power of 2. For example, if Input Array contains 1,024 elements, the size of the zero padded output sequence is 2,048. The default is FALSE. | |
Zero Padded Array is the Input Array padded up to the next power of 2 elements. Zero Padded Array is useful when the size of the acquired data buffers is not a power of 2, and you want to take advantage of fast processing algorithms in the analysis VIs. These algorithms include Fourier transforms, Power Spectrum, and fast Hartley transforms, which are extremely efficient for buffer sizes that are a power of 2. |