Data logging from UR robot to PC

This is a tech note I wrote for datalogging from a UR robot to a PC. Example code available from the link. I would appreciate feedback on how it could be improved.

Uses URScript for socket connection.
C# PC example included.

Thank you.