Menu

Real Time Workshop

Vallery
2004-06-25
2004-06-29
  • Vallery

    Vallery - 2004-06-25

    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?

     
    • Nils-Otto Negĺrd

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.