Hello,I am using VEE to control a RS232 equipment and the connection is good. The problem is I can control the equipment well but I don t know how to read data. I can see it have responded in the Serial debugging assistant, but no response when I use " read "in Vee.
Is someone can help with this?
Just as VEE problems are usually sequencing, IO problems (after connection) are usually due to lack of knowledge about what is being sent or what needs to be sent. The bus monitor is the first thing I usually suggest for IO issues like this.
In this case though the bus monitor isn't needed since you already have everything you need in your screenshots.
Your earlier problem was that you were comparing the SPU's binary write to an ASCII write in VEE. Same issue here: your SPU example reads binary values and your VEE example attempts to read ASCII so doesn't work. It times out looking for HEX values in ASCII format which never arrive. Your SPU screenshot shows that you send (Tx) 6 bytes and receive (Rx) 2 bytes. Hence your instrument is sending two bytes and you need to read two bytes.
try READ BINARY x BYTE ARRAY:2
Stan