You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an FMU which is loaded as a Co-Sim model via fmi4cpp. I am able to access the model-description, but how do I get the names of variables and their types through model-description?
I have only the .fmu file and no model_description.xml(as present in the examples provided)
The text was updated successfully, but these errors were encountered:
Thank you for your reply,
I apologize for not being clear with my doubt, I have a custom FMU that I am testing the fmi4cpp library on. I am currently able to load it as co-sim fmu and step through it. I want to access the variables inside the modelDescription using fmi4cpp as I do not know the names or reference values of the variables.
The instance and fmu object should have a get_model_description() function that holds a model_variables field. You should be able to loop through this using indices or a foreach loop on the object itself.
I have an FMU which is loaded as a Co-Sim model via fmi4cpp. I am able to access the model-description, but how do I get the names of variables and their types through model-description?
I have only the .fmu file and no model_description.xml(as present in the examples provided)
The text was updated successfully, but these errors were encountered: