Modelica.Clocked.BooleanSignals.Sampler

Library of sampler and hold blocks for Boolean signals

Information

This package contains blocks that mark boundaries of a clocked partition and transform a Boolean signal from one partition to the next. Especially, the following blocks are provided:
 

Boundary Type Block Name Description
continuous-time → clocked Sample Sample a continuous-time signal.
SampleClocked Sample and associate a clock to the sampled scalar signal.
SampleVectorizedAndClocked Sample an input vector and associate a clock to the sampled vector signal.
clocked → continuous-time Hold Hold a clocked signal with zero-order hold.
clocked → clocked SubSample Sub-sample a signal (output clock is slower as input clock).
SuperSample Super-sample a signal (output clock is faster as input clock).
ShiftSample Shift a signal (output clock is delayed with respect to input clock).
BackSample Shift a signal and start the output clock before the input clock with a start value.
within clocked partition AssignClock Assign a clock to a clocked scalar signal.
AssignClockVectorized Assign a clock to a clocked vector signal.

Additionally, package Utilities contains utility blocks that are used as building blocks for user-relevant blocks.

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

Name Description
Modelica.Clocked.BooleanSignals.Sampler.Sample Sample Sample the continuous-time, Boolean input signal and provide it as clocked output signal (clock is inferred)
Modelica.Clocked.BooleanSignals.Sampler.SampleClocked SampleClocked Sample the continuous-time, Boolean input signal and provide it as clocked output signal. The clock is provided as input signal
Modelica.Clocked.BooleanSignals.Sampler.SampleVectorizedAndClocked SampleVectorizedAndClocked Sample the continuous-time, Boolean input signal vector and provide it as clocked output signal vector. The clock is provided as input signal
Modelica.Clocked.BooleanSignals.Sampler.Hold Hold Hold the clocked, Boolean input signal and provide it as continuous-time output signal (zero order hold)
Modelica.Clocked.BooleanSignals.Sampler.SubSample SubSample Sub-sample the clocked Boolean input signal and provide it as clocked output signal
Modelica.Clocked.BooleanSignals.Sampler.SuperSample SuperSample Super-sample the clocked Boolean input signal and provide it as clocked output signal
Modelica.Clocked.BooleanSignals.Sampler.ShiftSample ShiftSample Shift the clocked Boolean input signal by a fraction of the last interval and and provide it as clocked output signal
Modelica.Clocked.BooleanSignals.Sampler.BackSample BackSample Shift clock of Boolean input signal backwards in time (and access the most recent value of the input at this new clock)
Modelica.Clocked.BooleanSignals.Sampler.AssignClock AssignClock Assign a clock to a clocked Boolean signal
Modelica.Clocked.BooleanSignals.Sampler.AssignClockVectorized AssignClockVectorized Assign a clock to a clocked Boolean signal vector
Modelica.Clocked.BooleanSignals.Sampler.Utilities Utilities Utility components that are usually not directly used

Modelica.Clocked.BooleanSignals.Sampler.Sample Modelica.Clocked.BooleanSignals.Sampler.Sample

Sample the continuous-time, Boolean input signal and provide it as clocked output signal (clock is inferred)

Information

This block for Boolean signals works similarly as the corresponding block for Real signals (see RealSignals.Sampler.Sample).

Analog to the corresponding Real signal block examples there exist two elementary examples, Sample1 and Sample2, for this Boolean block.

Extends from Clocked.BooleanSignals.Interfaces.PartialSISOSampler (Basic block used for sampling of Boolean signals).

Connectors

NameDescription
uConnector of continuous-time, Real input signal
yConnector of clocked, Real output signal

Modelica.Clocked.BooleanSignals.Sampler.SampleClocked Modelica.Clocked.BooleanSignals.Sampler.SampleClocked

Sample the continuous-time, Boolean input signal and provide it as clocked output signal. The clock is provided as input signal

Information

This block for Boolean signals works similarly as the corresponding block for Real signals (see RealSignals.Sampler.SampleClocked).

Analog to the corresponding Real signal block example there exists an elementary example for this Boolean block.

Extends from Clocked.BooleanSignals.Interfaces.SamplerIcon (Basic graphical layout of block used for sampling of Boolean signals).

Connectors

NameDescription
clockOutput signal y is associated with this clock input
uConnector of continuous-time, Boolean input signal
yConnector of clocked, Boolean output signal

Modelica.Clocked.BooleanSignals.Sampler.SampleVectorizedAndClocked Modelica.Clocked.BooleanSignals.Sampler.SampleVectorizedAndClocked

Sample the continuous-time, Boolean input signal vector and provide it as clocked output signal vector. The clock is provided as input signal

Information

This block for Boolean signals works similarly as the corresponding block for Real signals (see RealSignals.Sampler.SampleVectorizedAndClocked).

Analog to the corresponding Real signal block example there exists an elementary example for this Boolean block.

Extends from Clocked.BooleanSignals.Interfaces.SamplerIcon (Basic graphical layout of block used for sampling of Boolean signals).

Parameters

NameDescription
nSize of input signal vector u (= size of output signal vector y)

Connectors

NameDescription
u[n]Connector of continuous-time, Boolean input signal vector
y[n]Connector of clocked, Boolean output signal vector
clockOutput signal vector y is associated with this clock input

Modelica.Clocked.BooleanSignals.Sampler.Hold Modelica.Clocked.BooleanSignals.Sampler.Hold

Hold the clocked, Boolean input signal and provide it as continuous-time output signal (zero order hold)

Information

This block for Boolean signals works similarly as the corresponding block for Real signals (see RealSignals.Sampler.Hold).

Analog to the corresponding Real signal block example there exists an elementary example for this Boolean block.

Parameters

NameDescription
y_startValue of output y before the first tick of the clock associated to input u

Connectors

NameDescription
uConnector of clocked, Boolean input signal
yConnector of continuous-time, Boolean output signal

Modelica.Clocked.BooleanSignals.Sampler.SubSample Modelica.Clocked.BooleanSignals.Sampler.SubSample

Sub-sample the clocked Boolean input signal and provide it as clocked output signal

Information

This block for Boolean signals works similarly as the corresponding block for Real signals (see RealSignals.Sampler.SubSample).

Analog to the corresponding Real signal block example there exists an elementary example for this Boolean block.

Parameters

NameDescription
inferFactor= true, if sub-sampling factor is inferred
factorSub-sampling factor >= 1 (ignored if inferFactor=true)

Connectors

NameDescription
uConnector of clocked, Boolean input signal
yConnector of clocked, Boolean output signal (clock of y is slower as clock of u)

Modelica.Clocked.BooleanSignals.Sampler.SuperSample Modelica.Clocked.BooleanSignals.Sampler.SuperSample

Super-sample the clocked Boolean input signal and provide it as clocked output signal

Information

This block for Boolean signals works similarly as the corresponding block for Real signals (see RealSignals.Sampler.SuperSample).

Analog to the corresponding Real signal block example there exists an elementary example for this Boolean block.

Parameters

NameDescription
inferFactor= true, if super-sampling factor is inferred
factorSuper-sampling factor >= 1 (ignored if inferFactor=true)

Connectors

NameDescription
uConnector of clocked, Boolean input signal
yConnector of clocked, Boolean output signal (clock of y is faster as clock of u)

Modelica.Clocked.BooleanSignals.Sampler.ShiftSample Modelica.Clocked.BooleanSignals.Sampler.ShiftSample

Shift the clocked Boolean input signal by a fraction of the last interval and and provide it as clocked output signal

Information

This block for Boolean signals works similarly as the corresponding block for Real signals (see RealSignals.Sampler.ShiftSample).

Analog to the corresponding Real signal block example there exists an elementary example for this Boolean block.

Parameters

NameDescription
Shift first clock activation for 'shiftCounter/resolution*interval(u)' seconds
shiftCounterNumerator of shifting formula
resolutionDenominator of shifting formula

Connectors

NameDescription
uConnector of clocked, Boolean input signal
yConnector of clocked, Boolean output signal (clock of y is faster than clock of u)

Modelica.Clocked.BooleanSignals.Sampler.BackSample Modelica.Clocked.BooleanSignals.Sampler.BackSample

Shift clock of Boolean input signal backwards in time (and access the most recent value of the input at this new clock)

Information

This block for Boolean signals works similarly as the corresponding block for Real signals (see RealSignals.Sampler.BackSample).

Analog to the corresponding Real signal block example there exists an elementary example for this Boolean block.

Parameters

NameDescription
y_startValue of output y before the first clock tick of the input u
Shift first clock activation backwards in time for 'shiftCounter/resolution*interval(u)' seconds
backCounterNumerator of shifting formula
resolutionDenominator of shifting formula

Connectors

NameDescription
uConnector of clocked, Boolean input signal
yConnector of clocked, Boolean output signal (clock of y is faster than clock of u)

Modelica.Clocked.BooleanSignals.Sampler.AssignClock Modelica.Clocked.BooleanSignals.Sampler.AssignClock

Assign a clock to a clocked Boolean signal

Information

This block for Boolean signals works similarly as the corresponding block for Real signals (see RealSignals.Sampler.AssignClock).

Analog to the corresponding Real signal block example there exists an elementary example for this Boolean block.

Connectors

NameDescription
uConnector of clocked, Boolean input signal
yConnector of clocked, Boolean output signal
clock 

Modelica.Clocked.BooleanSignals.Sampler.AssignClockVectorized Modelica.Clocked.BooleanSignals.Sampler.AssignClockVectorized

Assign a clock to a clocked Boolean signal vector

Information

This block for Boolean signals works similarly as the corresponding block for Real signals (see RealSignals.Sampler.AssignClockVectorized).

Analog to the corresponding Real signal block example there exists an elementary example for this Boolean block.

Parameters

NameDescription
nSize of input signal vector u (= size of output signal vector y)

Connectors

NameDescription
u[n]Connector of clocked, Boolean input signal
y[n]Connector of clocked, Boolean output signal
clock 
Automatically generated Thu Oct 1 16:07:37 2020.