09-17-2009 08:07 AM
Hello All,
I am trying to communicate with Keithley 619 electrometer/multimeter using GPIB. It is a dual channel instrument with channel A and channel B. I am giving specifing the primary address of the instrument correctly. The primary address for this is 6 which corresponds to following DIP switch positions,
A1 A2 A3 A4 A5
0 1 1 0 0
I am using the channel A which corresponds to secondary address 1.
There is another DIP switch "A6". Could you please tell me the function of that?
It will be highly helpful for me if anyone of you could please tell me how to specify the secondary address or if one could please provide me the required driver for the instrument.
Thank you.
09-17-2009 02:58 PM
09-20-2009 11:58 PM
Hello Albert Geven,
Thanks for your reply.
When I was trying to see my instrument through MAX, it is saying "no instrument found" even after specifying the primary address of the instrument.
-Shyam
09-21-2009 12:16 PM
09-21-2009 04:16 PM
The 619 is old... It is not 488.2 so Max may not be able to deal with it well. I suggest you download the manual to get a bit more familiar with the programming. If you look at the manual you can see that the secondary address are fixed so you can't change that.
You can specify a secondary address with normal VISA addressing, so if you are using GPIB bus 0. To address Channel A it would be
GPIB0::6::1::INSTR and to address the status request for that channel it would be GPIB0::6::3::INSTR.
Each command must be followed by an "X" command to actually trigger it and make it function.
Depending on the trigger mode you set with the "T" command you may need to set "unaddressing" and "readdressing" options for this device since it won't respond until separately addressed to talk.
I think there is a switch that will make the unit "Talk Only" and ingnore input commands and just spit out data continuously. This is very disruptive to a GPIB bus with a controller and mostly for the original use of going directly from measurement to printers. Try to avoid this mode. RTFM. (Read The Fine Manual).
09-25-2009 08:05 AM
@Albert,
I am student i need your help can i get ur mail id related to Gpib and labview?
09-25-2009 10:16 AM
SLG wrote:Hello Albert Geven,
Thanks for your reply.
When I was trying to see my instrument through MAX, it is saying "no instrument found" even after specifying the primary address of the instrument.
-Shyam
When you do a scan for instruments, there is not a way to specify the primary address so whatever you have done, it's wrong. Please explain what you did to specify an instrument address or restore the system to whatever state it was before you did this.
09-28-2009 11:03 PM
Dear Scott Hannahs,
Thank you for your valuable suggession. I will try that out.
Regards,
Shyam
09-29-2009 11:44 PM
Dear Scott Hannahs,
Greetings.
I have tried that and it works. Now I am able to see my instrument. Sould I write the programme to interface the instrument in VISA? If it is so, Could you please tell me somthing more about VISA programming?
Thanks once again.
-Shyam
09-30-2009 08:48 AM
Simple use the VISA read and write icons instead of the GPIB ones. It is a good programming practice to encapsulate your reading and writing to a single VI.
The only difference between the old traditional GPIB and VISA operations is how you specify GPIB addresses. Instead of a single number and a bus number, you need to specify that it is GPIB as well. That is why I gave an address of GPIB0::6::1::INSTR to use. That would be parsed as
Use GPIB protocol and hardware
Use Bus # 0
Use Primary address 6
Use Secondary Address 1
Treat the address as an Instrument type
It is much more flexible way to communicate with instruments using different protocols.
As a programming policy do *not* have "Reads" and "Writes" scattered all over your diagram. If the code is structured correctly there will be one VI that will "write" possibly followed by a "read" operation. Then you can easily change the internals for this VI and add debugging info if necessary.