Praajna G Baragur
Praajna G Baragur

Reputation: 21

transform to FMU does not copy resource to FMU when using readMatrix

I'm using DataFiles.readMATmatrix to read a .mat file and get simulation input into my dymola model.I see this option when converting a model to an FMU.

"Copy resources to FMU" – external resources using the functions ModelicaServices.ExternalReferences.loadResource or Modelica.Utilities.Files.loadResource are by default copied to the FMU.

But, since I don't use ModelicaServices.ExternalReferences.loadResource or Modelica.Utilities.Files.loadResource, the .mat files I'm reading don't get copied over. I want it to be copied over because I may want to read the FMU with different .mat files.What's the best way to do this? Is there any way for me to copy over resources even when using DataFiles.readMATmatrix?

I tried looking for options to add any other functionality that copies over other resources apart from ones using loadResource but there wasn't much info I could find online.

Upvotes: 2

Views: 24

Answers (0)

Related Questions