Not able to run simulations using Rapid accelerator
조회 수: 6 (최근 30일)
이전 댓글 표시
Running the example provide by Mathworks to simulate in rapid accelerator (sldemo_bounce) I got the following error message:
Top Model Build
1
Elapsed: 3 sec
### Building the rapid accelerator target for model: sldemo_bounce "INGWROOT\bin/gcc" -c -fwrapv -m64 -O0 -DCLASSIC_INTERFACE=1 -DALLOCATIONFCN=0 -DONESTEPFCN=0 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DEXT_MODE -DIS_RAPID_ACCEL -DTGTCONN -DIS_SIM_TARGET -DNRT -DRSIM_PARAMETER_LOADING -DRSIM_WITH_SL_SOLVER -DENABLE_SLEXEC_SSBRIDGE=1 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=0 -DMODEL=sldemo_bounce -DNUMST=2 -DNCSTATES=2 -DHAVESTDIO @sldemo_bounce_comp.rsp -o "rt_logging_simtarget.obj" "C:/PROGRA~1/MATLAB/R2021a/rtw/c/src/rt_logging_simtarget.c" The system cannot find the path specified. gmake: *** [rt_logging_simtarget.obj] Error 1 The make command returned an error of 2 ### Build procedure for sldemo_bounce aborted due to an error.
Build Summary
1
Elapsed: 0.2 sec
Top model rapid accelerator targets built: Model Action Rebuild Reason ========================================================================= sldemo_bounce Failed Code generation information file does not exist. 0 of 1 models built (0 models already up to date) Build duration: 0h 0m 3.238s
Unable to build a standalone executable to simulate the model 'sldemo_bounce' in rapid accelerator mode.
Caused by:
- Error(s) encountered while building "sldemo_bounce"
to run the simulation in rapid accelerator do I need the real time workshop tools license?
Regards
Eduardo
댓글 수: 2
Walter Roberson
2024년 8월 9일
to run the simulation in rapid accelerator do I need the real time workshop tools license?
No, rapid accelerator is different than real time workshop.
답변 (1개)
Pramil
2024년 8월 12일
편집: Pramil
2024년 8월 12일
Hi Eduardo,
The “Rapid Accelerator” mode in Simulink, generates executable C files and in turn uses them to decrease the simulation time. It uses "gmake" command to generate the C files. Since the path to the target C file “C:/PROGRA~1/MATLAB/R2021a/rtw/c/src/rt_logging_simtarget.c” contains the special character "~", the command throws out an error.
Try simulating the model in another folder with no special character throughout the path. It would most likely resolve the issue.
You can refer the following MATLAB Answer that suggests the same:
Hope it helps.
댓글 수: 1
Walter Roberson
2024년 8월 12일
The character ~ is not a problem in pathnames. It is the character used to compose "short path name" .
참고 항목
카테고리
Help Center 및 File Exchange에서 Multicore Processor Targets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!