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.
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.