that is definitely a possibility, but first i just want to be able to develop the above code outline so the correct data is being communicated and in a timely manner.
Pretend there is no communication issue for now, what kind of "handshake" would you do to ensure the last 500ms of the slave are being compared to the last 500ms of the master?