Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)

Forgot password? | Forgot username? | Register

export and import snapshot

export and import snapshot

Dear All,

I am using omsimulator for co-simulating a FMU with a model I programmed in Python. There is a need for me to iterate both models for computing the results for a single time step. I am using the command stepUntil with the same time stamp, which is apparently working.
But based on the FMI specification 2, I was wondering if I could use exportSnapshot and importSnapshot for mimicking the getFMIState and setFMIState behavior.
What would be the best practice in the situation I am in?

I would really appreciate any feedback on this topic.
Thanks in advance for the attention.

There are 0 guests and 0 other users also viewing this topic