Error occurred when evaluating apply callback [Instrument Control Toolbox]
Mostra commenti meno recenti

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