When I run the simulation, I am facing this problem.

조회 수: 81 (최근 30일)
Noor Amira Ilyanie
Noor Amira Ilyanie 2022년 9월 22일
답변: Harshit Gupta 2022년 10월 3일
Build process completed successfully
Saving external mode simulation output as a single object is not supported because the workspace variable 'out' is not created during model code execution. To suppress the warning, set 'ReturnWorkspaceOutputs' to 'off'.
Component:Simulink | Category:Model warning
Error occurred while executing External Mode MEX-file 'ext_comm': ExtTargetPktPending() call failed while checking for target pkt
Component:Simulink | Category:Block diagram error
Error occurred while executing External Mode MEX-file 'ext_comm': ExtSetTargetPkt() call failed on CLOSE. Ensure target is still running
  댓글 수: 1
Walter Roberson
Walter Roberson 2022년 9월 22일
The middle error is saying that the model was not able to detect any packets from the target.
  • the wrong port might be specified
  • the device might not be not be plugged in or turned on
  • the cable might be faulty
  • the device might not be ready
  • in cases involving ethernet, bluetooth, or wifi, security software might be blocking the connection

댓글을 달려면 로그인하십시오.

답변 (1개)

Harshit Gupta
Harshit Gupta 2022년 10월 3일
As mentioned by @Walter Roberson in the comments above, this error message indicates that Simulink was unable to communicate with the target board. One of the main reasons this can occur during run time of an external mode simulation is that the communication bandwidth usage is very high and communication can be momentarily lost. The following MATLAB Answers post has some suggestions on how to reduce the usage of the external mode communication in order to prevent this error:

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by