FixPt Zero-Order Hold

Implement a zero-order hold of one sample period.

Description

The FixPt Zero-Order Hold block is a masked S-function that samples and holds its input for the specified sample period. The block accepts one input and generates one output, both of which can be scalar or vector. If the input is a vector, all elements of the vector are held for the same sample period. You specify the time between samples with the Sample time parameter.

Remarks

This block provides a mechanism for discretizing one or more signals in time, or resampling the signal at a different rate. If your model contains multirate transitions, you must add FixPt Zero-Order Hold blocks between the fast to slow transitions. The sample rate of the FixPt Zero-Order Hold must be set to that of the slower block.

For slow to fast transitions, use the FixPt Unit Delay block. For more information about multirate transitions, refer to Using Simulink or the Real-Time Workshop User's Guide.

Parameters and Dialog Box

  • Sample time - The time between samples.

Characteristics

Input Port

Any data type supported by the blockset

Output Port 

Same as the input

Direct Feedthrough

Yes

Sample Time

Discrete

Scalar Expansion

No

States

0

Vectorized

Yes