LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Keithley 2420 GPIB LabWindows CVI SCPI/Driver help

Hello everyone. I have a Keithley 2420 source meter. I would like to only use it to "READ voltage" in a LabWindows CVI (2009) program. I am very new to the programming in CVI but am fairly experienced in programming in general. I looked for "Drivers" for Keithlety 2420 but there is no drivers on the web available for LabWindows CVI 2009 for it. So I decided to just use SCPI commands. The commands for this instrument can be found in the manual here (PDF) under chapters 16 and 17. I am using an Agilent 82357A USB to GPIB cable to connect to this device. My problem is that I don't know how to start this. What are the steps to write these commands? How can I communicate to the device via LabWindows CVI? I believe there should be some sort of initialization first... How should I do that? How can I send commands and "READ" the response? If anyone has some sort of source code for this I would greatly appreciate them sharing it or a portion of it with me.

 

Any input would be greatly appreciated!

0 Kudos
Message 1 of 14
(7,056 Views)

Keithley lists drivers for LabVIEW, for CVI, ad for C/C++, see e.g.  here

 

NI lists a driver here

 

Both sides could easily be found using a Google search for 'Keithley 2420'

0 Kudos
Message 2 of 14
(7,046 Views)

Thanks. Got the driver.

 

Now I am trying to "initialize" the device and get the error saying Undefined symbol '_Ke24xx_init@12' referenced in "Form.c". What does this mean? I don't even have that symbol in my "Form.c" file. All I have is:  

 

Ke24xx_init ("GPIB0::23::INSTR", &Ke2420Model, &Ke2420Handle);

//Ke2420Model and Ke2420Handle are static int.

0 Kudos
Message 3 of 14
(6,994 Views)

I think I'm missing the C file of my driver... Does anyone have Ke24xx.c here?

0 Kudos
Message 4 of 14
(6,989 Views)

The driver that I have has only the following files:

Ke24xx.h

Ke24xx.fp

ke24xx.lib

Isn't it supposed to have also a .C file?

 

 

0 Kudos
Message 5 of 14
(6,983 Views)

You need to add the Ke24xx.lib file to your project - that will fix the error. This driver doesn't ship with the source file (ke24xx.c) if you want this request it from Keithley: IntrumentDrivers@keithley.com

0 Kudos
Message 6 of 14
(6,973 Views)

I just added the driver to my project. Now it shows on the side as one of the files. I saved all, but still get the same error. I am including a screenshot so you can see my code...

18055i3B0F71C2B5CC887A

0 Kudos
Message 7 of 14
(6,947 Views)

The screenshot is very blurred but I get the jist of it and it looks good.

1. Hover over all the files in the tree and you should get a tooltip which shows the path to the file. Make sure the file is at that path location.

2. I believe in LabWindows you can select Broland or Micorosoft as the project type. Check what this is set for and make sure the ke24xx.lib is the correct one as there is one for MS and one for BC.

 

0 Kudos
Message 8 of 14
(6,920 Views)

The first step is done. All the files are in correct paths. As far as the second step, how can I change the project type from Broland to Micorosoft or vice versa?

0 Kudos
Message 9 of 14
(6,881 Views)

CVI2009 does no longer support Borland, so no reason to search Smiley Happy

0 Kudos
Message 10 of 14
(6,875 Views)