Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

keithley 2182a data acquire with RS-232 cable

KUSB and KPCI DAQ Data Acquisition Products
Post Reply
j.sidhu
Posts: 7
Joined: August 4th, 2015, 9:35 pm
Country: India

keithley 2182a data acquire with RS-232 cable

Post by j.sidhu » August 4th, 2015, 9:52 pm

Hello
Can anyone help to acquire data from keithley 2182 with RS-232 or other. Can Excelinx or KickStart solve my problem?

thanks
J Sidhu

Dale C
Keithley Applications
Keithley Applications
Posts: 2849
Joined: June 10th, 2010, 6:22 am
Country: United States
Contact:

Re: keithley 2182a data acquire with RS-232 cable

Post by Dale C » August 5th, 2015, 10:29 am

Neither Excelinx or Kickstart support the Model 2182A Nanovoltmeter.
So you would have to have some programming language like VB, Labview, MatLab to control the 2182A.
Acquiring data just takes the :READ? command.

j.sidhu
Posts: 7
Joined: August 4th, 2015, 9:35 pm
Country: India

Re: keithley 2182a data acquire with RS-232 cable

Post by j.sidhu » August 5th, 2015, 11:16 am

Thanks Dale
Labview and Matlab are paid software. Is there any open source software? From somewhere i have found a program lines to show keithley data on the computer screen (attached). Anyhow Can i use it? Actually i want to store keithley 2182a data (voltage V1 and V2 simultaneously ) in excel format.
Regards
J Sidhu
Attachments
demo_rx.c
(1.23 KiB) Downloaded 1488 times

Dale C
Keithley Applications
Keithley Applications
Posts: 2849
Joined: June 10th, 2010, 6:22 am
Country: United States
Contact:

Re: keithley 2182a data acquire with RS-232 cable

Post by Dale C » August 5th, 2015, 11:29 am

How about the 6220DEMO software. That controls both the 6220 and 2182A.
Maybe that will help?
Here is the link to the software on the KI site.
http://www.keithley.com/support/keidoc_ ... e=Software

j.sidhu
Posts: 7
Joined: August 4th, 2015, 9:35 pm
Country: India

Re: keithley 2182a data acquire with RS-232 cable

Post by j.sidhu » August 5th, 2015, 10:23 pm

Hi Dale
I installed the software available at link you mentioned. it controls 2182a through 6220/6221, But i have only 2182a. How can i set to measure only data from KI2182a.
thanks
J Sidhu

brian.d.smith
Keithley Applications
Keithley Applications
Posts: 402
Joined: June 10th, 2013, 6:00 am
Country: United States

Re: keithley 2182a data acquire with RS-232 cable

Post by brian.d.smith » August 6th, 2015, 5:11 am

You can use python.

Below is pasted a python program to read data from a 2230 power supply which is also a SCPI instrument. Essentially, python performs mostly VISA writes and a few reads. You need to install python, pyvisa and NI VISA. You would replace the USB statement with something like A = visa.instrument("GPIB::17")

import visa
import time
A = visa.instrument("USB0::0x05E6::0x2230::9010254::INSTR")
measurement = 0
voltage = 0
A.write("APPLY CH1," +str(voltage) +",0.1")
A.write("APPLY CH2," +str(voltage) +",0.1")
A.write("APPLY CH3," +str(voltage) +",0.1")
voltage=0.40
voltage2=0.50
voltage3=0.60
A.write("OUTP 1")
A.write("APPLY CH1," +str(voltage) +",0.2")

A.write("APPLY CH2," +str(voltage2) +",0.2")
A.write("APPLY CH3," +str(voltage3) +",0.2")
#time.sleep(0.55)
#A.write("MEAS:CURR")
time.sleep(0.78)
for i in range(100):
#A.write("MEAS:CURR")
measurement = A.ask("FETC:CURR? ALL")
print voltage,measurement
voltage = 0
A.write("APPLY CH1," +str(voltage) +",0.1")
A.write("APPLY CH2," +str(voltage) +",0.1")
A.write("APPLY CH3," +str(voltage) +",0.1")

j.sidhu
Posts: 7
Joined: August 4th, 2015, 9:35 pm
Country: India

Re: keithley 2182a data acquire with RS-232 cable

Post by j.sidhu » August 7th, 2015, 11:54 pm

Thanks Smith, absolutly You tell me what i need.
I have used python, pyvisa and NI VISA. And able to acquire data from Keithley 2182a. But why there is time delay more than set by time.sleep(). The program lines are:
keithley.write(":SENS:CHAN 1")
voltageone = keithley.ask(":SENS:DATA:FRES?")
keithley.write(":SENS:CHAN 2")
voltagetwo = keithley.ask(":SENS:DATA:FRES?")
time.sleep(2)
print voltageone, voltagetwo

Is there any need to re-write/improve the program? Or any other solution.

J Sidhu

brian.d.smith
Keithley Applications
Keithley Applications
Posts: 402
Joined: June 10th, 2013, 6:00 am
Country: United States

Re: keithley 2182a data acquire with RS-232 cable

Post by brian.d.smith » August 9th, 2015, 1:44 pm

The time delay is most likely from NI VISA, from Windows and from PYVISA. There are many layers of software between the 2182A and the output to your computer monitor. I do not think you can reduce the time delay unless you write your own drivers.

This setup is not a real-time data acquisition system. It is a measurement system.

Post Reply

Return to “Keithley DAQ Data Aquisition Products”

Who is online

Users browsing this forum: No registered users and 0 guests