How to use the Simulink Realtime Workshop?

We use a Simulink Realtime Workshop's Build. So we use this make the file *.sdf. If we send this file to system, it record the Digital value. so it calculates using my function. this value has some steps. we wanna know previous step of this digital value from AD(analog to digital) system. And wanna use this previous step's value. example, input x, output y and Time t. x is analog to digital from system. y is digital to analog to system. function is y=x(t)+x(t-1). thus, current step's value x(t) plus previous step's value x(t-1) then its value is output signal. but we don't know how to using the previous step's value x(t-1) at simmulink. what kind of a block we use to? my english is some terrible. but i need some feedback.

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2011 年 10 月 17 日

0 投票

It looks like you need the Unit Delay block.

カテゴリ

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

質問済み:

2011 年 10 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by