Mercurial > ~darius > hgwebdir.cgi > pyinst
comparison anritsu_ms2034a_example.py @ 56:91b476ebc0f2
Run through 2to3
author | Daniel O'Connor <doconnor@gsoft.com.au> |
---|---|
date | Tue, 08 Dec 2020 14:00:45 +1030 |
parents | 9ce709b7da4b |
children |
comparison
equal
deleted
inserted
replaced
55:ad5942d22f78 | 56:91b476ebc0f2 |
---|---|
31 import scpi | 31 import scpi |
32 | 32 |
33 def test(r): | 33 def test(r): |
34 # ID instrument | 34 # ID instrument |
35 r.write('*IDN?') | 35 r.write('*IDN?') |
36 print "ID is " + r.read(5) | 36 print("ID is " + r.read(5)) |
37 | 37 |
38 # XXX: Don't do this, on this device it resets the ethernet settings (duuuh) | 38 # XXX: Don't do this, on this device it resets the ethernet settings (duuuh) |
39 # Reset to defaults | 39 # Reset to defaults |
40 #r.write("*RST") | 40 #r.write("*RST") |
41 | 41 |