blockSamplerTime
Samples a signal at periodical time instants.
Extends from ModelicaDEVS.Templates.CDBlock (Continuous single input - discrete single output block).
Information
The SamplerTime BlockParameters:
| period | length of the sampling intervals |
| start | start time of the sampling period |
Description:
Analogous to the SamplerLevel block, the SamplerTime block transforms a continuous signal into a DEVS signal. This time, though, the sampling takes place at discrete time instants.
Generated Events (QSS1/QSS2/QSS3 mode):
Samplings are taken at time instants t=start+i*period, i=non-negative integers. The values of the output vector cannot be predicted, since they depend on the input signal.
![]() | ||
![]() |
Parameter setting: |
period=0.05 start=0 |
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | method (from CDBlock) | world.qss | Use QSS1, QSS2 or QSS3 |
| Real | period | 0.1 | Period |
| Real | start | 0 | Start Time |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | inPort (from CDBlock) | ||
| ModelicaDEVS.Templates.DiscreteOutPort | outPort (from CDBlock) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ModelicaDEVS.Miscellaneous.worldModel | world (from CDBlock) | ||
| Real[3] | yVal (from CDBlock) | ||
| Boolean | yEvent (from CDBlock) |

