Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

pyvisa, keithley 2701 multichannel read

Hello:

I have a Keithley 2701 with TC's attached to channels 102 and 103. I have been successful in logging data from one or the other channel but not both at the same time. Bellow is my code.

from pyvisa.vpp43 import visa_library

visa_library.load_library("/Library/Frameworks/Visa.framework/VISA")
import -
import time

keithley = visa.instrument("ASRL1")
keithley.write('*RST')
print keithley.ask('*IDN?')

keithley.write('TRAC:CLE')
keithley.write("INIT:CONT OFF")
keithley.write("TRIG:sour IMM")

keithley.write("SENSE:FUNC 'TEMP', (@102)")
keithley.write("TEMP:TRAN TC, (@102)")
keithley.write("TEMP:TC:TYPE K, (@102)")
keithley.write("TEMP:RJUN:RSEL INT, (@102)")

keithley.write("SENSE:FUNC 'TEMP', (@103)")
keithley.write("TEMP:TRAN TC, (@103)")
keithley.write("TEMP:TC:TYPE K, (@103)")
keithley.write("TEMP:RJUN:RSEL INT, (@103)")

keithley.write("TRIG:COUN INF")
keithley.write("ROUT:SCAN (@102,103)")
keithley.write("ROUT:SCAN:TSO IMM")
keithley.write("ROUT:SCAN:LSEL INT")

print keithley.ask("READ?")

My output from this is:

+2.24654121E+01 C,+61.898106SECS,+00239RDNG#

I really want to get both outputs from 102 and 103, should i be using READ?

Thanks.

--Vivek

0 Kudos
Message 1 of 5
(5,039 Views)

2701 is the mainframe. What is the plug-in board you are using?

Does the plug-in board have anything unusual about channels 2 and 3?

0 Kudos
Message 2 of 5
(5,033 Views)

The plug in board is a 7700 multiplexer. 

0 Kudos
Message 3 of 5
(5,030 Views)
I don't believe the Read? is quite correct. I dont have my pc handy to look at the LabVIEW driver but I remember additional data for multiple channels was required.

This really isn't a question for an NI board. I would suggest the manual or contacting Keithley.
0 Kudos
Message 4 of 5
(5,010 Views)

If you can't figure it out from the manual, suggest you should your code to the Keithley forum...

http://forum.keithley.com

 

0 Kudos
Message 5 of 5
(4,939 Views)