MATLAB Answers

0

Can't use serial send with arduino uno board

Eduardo 님이 질문을 제출함. 20 Nov 2015
최근 활동 ErfanH 님이 답변함. 14 Mar 2019
I'm trying to create a simple model that reads data from an arduino by using the 'Serial Receive' block, but whenever I try to select a port and apply changes I get the following error:
I already tested this on another laptop and got the same result.

  댓글 수: 0

로그인 to comment.

태그

답변 수: 2


I got the same error when trying to use Serial Send which is from the Instrument Control Toolbox, however it went away when I used the Serial Transmit block from Simulink support package for Arduino. I think this is an expected behavior.

  댓글 수: 0

로그인 to comment.


ErfanH 님의 답변 14 Mar 2019

you should disconnect your arduino first then close the simulink and matlab
then re open matlab and connect the arduino to the pc then open the simulink then you can use the block without any problem

  댓글 수: 0

로그인 to comment.



Translated by