08-24-2005 11:16 AM
08-25-2005 06:14 AM
Hi tbob,
my communication is already working with hardware handshaking RTS/CTS. This is my procedure for every command I send:
1. Open VISA session and configure serial port
2. Send Command and read until I find the expected bytes to be received. I have inside a TimeOut. Always after a VISA Read I can see the sent bytes and the received bytes.
3. Close VISA session
The computer has a serial buffer, isn't it? The thing is that I'm sending one instruction working OK, afterwards the equipment is sending me data during 10 or 20 seconds that I don't need at all but I read it anyway to avoid filling the computer buffer and then I send a Stop command. The problem always ocurres at this point but not always. During those 10 or 20 seconds I was not reading data before and the problem was appearing, but now the problem should have dissapeared and it has not.
What happens if the equipment send me all the time data and in the meanwhile I open visa session, send data and read it and close it? Does this procedure affects to the communication?
08-25-2005 11:27 AM