LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Read won't return data in case of timeout?

Hello! 

I just want to verify if this is expected: when using VISA Read with eight bytes while the message coming in only has six bytes it causes a timeout and an error (VI_ERROR_ABORT). I can see in the IO Trace that the six-byte message is received, but it's not returned via the output of VISA Read.

 

Normal?

0 Kudos
Message 1 of 2
(927 Views)

@MaSta wrote:

Hello! 

I just want to verify if this is expected: when using VISA Read with eight bytes while the message coming in only has six bytes it causes a timeout and an error (VI_ERROR_ABORT). I can see in the IO Trace that the six-byte message is received, but it's not returned via the output of VISA Read.

 

Normal?


Yes, when VISA returns an error it won't remove the data from the incoming buffer. The data is still there and you should be able to read it with a properly configured VISA Read.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 2
(907 Views)