Not able to run simulations using Rapid accelerator

6 ビュー (過去 30 日間)
Eduardo
Eduardo 2024 年 8 月 9 日
コメント済み: Walter Roberson 2024 年 8 月 12 日
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:
to run the simulation in rapid accelerator do I need the real time workshop tools license?
Regards
Eduardo
  2 件のコメント
Walter Roberson
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.
Eduardo
Eduardo 2024 年 8 月 10 日
so, is only Simulink license required?
Any clue about the failed message when I try to run the simulation in rapid accelerator mode?

サインインしてコメントする。

回答 (1 件)

Pramil
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
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 ExchangeMulticore Processor Targets についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by