%function to test a different read out strategy
function [output] = RO_test(signal)
N = 128;

output = [];
k=0;

while (length(signal)-(k*N+N) >= 0)
    if (k == 0)
        x = [zeros(N,1);signal(1:N,1)];
        d = signal(1:N,1);
    else
        x = signal((k*N-N)+1:(k*N+N),1);
        d = signal((k*N+1):(k*N+N),1);
    end
    
    out = IO_test(x,N);
    output = [output out'];
    
    k = k+1;
end