-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Unity Crash when loading fmi2DoStep and fmi2SetReal #11
Comments
Can you share an FMU to reproduce the problem? |
Hello! Thanks for your comment! Also here is my OMedit Options capture. I guess there are some problems in OpenModelica fmu or my OMedit Settings, since Simulink FMU works on this addon(still need to change some settings like editting Unity fixed time step to 0.001 and change script's Time.time to Time.timeAsDouble)
Thanks a lot again, and I appreciate for your work! Below is modelica code of the fmu just in case you might need it. |
I can successfully simulate the FMU in FMPy and fmusim. Unfortunately I don't have access to a Unity license at the moment, so I can't debug it in Unity. |
Hi. Thanks for the Addon.
It works when I try to Simulate FMU which I made with Simulink, but when I try to simulate FMU which I made with OpenModelica,
Unity Suddenly crashed and shut down.
I tried annotation line by line, and I found that
fmi2DoStep = getFunc(dll, "fmi2DoStep");
fmi2SetReal = getFunc(dll, "fmi2SetReal");
Those two line on FMI2.cs make Unity crash.
I'm not an expert in this side but I wonder why other functions can be got by dll while those two can't.
Can you fix this for me or give me some advice to handle this problem?
The text was updated successfully, but these errors were encountered: