I would like to use the Simulink Interface within another application using the Real Time Workshop. However, I get trouble compiling the model via the "build"-command. The error message tells me that the kt_sfunction.o is missing. The supplied makefile does not create the object file. An artificially introduced object file (using the mex -c command in the makefile) in the same directory is not found either. What changes have to be made in the makefile or in the kt_sfunction.cpp to get the model compiled with RTW?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was able to compile the simulink block kt_test.mdl for generic real time target by modifing the template Makefile (grt_default_tmf) saved as kt_test.tmf in the
CVS (sm_simulink) (It might take some time before this is public available)
To compile with RTW:
Go to sm_simulink, execute make. Open the kt_test.mdl, go to the menu Tools/Real Time Workshop/options.. Under the Category: Target Configuration, make sure that System target file is: grt.tlc. Under the template makefile chose the modified kt_test.tmf. Now it should be possible
to build and run the RTW program.
Note that I modified the Makefile so that it is copying the sf_rtsync_rtc_v1.c to sm_simulink/ directory as this need to be there in order to compile using the RTW.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like to use the Simulink Interface within another application using the Real Time Workshop. However, I get trouble compiling the model via the "build"-command. The error message tells me that the kt_sfunction.o is missing. The supplied makefile does not create the object file. An artificially introduced object file (using the mex -c command in the makefile) in the same directory is not found either. What changes have to be made in the makefile or in the kt_sfunction.cpp to get the model compiled with RTW?
I was able to compile the simulink block kt_test.mdl for generic real time target by modifing the template Makefile (grt_default_tmf) saved as kt_test.tmf in the
CVS (sm_simulink) (It might take some time before this is public available)
To compile with RTW:
Go to sm_simulink, execute make. Open the kt_test.mdl, go to the menu Tools/Real Time Workshop/options.. Under the Category: Target Configuration, make sure that System target file is: grt.tlc. Under the template makefile chose the modified kt_test.tmf. Now it should be possible
to build and run the RTW program.
Note that I modified the Makefile so that it is copying the sf_rtsync_rtc_v1.c to sm_simulink/ directory as this need to be there in order to compile using the RTW.