Rapid accelator can't be used (but normal and accelator can be use)
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi!
My simulink could run in a normal mode and a accelerator mode. However, it couldn't run in a rapid accelator and it will give me the warnings like that:
Error occurred while executing External Mode MEX-file 'ext_comm':
Failed to connect to the target. Possible reasons for the failure:
a) The target is not switched on.
b) The target is not connected to your host machine.
c) The application for the model is not running on the target. You might have clicked the Stop button. If the Run button is not dimmed, click it. Otherwise, click the Build button, which downloads and runs your application on the target.
Caused by:
An error occurred attempting to open an rtIOStream. More detail may be reported in the MATLAB command window
External mode commands may only be issued when in external mode and connected to the target
I'm sure that I have switched the target and haven't clicked the stop button. So how could I solve the warnings?
By the way, the version of my matlab is R2021b. Could it be a problem with the version?
3 comentarios
Fangjun Jiang
el 7 de Sept. de 2023
Editada: Fangjun Jiang
el 7 de Sept. de 2023
The simulation mode can be normal, accelerator, rapid (accelerator), or external.
In the title, you asked about "rapid accelerator" mode.
In the content, the error message indicates "external" mode.
Respuestas (1)
Dinesh
el 26 de Sept. de 2023
Hi,
I understand that you are trying to run your model in rapid accelerator mode, and you are facing an error. The reason for the error is because 'External mode' is used under the hood by Rapid Accelerator when simulating with the play button. Please refer to the following MATLAB documentation for more details regarding the rapid accelerator mode.
To resolve this issue, I suggest trying to run the model in rapid accelerator mode using the 'sim' function in MATLAB. Unlike the play button, this approach does not use external mode under the hood.
Please refer to the following technical article for an example on using rapid accelerator using 'sim' function.
For more details regarding the 'sim' function please refer to the following MATLAB documentation
Hope this helps.
Best Regards,
Dinesh Reddy Gatla.
0 comentarios
Ver también
Categorías
Más información sobre Prepare Model Inputs and Outputs en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!