-
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
Bypass a part of an FMU #2011
Comments
I would like to submit an additionnal use case that may be linked to this topic: FMU needs a computation routine that depends on the environement. This routine may be called internally by the FMU several times during a Co-Simulation step. Real life example: consider a FMU that computes the Vehicle Dynamic. It needs ground information at different locations (at least 4 for a car). This information usually depends on the environement (and simulation tool) and should be retrieved even between 2 co-simulation steps. For some models it is very difficult to put ground information as "classical input" of the fmu. In such situation, a callback function given by the environment may be very useful to retrieve ground information. Is there a way to pass a callback (for computation routine) to an FMU ? |
nl78: |
Andreas, yes I'm "forced" to use Co-Simulation. The callback I have in mind can be more seen as a "service" offered by environment than a "intermediate update". In my specific example, "terrain picking" callback should be callable serveral times per FMU iteration (one or more time per wheel). Usage of fmi3IntermediateUpdateCallback can be considered but can lead to complicated implementation. I shared this example here, because "callbacks" could be also used to overload some "SWC". |
@nl78 @jeanmariequelin : there has been a related proposal as an "FMI Change proposal" FCP-05 https://github.com/modelica/fmi-design/blob/master/FMI_ChangeProposals/FCP_005_Services/FCP_FMI_Services_draft20160706.pdf , which was not included in FMI 3.0 Could check and comment this? One could also think about a realization in form of a layered standard instead of the in the core FMI 3.x standard Another thought: could put the parts that your want to bypass in a separate DLL that is called from the FMU's main DLL? And then exchange it for another DLL with the same interface and the changed implementation? |
(Issue created on behalf of @jeanmariequelin )
Objective is to be able to by-passed a part of a V-ECU Level 1 (100% applicative software) exported as FMU and replace this part by simulink model
Common to all use-cases
Use-case 1
Use-case 2
Expected benefits
With a schema:
The text was updated successfully, but these errors were encountered: