Error occurred when evaluating apply callback [Instrument Control Toolbox]
Mostrar comentarios más antiguos

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 comentarios
Walter Roberson
el 27 de Dic. de 2015
The port might be in use.
Vinod
el 28 de Dic. de 2015
Guillermo González Trujillo
el 1 de Mayo de 2016
I have the same problema. Do you got any real solution for this?
Pedro Ruiz Soto
el 30 de Mayo de 2016
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
el 10 de Ag. de 2016
I also have the same problem trying to connect to a virtual port for Ti MSP430 launchpad.
Miguel Ortiz
el 11 de Abr. de 2019
Worked for me! thanks a lot!
Respuestas (5)
Juan Martinez
el 18 de Oct. de 2016
Editada: Juan Martinez
el 18 de Oct. de 2016
7 votos
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 comentarios
rongwei li
el 6 de Sept. de 2017
yes,solve it
alberto lizcano
el 3 de Oct. de 2017
si funciona gracias (y)
Yang Zhang
el 7 de Dic. de 2017
Editada: Yang Zhang
el 7 de Dic. de 2017
great job,thanks a lot!
Eduardo Luis Ravera
el 21 de En. de 2018
Its fantastic, i've tried a lot without results, thank you !
Alan De Santos
el 23 de En. de 2020
it works, gracias
Marvin Tagolimot
el 19 de Feb. de 2020
Thank you
JAEYOUNG LEE
el 29 de Mayo de 2020
fantastic
WILSON ROMANO
el 9 de Ag. de 2023
Excelent, thank you.
Robert Sawrey
el 18 de Ag. de 2016
2 votos
I had this problem, then ran Matlab in Administrator Mode, which fixed the issue.
1 comentario
Varun Kirti
el 28 de Nov. de 2018
this fixed the issue for me as well!
Madhu Govindarajan
el 28 de Dic. de 2015
0 votos
Have you tried using the Arduino Serial Transmit instead of the Instrument Control Toolbox one? I think that will resolve this issue.
1 comentario
Walter Roberson
el 28 de Dic. de 2015
Ah, interesting point.
Fox Hsu
el 26 de En. de 2016
0 votos
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
el 18 de Abr. de 2017
0 votos
could u speak Chinese?
1 comentario
Hamza YILDIZ
el 13 de Mayo de 2017
Editada: Hamza YILDIZ
el 13 de Mayo de 2017
I can...
我不会说中文
see
Categorías
Más información sobre Arduino Hardware en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!