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.
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.
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!