I am trying to export an fmu from matlab using the new tool coupling toolbox as shown in this link https://www.mathworks.com/help/simulink/ug/_mw_54e936ec-2fa7-4418-be70-d99c8f91d2bd.html
So I was able to export an fmu and it generated 64 bit binary of the source code as my platform is 64 bit. I wrote a testfile to import the fmu and run the model using just the binaries. So I started the matlab server as mentioned in the link and then tried to run my testfile. My testfile was working well with other fmus like qtronic exported example fmus. Now I would like to run the matlab generated fmu and it is giving the following error:
fmistatus = Error; Test CS model Instance (logStatusError ): fmi2Instantiate: Undefined function or variable 'fmuhelper'. fmi2Instantiate: Undefined function or variable 'fmuhelper'. fmi2_import_instantiate failed module= FMICAPI, log level=5:Calling fmi2SetupExperiment
I didn't write anything in any of my source code as fmuhelper. When I checked in matlab and went to the specific path, I was able to see that fmuhelper is part of matlab and that it is a constructor. I did not understand anything more than that from that function. can anyone please provide me some suggestions as to how to solve it? Thank you!