CATIA-Systems / FMIKit-Simulink

Import and export Functional Mock-up Units with Simulink
Other
161 stars 54 forks source link

Structured Tunable parameters #401

Open nl78 opened 1 year ago

nl78 commented 1 year ago

When selecting "Tunable" (instead of "Inlined") for Default parameter behaviour, if the parameter named is structured (XXX.YYY), then de compilation fails :

### Writing modelDescription.xml
Warning: File: C:\Users\a067220\Local\FMI\slx2fmu\FMIKit-Simulink\grtfmi\grtfmilib.tlc Line: 127 Column: 42
Converting 'SLData(0)' value to MATLAB value
Error: Output file xmlfile1 opened with %openfile was not closed
Error: Output file xmlfile2 opened with %openfile was not closed
Error: Output file incfile opened with %openfile was not closed
Warning: TLC has leaked 15 symbols. You may have created a cyclic record.  Rerun TLC using the -dr option to detect where the record was created.

Here is a smal example.

test_unit.zip

t-sommer commented 1 year ago

You can work around this limitation by using the expression EVC_Regen_FR.('Pmeca_max_HEVC_ECC_Regen') instead of EVC_Regen_FR.Pmeca_max_HEVC_ECC_Regen.