Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

serial communication visa read

When I read the visa in serial communication, the data comes in and the data is broken in the middle. Is this because of the difference in communication speed?
There was a delay before reading the buffer, and a byte read as a property.

 

시리얼 통신에서 비자 읽기를 할 때, 데이터가 들어오다가 중간에 데이터가 깨져서 들어오는데 이것이 통신 속도의 차이 때문인가요?
버퍼를 읽기전에 딜레이도 걸었고 프로퍼티로 바이트 읽는 것도 걸었습니다.

0 Kudos
Message 1 of 2
(2,973 Views)

@wkdxogns13 wrote:

There was a delay before reading the buffer, and a byte read as a property.


DO NOT USE THE BYTES AT PORT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (still not enough emphasis)

 

The Bytes At Port introduced weird race conditions like what you are seeing.  What instrument are you trying to communicate with?  What is the message protocol?  Please share any code you have.  Then we might be able to help you.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,836 Views)