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.

Answers (1)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Asked:

on 16 Oct 2011

Community Treasure Hunt

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

Start Hunting!