Sorry .. I should have been more specific. I am getting the error when I access a GPIB device. The sample code provided works fine for COM1 and LPT1, but any device attached to my PCI-GPIB controller gives me the error (-1073807299, or 0xBFFF003D).
I am using the latest GPIB driver (2.42).
I tried on a different machine and got the same result. (It's also the same type of controller, a PCI-GPIB).
I spoke w/ a NI application engineer and he was not able to reproduce the problem. It worked fine for him. I then went through and completely removed all LabVIEW, VISA, and GPIB software and reinstalled. I still had the same result. I can see the error with NI Spy:
> 1. VISA Flush I/O Buffer ("GPIB0::10::INSTR", 16)
> Process ID: 0x00000A04 Thread ID: 0x00000B2C
> Start Time: 12:50:42.022 Call Duration: 00:00:00.016
> Status: 0xBFFF003D (VI_ERROR_INV_MASK)
Ideas?
----------------------------------------------------------------------- | | |
Mark Hary | Sensing Systems LLC |
mark.hary@sensingsystems.com | 2755 Campus Drive, Suite 230 |
T 650.341.5550 x104 | San Mateo, CA 94403 |
F 650.341.5556 | http://www.SensingSystems.com |