Input to FMU using pyFMI

3 posts / 0 new
Last post
mneja
Offline
Joined: 2017-11-10
Input to FMU using pyFMI

Hi,

 

I would like to know if there is any way to give a (transient) input to an FMU using pyFMI. I want to feed my model transient input form a text file. In my model I can do this using CombiTimeTable in Modelica, but the file name with the table is not a parameter so cannot be changed once an FMU is made. Better then to have the table in Python and feed the contents to the FMU (which would need to supply time in return for interpolation in said table).

Can this be done?

chria
Offline
Joined: 2009-07-29
Hi,   Yes this is possible.

Hi,

 

Yes this is possible. Please see the PyFMI examples regarding inputs.

 

Best

/Christian

mneja
Offline
Joined: 2017-11-10
Thank´s, I found an example

Thank´s, I found an example (which oddly enough I hadn't before...  Just one last question, shall the inputs be specified in the model I subsequently export as an FMU, i.e. as interfaces (Real or whatever datatype they may be)?

Thanks again,

mneja

Login or register to post comments