MATLAB Answers

2

Simulink COM port error

Asked by Nicholas Imlay on 5 Feb 2018
Latest activity Commented on by menezes roshal nikhil on 4 Jul 2019
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.

  2 Comments

I am using MATLAB 2017b and have installed the latest simulink addon for arduino.
I too tried it , it doesn't work....can anyone help us??

Sign in to comment.

Tags

Products

1 Answer

Answer by Kevin Graebner on 22 Apr 2019

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 Comment

Same problem here, before update everything workes fine

Sign in to comment.