From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Keithley 6514 query interrupted problem

I am trying to read a current from Keithley 6514 Electrometer. The current is really small so it takes a while for the electrometer to find the right range. I use a VISA Write to send "MEAS:CURR?" and a VISA Read followed immediately. I sometimes got error -410, which means query interrupted. Somehow VISA Read returned before the measurement was completed. How do I fix this?
0 Kudos
Message 1 of 2
(3,486 Views)
You may be able to configure the Electrometer to enable SRQ events. This way, the Electrometer could assert the SRQ line when it has completed the measurement. I believe with VISA you'll call viEnableEvent() for VI_EVENT_SERVICE_REQ. You'll need to send another string to the instrument to enabling SRQ events. That information should be in the manual from Keithley. You can then call viWaitOnEvent() to wait until the operation has completed.

Craig A
National Instruments Engineer
0 Kudos
Message 2 of 2
(3,486 Views)