LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA -1073807312 error(ERROR ABORT) in VISA READ

Hello,
Running Labview 6.1 winXP.
Have a program that amongst other things regularly communicates via the COM PORT to an external device. Works well, except every so often(I would say every 1/10 attempts), I get a -1073807312 error in the VISA READ vi. According to the documentation this is a ERROR_ABORT. A possible reason is given as user abort.
There is no user intervention during communication.
Any idea what could be causing this?

Thank you for the help.
0 Kudos
Message 1 of 5
(3,728 Views)
Hi,
check if "termination character" enabled or not. May be you receive termination character which aborts the communication.

Good luck.

Oleg Chutko.
0 Kudos
Message 2 of 5
(3,728 Views)
Hi, thanks for the speedy reply

I am pretty sure the termination character is disabled. I use the standard VISA CONFIGURE SERIAL PORT vi. There I set ENABLE TERMINATION CHARACTER to FALSE. However I only do this when my program initializes. Should I be doing this before every attempted serial communication?

And if it was TERMINATION character causing the problem why do I get an error?(Surely then I should have a successful READ with incomplete data)

Thanks again for the help.
0 Kudos
Message 3 of 5
(3,728 Views)
Try to check your communication with this nice software:

SysInternals PortMonitor:
http://www.sysinternals.com/ntw2k/freeware/portmon.shtml
(disclaimer: I'm not sure how it works under WinXP)
0 Kudos
Message 4 of 5
(3,728 Views)

Run NI-Spy in the background. Check for any calls to viTerminate, which can be used to abort a VISA read, which will in turn return a User abort message. Also unless you have multiple VISA sessions doing I/O at the same time, try changing your VISA VIs to synchronous VIs (right click and select "DO I/O Synchronously").
NI Spy Tutorial

0 Kudos
Message 5 of 5
(3,728 Views)