Thank you for answering
I will read by Simulink.
I am reading an absolute encoder. this absolute encoder has 10 outputs which I am reading through 10 inputs of Arduino in Simulink.
when I turn the encoder the outputs change. so if Simulink did not read all input at the same time the sum of the value of output will be rung for a short time and after it will be true. for example, assume now below output is on:
so the value of encoder is (01+02+04+08+016+032+064+1128+0256+0512) = 128
when i will turn absolute and assume next arrangemnet is as below:
now the value is 256
but because of not reading at the same time all input,
in a short time, Simulink read Pin7 = 1 and pin8 =1 so the output is 128+256=384 but after for example 0.1 sec the value goes to 256.
as I said before there was a block "Arduino pacer" and this block does this job. but now in the new version of the Arduino library, I don't find this block.