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!