CATIA-Systems / FMIKit-Simulink

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

Having trouble creating set of parameters/constants #306

Closed alpset closed 2 years ago

alpset commented 3 years ago

Hi!

I am trying to export a model exchange file with MATLAB 2019b/FMIKit-Simulink-2.9. I am successful at it but I have 2 main problems:

1 - I can not select which parameters are going to be visible in the FMI interface (can be adjusted) and which are going to be constants/cannot be viewed/adjusted by the user. I was doing this by moving the parameters I wanted to be constants to model workspace while using MATLAB 2020b, but I was not able find how to adjust parameters, add units, and even descriptions.

2 - For some reason, whenever I try to check my FMU with the official online tool, it gives me the error of "ModelStructure/InitialUnknowns does not contain the expected set of variables. Expected {ContinuousStates.Integrator1_CSTATE, ContinuousStates.Integrator2_CSTATE, ContinuousStates.Integrator_CSTATE, der(ContinuousStates.Integrator1_CSTATE), der(ContinuousStates.Integrator2_CSTATE), der(ContinuousStates.Integrator_CSTATE), fs} but was {}." What could be reason for this? I have already assigned them initial conditions.

I am a starter at this point and appreciate any help, Thank you.

t-sommer commented 2 years ago

1 - ...

This can be achieved using the Visible parameters setting.

2 - ...

Please provide steps to reproduce the problem with the latest version of develop and reopen the issue.