Author Topic: Datron 1271 GPIB access useful measurements  (Read 502 times)

0 Members and 1 Guest are viewing this topic.

Offline View[+]FinderTopic starter

  • Supporter
  • ****
  • Posts: 208
  • Country: us
    • Sparks! A Learning Place for Curious Minds
Datron 1271 GPIB access useful measurements
« on: November 10, 2024, 05:26:53 pm »
For a variety of reasons, one might want to run the Datron 1271 from a remote location using GPIB. Maybe even over the internet . . ..
PTVISA and GPIB make the task easy.
Code: [Select]
import pyvisa
import time
visa = pyvisa.ResourceManager()
DT1271 = visa.open_resource('GPIB0::2::INSTR')
DT1271.timeout = 20000
DT1271.write('CLR PKPK')
DT1271.write('RESL5')
DT1271.write('DCV 10,RESL8,FILT_ON')
#DT1271.write('OHMS E2,RESL8,2W,FILT_OFF')
#DT1271.write('DCI E-3,RESL6,FILT_OFF')
for i in range(1,11):
    DT1271.write('AVG AV64')
    r = (DT1271.query('RDG?'))[:15]
    print (str(i) + ',' + r)
    time.sleep(1)
print (DT1271.query('*IDN?'))
DT1271.close()
The Datron manuals are essential (and available), however they are not searchable at the word level, only page-by-page.
Taking measurements is easier than more modern meters as Datron sets 'range' based on the value of the input and the mode of the measurement. A 10VDC source will use very much the same code as 100 Ohms or 10mA.
If there is a CAL script available, please identify source. External CAL is based on ZERO and a known full-scale reference for all settings (or even a single value CAL) and is easier than most.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf