Error occurred when evaluating apply callback [Instrument Control Toolbox]
19 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/152877/image.png)
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
Mojtaba
il 10 Ago 2016
I also have the same problem trying to connect to a virtual port for Ti MSP430 launchpad.
Risposte (5)
Juan Martinez
il 18 Ott 2016
Modificato: Juan Martinez
il 18 Ott 2016
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
Robert Sawrey
il 18 Ago 2016
I had this problem, then ran Matlab in Administrator Mode, which fixed the issue.
Madhu Govindarajan
il 28 Dic 2015
Have you tried using the Arduino Serial Transmit instead of the Instrument Control Toolbox one? I think that will resolve this issue.
Fox Hsu
il 26 Gen 2016
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.
0 Commenti
Vedere anche
Categorie
Scopri di più su Instrument Control Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!