Not able to run simulations using Rapid accelerator
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Walter Roberson
le 9 Août 2024
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.
Réponses (1)
Pramil
le 12 Août 2024
Modifié(e) : Pramil
le 12 Août 2024
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 commentaire
Walter Roberson
le 12 Août 2024
The character ~ is not a problem in pathnames. It is the character used to compose "short path name" .
Voir également
Catégories
En savoir plus sur Multicore Processor Targets dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!