CATIA-Systems / FMIKit-Simulink

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

Support for SFunctionModules attribute in grtfmi target #262

Closed fajansen closed 3 years ago

fajansen commented 3 years ago

According to the Simulink documentation (see https://de.mathworks.com/help/rtw/ug/build-integrated-code-within-the-simulink-environment.html#bp67s_y-3) the S-Function parameter "SFunctionModules" can be used to specify additional libraries/c-files that are required to build the S-Function as a simpler alternative to the "CustomSource" parameter of the complete model. Using the standard grt target, this works. With the grtfmi target the files specified there are not included and therefore the build fails.

t-sommer commented 3 years ago

Can you provide steps to reproduce the problem?

t-sommer commented 3 years ago

According to this example the modules have to be provided as a space separated list of names without single quotes.

After removing the quotes I can successfully build the model you shared via e-mail.

fajansen commented 3 years ago

My example worked with grt, so they seem to not follow their own documentation. Thanks for the clarification, we will adapt our models accordingly.