I have 1512 data points and i am using a buffer with length 42112. I would like to go back to my 1512 data points. I am using a cascading buffer of length 1512 but the output starts from the 224th point. I understand that the problem arises due to the fact that the first buffer (42112 length) is not divisible by a whole number with the initial input data length of 1512.
I then thought of using a buffer which its size would be divisible by both numbers. Therefore now my setup is: Data (length 1512) --> Buffer (length 42112) --> Buffer (length 1137024). This second buffer is divisible by a whole number with both: 1137024/1512 = 752 1137024/42112 = 27. I am still getting an output on the second buffer starting with the 224th point. I am a bit baffled as to why this is happening as it looks like the buffers are not operating as i would expect them to do.
Why is this happening in both cases?
I am not very sure if the use of another buffer after the first one (lenght 42112) is the solution to going back to 1512 data points. Moreover, i know that what i am doing looks very bizarre. The data from workspace and first buffer (length 42112) are part of a transmit signal that i cannot alter their length in any way. The data after the buffer undergoes further processing before needing to go back to 1512 data points. The simulink model that i am working on and attaching is just a simplification of a bigger model.
Is there any other way of going back to the initial 1512 data points? I am sure that i am missing something that i haven't thought.
Thank you in advance,