Not able to run simulations using Rapid accelerator

6 visualizaciones (últimos 30 días)
Eduardo
Eduardo el 9 de Ag. de 2024
Comentada: Walter Roberson el 12 de Ag. de 2024
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 comentarios
Walter Roberson
Walter Roberson el 9 de Ag. de 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.
Eduardo
Eduardo el 10 de Ag. de 2024
so, is only Simulink license required?
Any clue about the failed message when I try to run the simulation in rapid accelerator mode?

Iniciar sesión para comentar.

Respuestas (1)

Pramil
Pramil el 12 de Ag. de 2024
Editada: Pramil el 12 de Ag. de 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 comentario
Walter Roberson
Walter Roberson el 12 de Ag. de 2024
The character ~ is not a problem in pathnames. It is the character used to compose "short path name" .

Iniciar sesión para comentar.

Categorías

Más información sobre Multicore Processor Targets en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by