Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about the basic of RS-232

Dear all,

Recently, I have worked RS-232 communication with a commercial instrument from Inficon.
During the work, I have several problems which had resoved but didn't understood the solution.

1. In reading a responsed data, I got to know the very correct size of data byte should be written in VISA Read function.
If the byte was less than the correct value, there is a flow of data stream.
(In this case, I thought there remained some unread data in the commnuication.)
In the case of writting a higher value, the response time was very slow (about 1 sec. delay for the next command).
Why the response time was so slow even if the correct data could be read?

2. In my instrument, the termination character is , ascii code #6, Positive Acknowledgement.
But, as you may know well, the character could be changed, like \r or \r\n, depending on a instrument.
Is there some universal termination character which could be used in every insturment?

3. In writing RS-232 program, could you explain me when I can use other speicial characters, like "\":#2, "\":#21, or "\":#10.

Thank you in advance.

Lee
0 Kudos
Message 1 of 2
(2,636 Views)
0 Kudos
Message 2 of 2
(2,624 Views)