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
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 | String | 'double' | |
externalActivation | External activation | 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 |