Pkk,
Thanks for sending a SPY log. I can see that you're writing 92 bytes ".....c..........!f.....D...................................................................." (each "." is actually HEX 00)
I have a feeling that this is not the string that you have been intending to write unless you have an instrument with which I'm not familiar. Also, this string is not terminated with a special character (such as line feed or carriage return) that most instruments need so that they can detect the end of a command.
Here is a
LINK to more information about these errors.
Alan
Applications Engineer
National Instruments