'sample()clocked'sample() Clocked |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
Samples a value according to a clock as part of the synchronous language elements.
sample(u)
sample(u, c)
The operator returns a clocked variable that has c as associated clock and has the value of the left limit of u when c is active (that is the value of u just before the event of c is triggered). If argument c is not provided, it is inferred
The return argument has the same type as the first input argument. The optional argument c is of type Clock.