blockHold

Samples a signal and holds the value for a period T.

Extends from ModelicaDEVS.Templates.DDBlock (Discrete single input - discrete single output block).

Information

The Hold Block

Parameters:
period sample period
start start time


Description:

The Hold block (called "SampleHold" in PowerDEVS) samples an input signal at periodical time instants which are defined by the parameters period and start: tsample=start+period*i, where i=non-negative numbers. It holds the sampled value until the next sampling instant.

The picture below shows a sine signal (blue) that is sampled (red) at a frequency of T=0.25.

Parameters

TypeNameDefaultDescription
Integermethod (from DDBlock)world.qssUse QSS1, QSS2 or QSS3
Realperiod1Sample period
Realstart0Start time

Connectors

TypeNameDefaultDescription
ModelicaDEVS.Templates.DiscreteInPortinPort (from DDBlock)
ModelicaDEVS.Templates.DiscreteOutPortoutPort (from DDBlock)

Components

TypeNameDefaultDescription
ModelicaDEVS.Miscellaneous.worldModelworld (from DDBlock)
Real[3]yVal (from DDBlock)
BooleanyEvent (from DDBlock)