Error occurred when evaluating apply callback [Instrument Control Toolbox]
Afficher commentaires plus anciens

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 commentaires
Walter Roberson
le 27 Déc 2015
The port might be in use.
Vinod
le 28 Déc 2015
Guillermo González Trujillo
le 1 Mai 2016
I have the same problema. Do you got any real solution for this?
Pedro Ruiz Soto
le 30 Mai 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
le 10 Août 2016
I also have the same problem trying to connect to a virtual port for Ti MSP430 launchpad.
Miguel Ortiz
le 11 Avr 2019
Worked for me! thanks a lot!
Réponses (5)
Juan Martinez
le 18 Oct 2016
Modifié(e) : Juan Martinez
le 18 Oct 2016
7 votes
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 commentaires
rongwei li
le 6 Sep 2017
yes,solve it
alberto lizcano
le 3 Oct 2017
si funciona gracias (y)
Yang Zhang
le 7 Déc 2017
Modifié(e) : Yang Zhang
le 7 Déc 2017
great job,thanks a lot!
Eduardo Luis Ravera
le 21 Jan 2018
Its fantastic, i've tried a lot without results, thank you !
Alan De Santos
le 23 Jan 2020
it works, gracias
Marvin Tagolimot
le 19 Fév 2020
Thank you
JAEYOUNG LEE
le 29 Mai 2020
fantastic
WILSON ROMANO
le 9 Août 2023
Excelent, thank you.
Robert Sawrey
le 18 Août 2016
2 votes
I had this problem, then ran Matlab in Administrator Mode, which fixed the issue.
1 commentaire
Varun Kirti
le 28 Nov 2018
this fixed the issue for me as well!
Madhu Govindarajan
le 28 Déc 2015
0 votes
Have you tried using the Arduino Serial Transmit instead of the Instrument Control Toolbox one? I think that will resolve this issue.
1 commentaire
Walter Roberson
le 28 Déc 2015
Ah, interesting point.
Fox Hsu
le 26 Jan 2016
0 votes
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
le 18 Avr 2017
0 votes
could u speak Chinese?
1 commentaire
Hamza YILDIZ
le 13 Mai 2017
Modifié(e) : Hamza YILDIZ
le 13 Mai 2017
I can...
我不会说中文
see
Catégories
En savoir plus sur Arduino Hardware dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!