06-29-2010 05:52 PM - edited 06-29-2010 05:57 PM
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!
06-29-2010 10:46 PM - edited 06-29-2010 10:48 PM
07-01-2010 03:46 PM
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.
07-01-2010 04:16 PM
I think I'm missing the C file of my driver... Does anyone have Ke24xx.c here?
07-01-2010 04:35 PM
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?
07-01-2010 08:18 PM
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
07-02-2010 12:13 PM
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...
07-03-2010 09:08 AM
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.
07-06-2010 12:33 PM
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?
07-06-2010 12:50 PM
CVI2009 does no longer support Borland, so no reason to search