-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
clarificationSpecification of feature is unclear, but not incorrectSpecification of feature is unclear, but not incorrect
Description
Why is sample applied to time here?
ModelicaSpecification/chapters/synchronous.tex
Lines 320 to 324 in 016cdbd
| 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:
simTime = sample(time);
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
clarificationSpecification of feature is unclear, but not incorrectSpecification of feature is unclear, but not incorrect