Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I'm using a Keithly Electrometer and trying to use an OPC? query

Hi, I'm trying to control a Keithly 6517B to profile a device with the voltage source sequencing a set of values and measuring the current flow.

The initial setup is fine, I'm writing visa commands to it and the electrometer is setting up its voltage source and will start it's sequence, but I everytime I try to read from it, it stops responding. I'm trying to use a *OPC? query to wait for the completion of the measurement - which is where the trouble arises. Its manual recomends using OPC monitor its activity and warns of sending commands while its busy. I can successfully read a *IDN? query and get a good response.

In the block diagram I've posted the while loop is just for testing and has no end - it should show me when the instrument has finished by returning a string.

0 Kudos
Message 1 of 3
(3,125 Views)

Hi did you search in ID net

A lot of what you want is available there in the form of a driver for the 6517A. Probably works also for the B.

It is not perfect but much better tahn having all gpib calls directly in your program.

greetings from the Netherlands
0 Kudos
Message 2 of 3
(3,119 Views)

thank you Albert

0 Kudos
Message 3 of 3
(3,107 Views)