CATIA-Systems / FMIKit-Simulink

Import and export Functional Mock-up Units with Simulink
Other
157 stars 51 forks source link

Support structured-variable-names as bus-objects for inputs/outputs #239

Open jbernalr opened 3 years ago

jbernalr commented 3 years ago

As a nice to have: It would be good to have an option in the FMIKit to group inputs of fmus according to their names. i.e. "structured variable names" could be used to create bus objects in matlab, as this facilitates the interconnection of the model considerably. Some tools like targetlink use this mechanism to depict buses in the fmu-xml and some tools like the simulink importer now make this kind of mapping.

In the fmu-xml, this input/output variables are ordered/named for instance as:

RearTemperatures.temperature1
RearTemperatures.temperature2
RearTemperatures.temperature3

FrontTemperatures.temperature1
FrontTemperatures.temperature2
FrontTemperatures.temperature3

This would create two buses at import time with names RearTemperatures and FromTemperatures. The downside of scripting this by ourselves is that the customers and other proxies need to rely on a separate script to load models. It would be more convinent to have it in the FMIKit itself.

gowthamsrinivasan commented 3 years ago

@t-sommer - For which release is this feature planned? When will be the release?