Decode digital I/O pin states from a Client interface

When accessed (continuously reading from 30003 realtime port) from a client interface using a C# program. The values of the digital PINs are at times wrong for me(junk data). We seriously doubt that the lack of clarity from the data sheet seems to be a problem. So can you provide us with a solution to decode the states of digital Input and Output pins from a client interface to monitor it from another system. Any solution or help would be of great help.

Thanks in Advance