フィルターのクリア

Rapid accelator can't be used (but normal and accelator can be use)

15 ビュー (過去 30 日間)
皓芊
皓芊 2023 年 9 月 6 日
回答済み: Dinesh 2023 年 9 月 26 日
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 件のコメント
Rik
Rik 2023 年 9 月 7 日
Comment posted as flag by @皓芊:
I'm sorry, I don't quite understand what you mean, could you put it another way?
Fangjun Jiang
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
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
  1. https://www.mathworks.com/help/simulink/slref/sim.html#namevaluepairarguments
If the issue persists then please contact MathWorks Customer support for further assistance.
Hope this helps.
Best Regards,
Dinesh Reddy Gatla.

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by