AnsweredAssumed Answered

Pyvisa programming output not showing for DMM 34470A

Question asked by nitu on Aug 17, 2015
Latest reply on Aug 18, 2015 by nitu
I have written the following code using scpi and pyvisa for automating the temperature of 2 wire thermister connected with DMM 34470A.


import visa
import numpy  as np
rm =visa.open.ResourceManager('@py')
digital_multimeter = rm.open_resource("TCPIP0:186:129:300:243::inst0::INSTR")

digital_multimeter.timeout= 5000
number_of_readings =1

digital_multimeter.wrote("*cls")
digital_multimeter.write("*IDN")
print digital_multimeter.read()

#configuring instrument

digital_multimeter.write("CONF:TEMP THER")
digital_multimeter.write("TEMP:TRAN:THER:TYPE 5000")
digital_multimeter.write("TEMP:TRAN:THER:POW:LTM ON")
digital_multimeter.write("SAMP:COUN %d" %number_of_readings)
print "readingtemp of thermister"
print digital_multimeter.read()

digital_multimeter.close()
print "complete"

after printing the IDN of device, it is only printing : reading temp of thermister" but it is not printing the temperature showing into the device.


I am new to this programming. Please help me to correct my code and get the desired output.  

Outcomes