SampleHold
When activated, this block copies its input to its output. If activated at a regular rate, the block realizes a periodic sample and hold operation.
Library
Activate/Hybrid
Description
The SampleHold block is used to convert a continuous input signal to a discrete signal at fixed rate.
Each time an input event is received block copy its input on the output and maintain it until input event. For periodic Sample and hold, event input must be generated by a Clock.
If activated at a regular rate, it realizes a periodic sample and hold operation.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
typ | Input/Output datatype | Specifies the datatype of the input and output. | String | 'double' |
externalActivation | External activation | Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is selected. | Number | 0 |
alwaysActive | Always active | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | 1 | |
Port 2 | explicit | output | 1 | |
Port 3 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |