Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Serial read issues

Solved!
Go to solution

Hi,

I am using LabView to read the resistance values from an AC Resistance bridge using the VISA commands basically copied and pasted from the Basic Serial Read and Write.vi and am currently running into an error:

VISA: (Hex 0xBFFF006C) An overrun error occured during transfer. A character was not read from the hardware before the next character arrived.

I was wondering how to fix this as well as turn the outputs of the RVAL command into a double.

Cheers

0 Kudos
Message 1 of 4
(3,335 Views)
Solution
Accepted by topic author Pontigre

Read more than 2 characters during your VISA Read.  I typically use some number large enough to handle most situations (200).  You might be leaving the termination characters and others behind which may be causing this issue as you send the next request to the instrument.  The VISA Read should stop upon receipt of a termination character. 

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 2 of 4
(3,286 Views)

What sensor are you using?  Hard to give any real advice without knowing the communication protocol.  This information is typically in the manual.


GCentral
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 3 of 4
(3,274 Views)

Thanks! That seems to get rid of the error! 

0 Kudos
Message 4 of 4
(3,272 Views)