Simulink COM port error

조회 수: 135 (최근 30일)
Nicholas Imlay
Nicholas Imlay 2018년 2월 5일
댓글: Zaryan 2024년 3월 15일
If I do not connect to Arduino Due with MatLab. I get the following response in the diagnostic viewer.
The following error occurred during deployment to your hardware board: Could not connect to specified Arduino board.
Verify that the board is connected to your host, and that the host COM port number set in the model matches the COM port number in Windows.
To change the host COM port number in the model, click 'Simulation ', click 'Model Configuration Parameters'... In the dialog that opens, select the 'Hardware Implementation' pane, click 'Target hardware resources > Host-board connection' and set the COM port number.
To find out the COM port number in Windows, open Device Manager and open your board in the COM ports group.
My COM port for the arduino is COM3, which I have already set manually in Simulink.
If I connect to the arduino from MatLab, I get the following response.
The following error occurred during deployment to your hardware board: Open failed: Port: COM3 is not available. No ports are available. Use INSTRFIND to determine if other instrument objects are connected to the requested device.
  댓글 수: 3
HITESH TRIVEDI
HITESH TRIVEDI 2019년 3월 20일
I too tried it , it doesn't work....can anyone help us??
Zaryan
Zaryan 2024년 3월 15일
i have ch340g arduino mega and i am facing same issue

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

답변 (3개)

Kevin Graebner
Kevin Graebner 2019년 4월 22일
I am running matlab r2019A and am having the same issue, though i just recently updated the arduino packs.
the funny thing is when i follow the arduino engineering tutorial it works ok but when i just try to get a digital input signal to show up on a scope it wont work at all! please help
  댓글 수: 1
menezes roshal nikhil
menezes roshal nikhil 2019년 7월 4일
Same problem here, before update everything workes fine

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


Mirko Milz
Mirko Milz 2020년 4월 15일
Hi guys, i had the same problem. Try to press and hold the ERASE Button on Due Board for about 3 seconds before you start the simulation (Create and run instrumented application on hardware. Monitor signals and tune parameters (external mode)). You have to do this before each new simulation.
Hope this helps you.

dimuthu chathuranga
dimuthu chathuranga 2021년 4월 9일
  댓글 수: 1
ANIL LAMICHHANE
ANIL LAMICHHANE 2022년 7월 30일
Follow these instructions from mathworks step by step, you will be fine:

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

카테고리

Help CenterFile Exchange에서 Run on Target Hardware에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by