-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FCP-001_Clocks: Discrete States and Time Events in FMI #353
Comments
Modified by andreas.junghanns on 4 Nov 2015 13:01 UTC |
Modified by dietmarw on 5 Nov 2015 12:44 UTC |
Comment by rfranke on 25 Jun 2016 05:21 UTC |
Comment by cbertsch on 26 Jun 2016 17:55 UTC |
Comment by andreas.junghanns on 26 Jun 2016 20:15 UTC I am missing a definition of the different clocks to Modelica-free people (sub-clocks, inferred clocks, intervals,...). Where is the word document with details? We should store FCP documents in https://svn.fmi-standard.org/fmi/trunk/FMI_ChangeProposals/... |
Comment by rfranke on 3 Jan 2017 17:22 UTC
The clocks are declared in the XML file. The importing environment synchronizes clocks between connected FMUs using the functions fmi2Get/SetClock.
An Inferred clock should be used in the case of variable period. The period of a Periodic clock is fixed and given in the XML file. A Triggered clock may be based on a parameter (or other variable) that defines the period.
Triggered clocks do not need any support from an importing environment. The environment must activate Inferred clocks and it should activate Periodic clocks. This is considered simple because the environment can determine the fixed period of a clock by reading its XML attributes and boiling them down to two values: sample period and offset.
It is not a new flavor; it is an extension of ME. One FMU may have both: continuous states and discrete states. The importing environment should be extended with handling of sample period and offset -- as known from other simulation environments like Simulink. One could also think of a generic FMU wrapper that treats Inferred and Periodic clocks internally and lets them appear like generic events to the importing environment. The wrapper might also have a parameter to define the period of an Inferred clock. |
Modified by cbertsch on 1 Jun 2018 14:16 UTC |
Is this covered by FCP-007 or what are the differences? |
It was decided to merge this FCP with others to form FCP 007, this part of the FCP 007 was prototyped and ready two years ago. |
I agree |
Reported by rfranke on 4 Nov 2015 09:09 UTC
FCP-001 builds on material being developed since 4 years and proposes a way forward. It focuses on the most important features that can be provided with minimal extensions of FMI 2.0.
This enables the online application of mixed discrete continuous models and the implementation of controller code using FMI. Such applications are currently only possible with other executable model formats, such as Simulink S-function.
Partial test implementations exist in the tool Dymola since a while. New test implementations exist in the exporting tool OpenModelica and in the importing tool HQP.
Design rationale / Requirements
Migrated-From: https://trac.fmi-standard.org/ticket/353
The text was updated successfully, but these errors were encountered: