If you synchronize reader and writer, you risk losing determinism in the writer loop.
If the reader loop on your host PC is faster than the writer loop on your RT engine, you won't lose any data. Try reducing the wait period in the reader loop to something less than 10ms.