WOLFRAM SYSTEM MODELER

Sampler

Library of sampler and hold blocks for Boolean signals

Package Contents

Sample

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

SampleClocked

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

SampleVectorizedAndClocked

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

Hold

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

SubSample

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

SuperSample

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

ShiftSample

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

BackSample

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

AssignClock

Assigns a clock to a clocked Boolean signal

AssignClockVectorized

Assigns a clock to a clocked Boolean signal vector

Utilities

Utility components that are usually not directly used

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.

Wolfram Language

In[1]:=
SystemModel["Modelica_Synchronous.BooleanSignals.Sampler"]
Out[1]:=