I made an FMU from a Dymola Model and import it at Jmodelica. The FMU simulates in the Jmodelica environment.
But when I want to set a variable to another value it gives an error:
"FMUException: Failed to set the Real values.".
When I asked for a value like a = FMUModel.get("variable") , I get the value of the variable. But when I set the variable to the same value like FMUModel.set("variable",a) I got the same error. It is not only this variable but for all other variables and parameters.
What could be the problem, or what is the solution to change the variable?
With kind regards
- FMI Library
- Log in