How can I create a deployable standalone executable of my simulink simulation?

1 view (last 30 days)
Hello,
I have built a real time simulation on Simulink, which allow to control a boat via a joystick inputs. The boat is displayed on a Visual world. I would like to create an executable to run my simulation on computers that don't have Matlab.
I have tried to build my model using the rtwin.tlc target file. but I have the following error. The directories that seems to create problems exists or are created in the building process.
Best regards,
Martin
### Invoking Target Language Compiler on Cclass_V2.rtw ### Using System Target File: C:\Program Files\MATLAB 2014a\toolbox\rtw\targets\rtwin\rtwin\rtwin.tlc ### Loading TLC function libraries ### Initial pass through model to cache user defined code ### Caching model source code ............................................................................... ............................................................................... ............................................................................... ................. ### Writing source file Cclass_V2.c ### Writing header file Cclass_V2_private.h ### Writing header file Cclass_V2.h ### Writing header file Cclass_V2_types.h ### Writing header file rtwtypes.h ### Writing header file multiword_types.h ### Writing header file rtGetInf.h ### Writing source file rtGetInf.c ### Writing header file rtGetNaN.h ### Writing source file rtGetNaN.c ### Writing header file rt_nonfinite.h ### Writing source file rt_nonfinite.c ### Writing header file rtmodel.h ### Writing source file Cclass_V2_data.c ### Writing header file rt_defines.h ### TLC code generation complete. ### Generating TLC interface API. ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ........................................ ### Creating data type transition file Cclass_V2_dt.h ....### Creating HTML report file Cclass_V2_codegen_rpt.html ### Processing Template Makefile: C:\Program Files\MATLAB 2014a\toolbox\rtw\targets\rtwin\rtwin\rtwin.tmf ### Creating Cclass_V2.mk from C:\Program Files\MATLAB 2014a\toolbox\rtw\targets\rtwin\rtwin\rtwin.tmf ### Building Cclass_V2: .\Cclass_V2.bat H:\MSC dissertation\Developement\CclassSim\Cclasssimulator_V2\Cclass_V2_rtwin_win64>set MATLAB=C:\Program Files\MATLAB 2014a
H:\MSC dissertation\Developement\CclassSim\Cclasssimulator_V2\Cclass_V2_rtwin_win64>"C:\PROGRA~1\MATLAB~1\bin\win64\gmake" -f Cclass_V2.mk EXTMODE_STATIC_ALLOC=0 EXTMODE_STATIC_ALLOC_SIZE=1000000 TMW_EXTMODE_TESTING=0 OPTS="-DON_TARGET_WAIT_FOR_START=0" ### Compiling Cclass_V2.c C:/PROGRA~1/MATLAB~1/sys/extern/win64/clang/bin/clang -emit-llvm -c -m64 -O4 -fno-ms-compatibility -U_MSC_VER -Wno-switch-enum -IC:/PROGRA~1/MATLAB~1/toolbox/rtw/targets/rtwin/lib/include -I. -I.. -IC:/PROGRA~1/MATLAB~1/simulink/include -IC:/PROGRA~1/MATLAB~1/extern/include -IC:/PROGRA~1/MATLAB~1/rtw/c/src -IC:/PROGRA~1/MATLAB~1/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB~1/toolbox/shared/can/src/scanutil -IC:/PROGRA~1/MATLAB~1/toolbox/rtw/targets/rtwin/src -IH:/MSC dissertation/Developement/CclassSim/Cclasssimulator_V2/Cclass_V2_rtwin_win64 -IH:/MSC dissertation/Developement/CclassSim/Cclasssimulator_V2 -IC:/PROGRA~1/MATLAB~1/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB~1/toolbox/dsp/include -IC:/PROGRA~1/MATLAB~1/toolbox/dsp/extern/src/export/include/src -IC:/PROGRA~1/MATLAB~1/toolbox/dsp/extern/src/export/include -IC:/PROGRA~1/MATLAB~1/toolbox/shared/dsp/vision/matlab/include -DON_TARGET_WAIT_FOR_START=0 -DEXT_MODE -DUSE_RTMODEL -DMODEL=Cclass_V2 -DRT -DNUMST=3 -DTID01EQ=1 -DNCSTATES=12 -DMT=0 -o "Cclass_V2.obj" "Cclass_V2.c" clang: error: no such file or directory: 'dissertation/Developement/CclassSim/Cclasssimulator_V2/Cclass_V2_rtwin_win64' clang: error: no such file or directory: 'dissertation/Developement/CclassSim/Cclasssimulator_V2' gmake: * [Cclass_V2.obj] Error 1
### Build procedure for model: 'Cclass_V2' aborted due to an error.
Error(s) encountered while building model "Cclass_V2"
Component: Simulink | Category: Model error
Martin
  1 Comment
Kumar
Kumar on 24 Jun 2015
Martin, have u gt any help/development with your simulink model. I am too facing some problems while developing executable from simulink model

Sign in to comment.

Answers (0)

Categories

Find more on Multicore Processor Targets in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!