Why is sample applied to time here?
|
when Clock() then // equations are on the same clock |
|
x = A * previous(x) + B * u; |
|
Modelica.Utilities.Streams.print |
|
("clock ticks at = " + String(sample(time))); |
|
end when; |
It reminds me of how time is also sometimes sampled in the MSL, such as in Modelica.Clocked.RealSignals.TimeBasedSources.Sine:
What is the point of sampling time in these ways? If it is pointless, should the specification and the MSL be simplified in order to not give the impression that it is needed?
Why is
sampleapplied totimehere?ModelicaSpecification/chapters/synchronous.tex
Lines 320 to 324 in 016cdbd
It reminds me of how
timeis also sometimes sampled in the MSL, such as in Modelica.Clocked.RealSignals.TimeBasedSources.Sine:What is the point of sampling
timein these ways? If it is pointless, should the specification and the MSL be simplified in order to not give the impression that it is needed?