Run simulation using multiple arduino mega in the same laptop

I had connected 2 usb from 2 arduino mega. one board is programmed using Arduino software, while another one board is programmed using simulink. Why the programmed code does not run when both codes is running?

댓글 수: 1

Hello Noor,
Can you please elaborate your worklow a little bit for better understanding.
Which programmed board are you referring here which doesn't work?

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

답변 (1개)

Anshuman
Anshuman 2023년 8월 8일

0 개 추천

Hi Noor,
When you connect two Arduino Mega boards to your computer, one programmed using the Arduino software and the other programmed using Simulink, it's important to consider a few factors that may affect the execution of the code on both boards simultaneously.
  • Serial Communication: Both Arduino boards may be using the same serial communication port to communicate with the computer. This can cause conflicts when both boards attempt to send or receive data simultaneously. Ensure that each board is assigned a different serial port to avoid conflicts.
  • Pin Assignments: Check if there are any conflicting pin assignments between the two programs. If both programs try to use the same pins simultaneously, it can lead to unexpected behavior or errors. Make sure the pin assignments are unique and do not overlap.
  • If the programs on both boards involve time-sensitive operations or interrupts, conflicts may occur.
Hope it helps!

카테고리

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

제품

릴리스

R2020b

질문:

2023년 7월 7일

답변:

2023년 8월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by