Closed clagms closed 3 years ago
In case of <
> <<inputClock, input clocks
>> these values are the start interval values if they are not given by the simulation master.
This depends on the value of strict (as indicated in the subsequent paragraph).
Decision from web meeting 17-06-2020: drop the start value for ALL clocks.
Ticket viewing Meeting:
Andreas: I belive we should be able to set values at the beginning and to have start values Klaus: but we decided otherwise above. Andreas: I see use cases for virtual ECUs, where it is important to state that a clock shall tick at the beginning. One could overwrite it at the beginning. TorstenB: In modelica during initialization, no clock ticks. The clock ticks first at eventMode Klaus: this seems to be a severly different interpretation. TorstenB: in Modelica during initialization no clock ticks. It first gets active in event mode. There might be requirements from other use cases. Andreas: We have similar issues with ECU SW ... I will have to look into this.
This waits for clarification on clocks and events.
Fixed in #1272. Changing clocks and Countdown clocks now allow ticks at the first Event Mode. For periodic clocks, this was always possible. This will handle the use case for initial tasks of vECUs.
Why do we force the FMU to provide a start value for a clock?
The following description is problematic:
Because:
offset = interval * shiftCounter / resolution
, can be zero, therefore the environment will (will it?) know when to execute them (right after initialization), without having the need for a start value for the clock.@KarlWernersson , the working group on clocks need your input on this one.