arsenio
arsenio

Reputation: 21

How do I use fmi2SetReal in C++ to set the value of an input parameter to simulate from an FMU model?

I am trying to use the fmi4cpp API in C++ to run a simulation from a FMU and I would like to set some input parameters. What's the best way to do that for (1) fixed parameters and (2) continuous inputs? I bumped into the fmi2SetReal function but I struggle finding practical examples.

Thank you very much.

Upvotes: 0

Views: 261

Answers (1)

laht
laht

Reputation: 96

Using fmi4cpp, the call to fmi2SetReal is handled through the write_real functions in your slave instance. Location in source

Upvotes: 1

Related Questions