Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa read problem....

Hello sir

   I am trying to read a string of data from PC serial port using   Visa Read.... But  the the data at serial port  is 2500  and the data read by the serial visa Read is always 1024....  i try to read  it two times using two Visa read, then  i am missing some  data in between the two read....  can anybody suggest a better solution for me...........?

Thanks in advance

Dayaneeshya Thomas

IPR ,India

0 Kudos
Message 1 of 4
(3,439 Views)

Hi

 

Depending on your initialise of the serial port there can be several reasons.

1) you are asking for only 1024 characters, but I think you don't.

2) Or you have  end characters enbled and n endcharacter arrives after 1024 characters.

greetings from the Netherlands
0 Kudos
Message 2 of 4
(3,429 Views)

Thank your for reply

but the problem is that 

  ' Visa bytes at serial ports' shows that  2500   data ... after read i am getting only 1024 data...... 

Dayaneeshya Thomas

0 Kudos
Message 3 of 4
(3,408 Views)
As Albert said, you probably have the terminate enabled with the VISA Configure Serial Port (default setting) and the termination character is being read. With that set of conditions, it does not matter how many bytes you specify. Set the terminate to false and try it.
0 Kudos
Message 4 of 4
(3,396 Views)