Error occurred when evaluating apply callback [Instrument Control Toolbox]
조회 수: 31 (최근 30일)
이전 댓글 표시
![](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
Mojtaba
2016년 8월 10일
I also have the same problem trying to connect to a virtual port for Ti MSP430 launchpad.
답변 (5개)
Juan Martinez
2016년 10월 18일
편집: Juan Martinez
2016년 10월 18일
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
Robert Sawrey
2016년 8월 18일
I had this problem, then ran Matlab in Administrator Mode, which fixed the issue.
Madhu Govindarajan
2015년 12월 28일
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일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Instrument Control Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!