blockSampler

Ideal periodic sampler of input

Extends from Interfaces.PartialConverters.SmoothSISO (Smooth-like converter), Icons.DiscreteSmoothLabel (Mark converters as discrete).

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The (discrete) output y is obtained by sampling every samplingPeriod starting at modelSettings.modelStartTime + offsetStartTime from the input u.

Notes

  • The parameter init in the Advanced tab allows to select →InitializationOptions:
    • FixedValue (default) will use the parameter initialValue to determine the initial output y to be given before the sampling starts.

    • SteadyState will set the initial output y equal to the initial input u.

    • Free there will be no initial equation and thus the solver is free to find an initial output using initialValue as an initial guess.

See also

SampleIfTrue

Parameters

TypeNameDefaultDescription
TimesamplingPeriodInterval at which to sample the input
TimeoffsetStartTimesamplingPeriodSampling will begin at startTime = modelStartTime + offsetStartTime
OutputTypeinitialValue0Initial Value to be reported before startTime
Advanced
InitializationOptionsinitmodelSettings.initProvide InitializationOptions (Free, FixedValue, SteadyState)

Connectors

TypeNameDefaultDescription
Connectors.RealInputu (from SmoothSISO)Input

Components

TypeNameDefaultDescription
RealOutputy (from SmoothSISO)
ModelSettingsmodelSettings