LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Solved!
Go to solution

Hello GerdW,

 

I am attaching the VI, which is not working, as I am not able to receive any string but getting the overrun error.

 

What changes should I make in this VI.

 

Thanks

0 Kudos
Message 21 of 27
(2,482 Views)

How is the data in your barcode formatted?  Is it all ASCII data that ends with an Carriage Return or a Linefeed?  Is it binary with a set number of bytes?  There are many problems with your code, but we need to know exactly what you are trying to read in order to provide any real help.



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 22 of 27
(2,467 Views)

Hi CrossRulz,

ASCII data is being read w/o any linefeed or carriage return, but 12 digit alpha numeric code is to be scanned.
Actually, barcode of a unit is being scanned at initial station(1st station) and oil is to be filled  and there are 3 test beds where some tests are to be performed after scanning the barcode of unit at respective stations.

At 1st station, units for testing keep coming so I need to add them in an array as soon as I scan it. And later at Test beds after scanning I search them again from created array of barcodes (at 1st station) and start testing for respective unti.

 

Thanks.

0 Kudos
Message 23 of 27
(2,458 Views)

Hello

 

Decided not to open another thread and rather revive a dead one.

 

I get the same error, but only on the very first read, as if the buffer was already full.

In the attached VI i started doing reads and buffer flushes in configure and shutdown tab in order to fix this, but on first read i still get an overrun error. All the subsequent reads are fine, i've let it run for 2 days and didn't get another error, i only get an error on the first read.

 

The sensor outputs data about once a second.

 

Thanks for your help.

0 Kudos
Message 24 of 27
(1,843 Views)

1. You should not be using a Timed Loop.  Just use a normal While loop.  Add the delays only when you need to (the Idle state, when in the Read state and there is no data available).

2. If you are going to flush the buffer, you should do that before your initial read.

3. I wouldn't clear the buffer if there is 1 byte available.  You could have checked it right when a message started, so you should attempt to read.



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
Message 25 of 27
(1,804 Views)

2. I did buffer flushes wherever i could (after configuring, if too many bytes in buffer, at the shutdown etc...)

 

In the end i took your original solution to this post and redid the whole code in it's likeness and... it works. Thanks for helping 🙂

Still don't understand why i got the overrun error in original code tho.

0 Kudos
Message 26 of 27
(1,785 Views)

Hi Aero,

 


@AeroSoul wrote:

Still don't understand why i got the overrun error in original code tho.


Because of the delays in your code…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 27 of 27
(1,782 Views)