04-17-2018 05:52 AM
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
Solved! Go to Solution.
04-18-2018 05:00 PM
bonnerupc,
Here is an article that describes some troubleshooting steps for a similar 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
04-19-2018 04:49 AM
Thank you Anson.
Chris
04-20-2018 09:57 AM
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.
04-24-2018 04:54 AM
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