This block takes a variable size vector as an
input and produces a fixed size vector as output. The block copies samples from the
input to the output.
Library
AI Engine/Tools
Description
The To Fixed Size block takes a variable size vector as an input and produces a fixed size vector as output. The block copies samples from the input to the output.
Parameters
- Copy Method
- Specifies the method to copy the samples from input to the
output:
- Pad with zeros or discard excess samples
- When Copy Method is set to this option, zeros will be padded in case of insufficient samples and excess samples will be discarded.
- Buffer samples to form output
- When Copy Method is set this option, the input will be buffered until the number of samples reaches the Output Size. The buffered samples will then be transferred to the out port, and the valid signal is set to true. When there are not enough samples buffered, the output port will be a vector of zeros, and the valid port is set to false.
- Show delta between input and output sizes
- This is an optional port, available only when the "Pad with zeros or discard excess samples" Copy Method is selected. It shows the difference between the number of samples in the input variable size signal and the output size.
- Output Size
- This specifies the size of the output port.
- Inherit : Same as Input
- If this option is enabled, the block will only accept the input data when the valid port is true.
- Specify Output Size
- When this option is selected, you can specify the value of the required output size.