How can I resolve TCP/IP error in rapid accelerator mode?
2 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Swastik Sarkar
on 24 Sep 2024
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.
0 Comments
See Also
Categories
Find more on Development Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!