Hi Rajesh,Hi, the buffer block has another function.
Do you have just Simulink, or do you also have the Signal Processing Blockset?
If you have Signal Processing Blockset, you might be able to use the "Buffer" block to process your signals as Frames instead of individual samples.
Rick
"rajesh " <rajes...@kpitcummins.com> wrote in message news:g3l6fu$f4b$1...@fred.mathworks.com...
Dear All,
I am getting two inputs(A and B) from a signal
builder and want to store continuously in a Buffer of size
10, which will accumulate both the inputs right from the top
of the buffer.The buffer can be divided into two columns,
one column will hold the data from input A and other data
from input B.
E.g.first data of inputs A & B will go to buffer 1 position,
next data will go to buffer 2 position and so on and so forth.
At the same time,While filling the buffer, i have to take
the average of the A&B data of all the buffer positions( 1
to 100).
Like this, my buffer will get filled till 100 position and
during each buffer filling, I will calculate the average..
Now,when the next data is coming, it should go to buffer 1
position again( which will overwrite the previously stored
data) and remaining all buffer 2 to 100 positions should
contain the same previous data. Next data will again
overwrite the buffer 1 position and so on and so forth.
How can I implement this in Simulink?
Hope I have put my question properly.
regards,
Rajesh
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 429 |
Nodes: | 16 (2 / 14) |
Uptime: | 113:59:30 |
Calls: | 9,055 |
Calls today: | 2 |
Files: | 13,395 |
Messages: | 6,016,298 |