Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

labview doesn't read all the data from serial buffer

My labview VI doesn't read all the ascii data from the serial port of a FISO instrument.
The serial reading works fine using hyperterminal. When I use the VISA functions I have no problem to write and read until the 5th and last line of the ASCII file created by the instrument (the VISA byte at port function counts 0 byte). The VISA read function can read the 5th line only in debbuging mode (the byte at port function counts 37 bytes). I tried to add wait time, buffer read size and to turn on/off termination char and/or "Serial End Mode for Reads" and VISA read until termination char is found, but it is the same: it doesn't read the last line. Suggestions?
0 Kudos
Message 1 of 3
(3,645 Views)
Can you post an simple example of the failure along with the a copy of the ASCII file that you're trying to read?
0 Kudos
Message 2 of 3
(3,645 Views)
I think I found the problem.
It's a limit of FISO instrument that takes more than 400ms to append the data (the last line of the ascii file) after the trigger command. Sending the download command before this delay probably cause the FISO to stop writing the ascii file.
When I used hyperterminal I sent commands manually, so they took a lot a time to be completed and sent. I wrote a file with the commands and sent it through hyperterminal: I had the same problem until I added a line delay of 400 ms.
0 Kudos
Message 3 of 3
(3,645 Views)