How can I use well Real-Time Pacer Block when I'm using serial communication blocks in a Simulink model?

Good afternoon Pravallika,
I tried to use Real-Time Pacer block because when I add this block to my Simulink model with Speedup option=1, the error between the real time and simulation increases around 0.3 s and I would be as minimum 30 ms like is explained in the realtime_pacer_example.
I do not know if this error is due to the sample time I configured in the serial send and recieve blocks or the timeout value I configured in the serial configuration block.
I really appreciate your help. I'd like to know if you could share your Simulink files to me about your project "A Case Study in Data-Driven Modeling and Control Design" my email is hmho07@yahoo.com.co
I really appreciate your help, Hernan Herrera Mechatronics Engineering Student

回答 (1 件)

Pravallika
Pravallika 2013 年 8 月 28 日
Hello Hernan,
You can find all the related models and files in this File Exchange submission: Data-Driven Control
-Pravallika

カテゴリ

ヘルプ センター および File ExchangeBlock Libraries についてさらに検索

製品

質問済み:

2013 年 8 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by