Rapid accelator can't be used (but normal and accelator can be use)
12 次查看(过去 30 天)
显示 更早的评论
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 个评论
Fangjun Jiang
2023-9-7
编辑:Fangjun Jiang
2023-9-7
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.
回答(1 个)
Dinesh
2023-9-26
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Prepare Model Inputs and Outputs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!