Without knowing what hardware you are using, your wiring setup, nor what you are communicating with, it will be difficult to provide specific advice. However, the error number you are receiving is typically associated with a timeout indicating that the VISA Read function did not receive the requested number of bytes in the time you allocated to it. Several simple mistakes can cause this behavior. Generic debug information below:
Thanks a lot for the reply.
I am using Rigol M300 Data Acqusition System. I am communicating over LAN.
I tried all the ways mentioned in the above link, but I am not able to solve this.