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.

    SampleHold

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

SampleHold_0

NameLabelDescriptionData TypeValid Values

typ

Input/Output datatype

String

'double'
'complex'
'int32'
'int16'
'int8'
'uint32'
'uint16'
'uint8'
'boolean'
'inherit'

externalActivation

External activation

Number

0
1

alwaysActive

Always active

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

Port 2

explicit

output

1

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no