필터 지우기
필터 지우기

Problems with Serial Communication

조회 수: 11 (최근 30일)
NICOLA
NICOLA 2013년 12월 6일
댓글: norazam aliman 2018년 2월 12일
Good morning at all, I'm using "Target support package" for STM32F4 in MatLab 2013b (Simulink). I have a problem to receive data from SERIAL PORT using "Instruments Control Toolbox", in particular using "Serial Receive" and "Serial Configuration" (see image 1).
When i try to cofigure my serial port in both simulink blocks, in this case COM8, i get this error: "Error occurring when evaluating apply callback" (see image 2).
Can anyone help me, please? How to fix? Thanks of all.
  댓글 수: 1
nam nguyen dang
nam nguyen dang 2016년 10월 16일
Sorry guys , i have the same problem :(

댓글을 달려면 로그인하십시오.

답변 (1개)

Juan Martinez
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 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.
  댓글 수: 3
Johann
Johann 2017년 2월 23일
Great! Works for me too!
norazam aliman
norazam aliman 2018년 2월 12일
Thank you so much! It works!!

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by