Open Gunasekaran145333 opened 1 year ago
You need to read the Info above the marked error: e.g. in your case the include file 'Trail_sf.h' is missing
@TPfitzer . I checked, the file (Trail_sf.h) is already in the path.
@TPfitzer . I checked, the file (Trail_sf.h) is already in the path.
Note its not enough to have it in your matlabpath. The FMIKit will create a new build-folder "...fmi..." and all the files needed to be present there. So you need to add them within you simulink configuration or if you have a more complex setup you could use the packNGo feature of matlab.
@TPfitzer . In the Simulink configuration, I have included all of the source and header files. However, the same problem continues to appear; I have attached photos of the configuration parameters that I have provided.
Error
In its essence, we are trying to build FMU for an S-function (Using the .mexw64 file in the generate S function block) using FMI Kit 3.0. Please provide the steps and settings to be kept in Simulink configuration settings. It would be great if you could assist me in resolving this.
Maybe now i got it you try to build the fmu with only the mex-file and without having the c-code? If this is the case then i don't know if this is possible at all
No, we have source codes for the S-function. It is given in the MATLAB Path as well as in Simulink configuration as you said, but still, it doesn't work. It throws an error as unable to find Subsystem_sf.h file (But is given in both Matlab Path and in Simulink configuration.
FYI
@TPfitzer, any idea to resolve the above-mentioned issue?
I created an S-function using a basic gain block paired with a constant. Using the .mexw64 file in the generate S function block and attempting to build FMU, an error occurs as the call to rtwsfcnfmi_make_rtw_hook, during the after_make hook generated the following error: Failed to build FMU.
Please help me to resolve this issue