Hi,
I have deployed a simulink subsystem to my Arduino UNO and I have change the S-function block to a serial transmit arduino block and a serial receiving arduino block.
I'm trying to run my model on external mode but I have this error message : "Both Serial Receive block and External mode use Pin number 0"
How can I use external mode and serial port at the same time ?
Thank you.

답변 (1개)

Hamidreza Hoshyarmanesh
Hamidreza Hoshyarmanesh 2019년 3월 22일

0 개 추천

You need to change the port number on your serial transmit block to 1 or 2 (depending on the type of Arduino you were using). The port 0 is assigned to programming Arduino as a slave device for Simulink not as a host for other slaves which are connected to Arduino serial ports.
Regards,
Hamidreza

댓글 수: 2

Anthony Comer
Anthony Comer 2021년 5월 9일
I've tried changing it yet it comes up with a box saying "Serial Trasmit block Parameter Port number must be 0."..I'm in a loop!
Hak YAL
Hak YAL 2021년 10월 10일
I have the same problem and I would be happy to hear the solution.

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

카테고리

도움말 센터File Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2018년 12월 4일

댓글:

2021년 10월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by