Problem in serial communication in Simuilnk

조회 수: 5 (최근 30일)
Yongjun
Yongjun 2013년 5월 16일
Hello, I am a student in Korea. So my English may be poor. Please understand me. I am using Simulink(MATLAB 2012b) to communicate with AVR(ATmega128) by UART. Everything is perfect except the sampling time. The communication is executed in real time when it is set to operate at less than 25Hz. But my control system needs the data refresh frequency of at least 50Hz or more. The operation of Simulink seems to be saturated when it is set at the higher frequency than 25Hz. The AVR is directly connected to PC with RS-232 serial port on the mainboard. What can I do to increase the rate of sampling in UART communication? Do I have to get some additional hardware? Please help me.
Thank you for reading.
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2013년 5월 16일
You may also want to specify which blockset/Simulink library your UART blocks are from.

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

답변 (1개)

Valmir Sadiku
Valmir Sadiku 2013년 5월 16일
one possible solution is to use 'Real-Time Windows Target' :<http://www.mathworks.de/products/rtwt/>
  댓글 수: 1
Valmir Sadiku
Valmir Sadiku 2013년 5월 22일
maybe you can run the model in the 'Accelerator'-Mode and this will hopefully speedup your system.

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

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by