• Re: In Simulink,how to Store data in Buffer?

    From Endika Agirre@21:1/5 to All on Wed Nov 9 02:01:42 2022
    El domingo, 22 de junio de 2008 a las 14:59:51 UTC+2, Rick Rosson escribió:
    Hi Rajesh,
    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
    Hi, the buffer block has another function.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)