Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VI_ERROR_CONN_LOST (0xBFFF00A6) after reconnecting a session

Hello,

 

with VISA 5.1.1. I am sometimes running into the problem that viWrite returns with error VI_ERROR_CONN_LOST (0xBFFF00A6). This happens only after our application was running for several hours without problems and in the following situation:

 

- There is a VXI-11 session open to a device. I want to reboot this device and therefore send a remote command.

- Immediately after sending the command, I close the session

- I wait some fixed time until the device is up and running again

- I call viOpen with the same resource descriptor. This call returns without error.

- The next viWrite comes back with the above mentioned error code

 

I wonder whether our application is consuming some critical resources (memory, handles???) which may cause the problem. The problem is not always reproducible, sometimes the re-attach after reboot is working, but as soon as the error occurs the first time, it is never possible to re-attach successfully - until I restart our application.

 

Has anybody an idea what may cause this behavior?

 

Michael

0 Kudos
Message 1 of 2
(3,398 Views)

I have the same problem with using GPIB-USB-B to control my instruments. Any one have any solutions??

0 Kudos
Message 2 of 2
(3,129 Views)