我使用PyVISA訪問我的Keithley 2701 DMM上的通道,我在通道102和103上有TC。使用「READ?」時我只是從我的渠道之一不能同時得到的值:貝婁是我的代碼:PyVISA和Kethley 2701只能從一個通道獲得結果
from pyvisa.vpp43 import visa_library
visa_library.load_library("/Library/Frameworks/Visa.framework/VISA")
import visa
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('TRAC:CLE')
keithley.write("INIT:CONT OFF")
keithley.write("TRIG:sour IMM")
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?")
和我的結果是: + 2.24654121E + 01℃,+ 61.898106SECS,+ 00239RDNG#
哪對我的一個頻道來說是正確的,但我想看到兩者的結果...任何幫助將不勝感激。