Error occurred when evaluating apply callback [Instrument Control Toolbox]
이전 댓글 표시

I'm trying to send data on my serial port through Simulink with the toolbox in description, but when i configure the Serial Configuration Block, it give me this error. I don't think the problem can be the port, because i have atteched an Arduino Uno.
댓글 수: 6
Walter Roberson
2015년 12월 27일
The port might be in use.
Vinod
2015년 12월 28일
Guillermo González Trujillo
2016년 5월 1일
I have the same problema. Do you got any real solution for this?
Pedro Ruiz Soto
2016년 5월 30일
I have the same problem, i was using virtual ports to simulate what I wanted to do and it worked well... but when I conected the real serial port it just doesn't work
Mojtaba
2016년 8월 10일
I also have the same problem trying to connect to a virtual port for Ti MSP430 launchpad.
Miguel Ortiz
2019년 4월 11일
Worked for me! thanks a lot!
답변 (5개)
Juan Martinez
2016년 10월 18일
편집: Juan Martinez
2016년 10월 18일
7 개 추천
For anyone reading this I used to have this same problem; however, I think I found the solution. Simply connect your hardware (Arduino) to the computer before opening Matlab. Then (with the hardware connected) open Matlab, then open your Simulink model and configure the Serial Configuration Block, it should work just fine now. After doing so, you can save your Simulink model and the serial configuration will be saved as well.
댓글 수: 8
rongwei li
2017년 9월 6일
yes,solve it
alberto lizcano
2017년 10월 3일
si funciona gracias (y)
Yang Zhang
2017년 12월 7일
편집: Yang Zhang
2017년 12월 7일
great job,thanks a lot!
Eduardo Luis Ravera
2018년 1월 21일
Its fantastic, i've tried a lot without results, thank you !
Alan De Santos
2020년 1월 23일
it works, gracias
Marvin Tagolimot
2020년 2월 19일
Thank you
JAEYOUNG LEE
2020년 5월 29일
fantastic
WILSON ROMANO
2023년 8월 9일
Excelent, thank you.
Robert Sawrey
2016년 8월 18일
2 개 추천
I had this problem, then ran Matlab in Administrator Mode, which fixed the issue.
댓글 수: 1
Varun Kirti
2018년 11월 28일
this fixed the issue for me as well!
Madhu Govindarajan
2015년 12월 28일
0 개 추천
Have you tried using the Arduino Serial Transmit instead of the Instrument Control Toolbox one? I think that will resolve this issue.
댓글 수: 1
Walter Roberson
2015년 12월 28일
Ah, interesting point.
Fox Hsu
2016년 1월 26일
0 개 추천
i have the same problem. In my case, it turns out it's the conflict between 2 serial ports ( i'm trying to open 2 serial port in the same simulink model) cause this error message.
XIAOMING
2017년 4월 18일
0 개 추천
could u speak Chinese?
댓글 수: 1
Hamza YILDIZ
2017년 5월 13일
편집: Hamza YILDIZ
2017년 5월 13일
I can...
我不会说中文
see
카테고리
도움말 센터 및 File Exchange에서 Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!