Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

BK Precision XLN3640 buffer error

Solved!
Go to solution

Hello, using the certified drivers to control a DC power supply.  Code throws the error code: 1073807252 in VISA Read.  Overrun error during transfer.  Character not readbefore next character arrived.  If I accept the error and restart the vi, runs smoothly (mostly)  Error is generally thrown in the initialize vi, but always when a buffer read is performed.  Have tried increasing bugger size, but no solution.  A library is attached.

Thanks for any suggestions.

Chris

0 Kudos
Message 1 of 5
(2,756 Views)

bonnerupc,

 

Here is an article that describes some troubleshooting steps for a similar error:

Serial Read Visa Error

Putting in a delay to allow the serial port enough time to configure itself is a good step to try.

 

Anson K

Applications Engineer

National Instruments

0 Kudos
Message 2 of 5
(2,724 Views)

Thank you Anson.

 

Chris

0 Kudos
Message 3 of 5
(2,715 Views)

Some instruments take longer to initialize prior to being able to process data.  After initialization, try sending the following query:

OUT?\n

When the instrument has completed initialization, it will then process the Output query which should default to the off-state during rest/initialization and respond with '0'.  Now the instrument should be ready to address the rest of your programming needs.

 

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 4 of 5
(2,706 Views)
Solution
Accepted by topic author bonnerupc

Thanks for the suggestion.  However, it seems there are random bits hanging around in the buffer after initialization (strange) and was still getting errors on the On query.  SOOO, flushed the transmit and receive buffer immediately after initialization and that seems to be the ticket.  I didn't even suppose that post port set-up random bits would be cluttering the buffer.

 

Anyway, problem solved...appreciate your help.

Chris

0 Kudos
Message 5 of 5
(2,672 Views)