How can I resolve TCP/IP error in rapid accelerator mode?

4 次查看(过去 30 天)
When I run Simulink model with TCP/IP Client Send and Received blocks in Rapid Accelerator Mode I get the following error.
Unable to build a standalone executable to simulate the model 'testSimulinkTcp' in rapid accelerator mode.
Caused by: In order to generate code from AsyncIO, the target hardware must be MATLAB Host or a compatible device. The error occurred for MATLAB System block 'testSimulinkTcp/TCP//IP Receive'
However, it works properly in both Normal and Accelerator modes.

回答(1 个)

Swastik Sarkar
Swastik Sarkar 2024-9-24
Hi @Piotr,
It appears that the 'TCP/IP Receive' block being used is not supported for code generation on the selected hardware, which is a necessary step for the Rapid Accelerator target. More information about Rapid Accelerator mode can be found here:
To address this error, selecting the appropriate 'TCP/IP Receive' block for the specific hardware is required. For instance, on Arduino, the following 'TCP/IP Receive' block is necessary:
Further details can be found in this MATLAB Answer:
Hope this helps.

类别

Help CenterFile Exchange 中查找有关 Development Computer Setup 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by