-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhp3478a.py
877 lines (767 loc) · 27.9 KB
/
hp3478a.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
from prologix import prologix
from dataclasses import dataclass
from time import sleep
import datetime
class hp3478a(object):
"""Control HP3478A multimeters using a Prologix compatible dongle
Attributes
----------
addr : int
Address of the targeted device
gpib : prologix
Prologix object used to communicate with the prologix dongle
status : hp3478aStatus
Current device status
"""
addr: int = None
gpib: prologix = None
VDC = 1
VAC = 2
Ω2W = 3
Ω4W = 4
ADC = 5
AAC = 6
EXTΩ = 7
TRIG_INT = 1
TRIG_EXT = 2
TRIG_SIN = 3
TRIG_HLD = 4
TRIG_FST = 5
@dataclass
class hp3478aStatus:
"""Current device status
Attributes
----------
function : int
numeric representation of currently used measurement function:
1: DC Voltage
2: AC Voltage
3: 2-Wire Resistance
4: 4-Wire Resistance
5: DC Current
6: AC Current
7: Extended Ohms
see also: getFunction
range : int
numeric representation of currenly used measurement range:
1: 30mV DC, 300mV AC, 30Ω, 300mA, Extended Ohms
2: 300mV DC, 3V AC, 300Ω, 3A
3: 3V DC, 30V AC, 3kΩ
4: 30V DC, 300V AC, 30kΩ
5: 300V DC, 300kΩ
6: 3MΩ
7: 30MΩ
see also: getRange
digits : int
numeric representation of selected measurement resolution:
1: 5½ Digits
2: 4½ Digits
3: 3½ Digits
Lower resoluton allows for faster measurements
see also: getDigits
triggerExternal : bool
External trigger enabled
calRAM : bool
Cal RAM enabled
frontProts : bool
Front/Read switch selected front measurement connectors
True = Front Port
freq50Hz : bool
Device set up for 50Hz operation. False = 60Hz.
autoZero : bool
Auto-Zero is enabled
autoRange : bool
Auto-Range is enabled
triggerInternal : bool
Internal trigger is enabled. False = Single trigger.
srqPon : bool
Device asserts SRQ on power-on or Test/Reset/SDC
Controlled by rear configuration switch 3
srqCalFailed : bool
Device asserts SRQ if CAL procedure failes
srqKbd : bool
Device asserts SRQ if keyboar SRQ is pressed
srqHWErr : bool
Device asserts SRQ if a hardware error occurs
srqSyntaxErr : bool
Device asserts SRQ if a syntax error occurs
srqReading : bool
Device asserts SRQ every time a new reading is available
errADLink: bool
Error while communicating with aDC
errADSelfTest: bool
ADC failed internal self-test
errADSlope: bool
ADC slope error
errROM: bool
ROM self-test failed
errRAM: bool
RAM self-test failed
errChecksum: bool
Self-test detecten an incorrect CAL RAM checksum
Re-Asserted every time you use an affected range afterwards
dac: int
Raw DAC value
fetched: datetime
Date and time this status was updated
"""
function: int = None
range: int = None
digits: int = None
triggerExternal: bool = None
calRAM: bool = None
frontPorts: bool = None
freq50Hz: bool = None
autoZero: bool = None
autoRange: bool = None
triggerInternal: bool = None
srqPon: bool = None
srqCalFailed: bool = None
srqKbd: bool = None
srqHWErr: bool = None
srqSyntaxErr: bool = None
srqReading: bool = None
errADLink: bool = None
errADSelfTest: bool = None
errADSlope: bool = None
errROM: bool = None
errRAM: bool = None
errChecksum: bool = None
dac: int = None
fetched: datetime = None
status = hp3478aStatus()
def __init__(self, addr: int, port: str=None, baud: int=921600, timeout: float=0.25, prologixGpib: prologix=None, debug: bool=False):
"""
Parameters
----------
addr : int
Address of the targeted device
port : str, optional
path of the serial device to use. Example: `/dev/ttyACM0` or `COM3`
If set a new prologix instance will be created
Either port or prologixGpib must be given
by default None
baud : int, optional
baudrate used for serial communication
only used when port is given
921600 should work with most USB dongles
115200 or 9600 are common for devices using UART in between
by default 921600
timeout : float, optional
number of seconds to wait at maximum for serial data to arrive
only used when port is given
by default 2.5 seconds
prologixGpib : prologix, optional
Prologix instance to use for communication
Ths may be shared between multiple devices with different addresses
Either port or prologixGpib must be given
by default None
debug : bool, optional
Whether to print verbose status messages and all communication
by default False
"""
if port == None and prologixGpib == None:
print("!! You must supply either a serial port or a prologix object")
self.addr = addr
if prologixGpib is None:
self.gpib = prologix(port=port, baud=baud, timeout=timeout, debug=debug)
else:
self.gpib = prologixGpib
def getMeasure(self) -> float:
"""Get last measurement as float
Returns
-------
float
last measurement
"""
measurement = self.gpib.cmdPoll(" ", self.addr)
if measurement is None:
return None
return float(measurement)
def getDigits(self, digits: int=None) -> float:
"""Get a human readable representation of currently used resolution
Parameters
----------
digits : int, optional
numeric representation to interpret
If None is given the last status reading is used
by default None
Returns
-------
str|None
3.5, 4.5 or 5.5 for the current resolution
None for invalid numbers
"""
if digits is None:
digits = self.status.digits
if digits == 1:
return 5.5
elif digits == 2:
return 4.5
elif digits == 3:
return 3.5
return None
def getFunction(self, function: int=None) -> str:
"""Get a human readable representation of currently used measurement function
Parameters
----------
function : int, optional
numeric representation to interpret
If None is given the last status reading is used
by default None
Returns
-------
str|None
VDC for DC Volts
ADC for AC Volts
Ω2W for 2-Wire Resistance
Ω4W for 4-Wire Resistance
ADC for DC Current
AAC for AC Current
ExtΩ for extended Ohms
None for invalid numbers
"""
if function is None:
function = self.status.function
if function == 1:
return "VDC"
elif function == 2:
return "VAC"
elif function == 3:
return "Ω2W"
elif function == 4:
return "Ω4W"
elif function == 5:
return "ADC"
elif function == 6:
return "AAC"
elif function == 7:
return "ExtΩ"
else:
return None
def getRange(self, range: int=None, function: int=None, numeric: bool=False):
"""Get a human readable representation of currently used measurement range
Parameters
----------
range : int, optional
numeric range representation to interpret
If None is given the last status reading is used
by default None
function : int, optional
numeric function representation to interpret
If None is given the last status reading is used
by default None
numeric : bool, optional
If True return the maximum value as Float instead
of a human readable verison using SI-prefixes
Returns
-------
str|float|None
Maximum measurement value in current range
"""
if range is None:
range = self.status.range
if function is None:
function = self.status.function
if range == 1:
if function == 1:
if numeric:
return 0.03
else:
return "30mV"
elif function == 2:
if numeric:
return 0.3
else:
return "300mV"
elif function == 3 or function == 4:
if numeric:
return 30.0
else:
return "30Ω"
elif function == 5 or function == 6:
if numeric:
return 0.3
else:
return "300mA"
else:
return None
elif range == 2:
if function == 1:
if numeric:
return 0.3
else:
return "300mV"
elif function == 2:
if numeric:
return 3.0
else:
return "3V"
elif function == 3 or function == 4:
if numeric:
return 300.0
else:
return "300Ω"
elif function == 5 or function == 6:
if numeric:
return 3.0
else:
return "3A"
else:
return None
elif range == 3:
if function == 1:
if numeric:
return 3.0
else:
return "3V"
elif function == 2:
if numeric:
return 30.0
else:
return "30V"
elif function == 3 or function == 4:
if numeric:
return 3000.0
else:
return "3kΩ"
else:
return None
elif range == 4:
if function == 1:
if numeric:
return 30.0
else:
return "30V"
elif function == 2:
if numeric:
return 300.0
else:
return "300V"
elif function == 3 or function == 4:
if numeric:
return 30000.0
else:
return "30kΩ"
else:
return None
elif range == 5:
if function == 1:
if numeric:
return 300.0
else:
return "300V"
elif function == 3 or function == 4:
if numeric:
return 300000.0
else:
return "300kΩ"
else:
return None
elif range == 6:
if function == 3 or function == 4:
if numeric:
return 3000000.0
else:
return "3MΩ"
else:
return None
elif range == 7:
if function == 3 or function == 4:
if numeric:
return 30000000.0
else:
return "30MΩ"
else:
return None
def getStatus(self) -> hp3478aStatus:
"""Read current device status and populate status object
Returns
-------
hp3478aStatus
Updated status object
"""
status = self.gpib.cmdPoll("B", self.addr, binary=True)
#Update last readout time
self.status.fetched = datetime.datetime.now()
#Byte 5: RAW DAC value
self.status.dac = status[4]
#Byte 4: Error Information
self.status.errChecksum = (status[3]&(1<<0) != 0)
self.status.errRAM = (status[3]&(1<<1) != 0)
self.status.errROM = (status[3]&(1<<2) != 0)
self.status.errADSlope = (status[3]&(1<<3) != 0)
self.status.errADSelfTest = (status[3]&(1<<4) != 0)
self.status.errADLink = (status[3]&(1<<5) != 0)
#Byte 3: Serial Poll Mask
self.status.srqReading = (status[2]&(1<<0) != 0)
#Bit 1 not used
self.status.srqSyntaxErr = (status[2]&(1<<2) != 0)
self.status.srqHWErr = (status[2]&(1<<3) != 0)
self.status.srqKbd = (status[2]&(1<<4) != 0)
self.status.srqCalFailed = (status[2]&(1<<5) != 0)
#Bit 6 always zero
self.status.srqPon = (status[2]&(1<<7) != 0)
#Byte 2: Status Bits
self.status.triggerInternal = (status[1]&(1<<0) != 0)
self.status.autoRange = (status[1]&(1<<1) != 0)
self.status.autoZero = (status[1]&(1<<2) != 0)
self.status.freq50Hz = (status[1]&(1<<3) != 0)
self.status.frontPorts = (status[1]&(1<<4) != 0)
self.status.calRAM = (status[1]&(1<<5) != 0)
self.status.triggerExternal = (status[1]&(1<<6) != 0)
#Byte 1: Function/Range/Digits
sb1 = status[0]
self.status.digits = (sb1 & 0b00000011)
sb1 = sb1 >> 2
self.status.range = (sb1 & 0b00000111)
sb1 = sb1 >> 3
self.status.function = (sb1 & 0b00000111)
return self.status
def getFrontRear(self) -> bool:
"""Get position of Front/Rear switch
May also be used to easily determine if the device is responding
Returns
-------
bool
True -> Front-Port
False -> Rear-Port
None -> Device did not respond
"""
check = self.gpib.cmdPoll("S")
if check == "1":
return True
elif check == "0":
return False
else:
return None
def getCalibration(self, filename : str=None) -> bytearray:
"""Read device calibration data
Code based on work by
Steve1515 (EEVblog)
fenugrec (EEVblog)
Luke Mester (https://mesterhome.com/)
Parameters
----------
filename : str, optional
filename to save calibration to
file will be overwritten if it exists
by default None
Returns
-------
bytearray
Raw calibration data
"""
self.callReset()
self.setTrigger(self.TRIG_HLD)
check = self.getFrontRear()
if check is None:
print("Can not connect to instrument")
return None
self.setDisplay("CAL READ 00%")
p = 0
lp = 0
cdata = b""
for dbyte in range(0, 255):
din = self.gpib.cmdPoll(self.gpib.escapeCmd("W"+chr(dbyte)), binary=True)
cdata += din
p = (int)(dbyte/25.5)
if p != lp:
self.setDisplay("CAL READ " + str(p) + "0%")
lp = p
self.setDisplay("CAL READ OK")
if filename is not None:
fp = open("calibration.data", "wb")
for byte in cdata:
fp.write(byte.to_bytes(1, byteorder='big'))
fp.close()
sleep(1)
self.setDisplay(None)
self.callReset()
return cdata
def setAutoZero(self, autoZero: bool, noUpdate: bool=False) -> bool:
"""change Auto-Zero setting
Parameters
----------
autoZero : bool
Whether to enable or disable Auto-Zero
noUpdate : bool, optional
If True do not update status object to verify change was successful
by default False
Returns
-------
bool
new status of autoZero; presumed status if `noUpdate` was True
"""
setVal = 0
if autoZero: setVal = 1
self.gpib.cmdWrite("Z"+str(autoZero), self.addr)
if noUpdate:
if self.gpib.debug:
print(".. AutoZero changed to " + setVal + " without verification.")
return setVal
else:
self.getStatus()
if autoZero != self.status.autoZero:
print("!! Error while changing AutoZero - tried to set " + str(autoZero) + " but verification was " + str(self.status.autoZero))
elif self.gpib.debug:
print(".. AutoZero successfully changed to " + str(self.status.autoZero))
return self.status.autoZero
def setDisplay(self, text: str=None, online: bool=True) -> bool:
"""Change device display
Parameters
----------
text : str, optional
When text is None or empty device will resume standard display mode
as in show measurements
When text is set it will be displayed on the device
Only ASCII 32-95 are valid. Function aborts for invalid characters
Must be <= 12 Characters while , and . do not count as character.
consecutive , and . may not work
using . or , after character 12 may not work
Function aborts for too long strings
online : bool, optional
When True the device just shows the text but keeps all functionality online
When False the device will turn off all dedicated annunciators and stop updating
the display once the text was drwn. This will free up ressources and enable
faster measurement speeds. Using False takes about 30mS to complete. If the
updating is stopped for over 10 minutes if will shut down as in blank screen.
by default True
Returns
-------
bool
Wheather setting the text worked as expected
"""
if text is None or text == "":
# Reset display
self.gpib.cmdWrite("D1", self.addr)
if self.gpib.debug:
print("Display reset to standard mode")
return True
len = 0
for c in text:
if ord(c) < 32 or ord(c) > 95:
print("!! Character '" + c + "' is not supported")
return False
if c != "," and c != ".":
len = len+1
if len > 12:
print("!! Text too long; max 12 characters")
return False
cmd = "D2"
dt = ""
if not online:
cmd = "D3"
dt = " (updates paused)"
self.gpib.cmdWrite(cmd + text, self.addr)
if self.gpib.debug:
print(".. Display changed to '" + text + "'" + dt)
#@TODO we could check status/errors to catch syntax errors here
return True
def setFunction(self, function : int, noUpdate: bool=False) -> bool:
"""Change current measurement function
Parameters
----------
function : int
numeric function representation
you may also use the following class constants:
VDC,VAC,Ω2W,Ω4W,ADC,AAC,EXTΩ
noUpdate : bool, optional
If True do not update status object to verify change was successful
by default False
Returns
-------
bool
Whether update succeeded or not; not verified if `noUpdate` was True
"""
if function <= 0 or function > 7:
print("!! Invalid function")
return False
self.gpib.cmdWrite("F" + str(function), self.addr)
if not noUpdate:
self.getStatus()
if self.status.function != function:
print("!! Set failed. Tried to set " + self.getFunction(function) + " but device returned " + self.getFunction(self.status.function))
return False
elif self.gpib.debug:
print(".. Changed to function " + self.getFunction(function))
elif self.gpib.debug:
print(".. Probably changed to function " + self.getFunction(function))
return True
def setRange(self, range : str, noUpdate : bool=False) -> bool:
"""Change current measurement range
Parameters
----------
range : str|float
Range as SI-Value or float
Valid values:
A or AUTO to enable Auto-Range
30m,300m,3,30,300,3k,30k,300k,3M,30M
0.03,0.3,3,30,300,3000,30000,300000,3000000,30000000
Not all ranges can be used in all measurement functions
noUpdate : bool, optional
If True do not update status object to verify change was successful
by default False
Returns
-------
bool
Whether update succeeded or not; not verified if `noUpdate` was True
"""
newRange = None
newRangeF = None
if range == "30m" or range == 0.03:
newRange = -2
newRangeF = 0.03
elif range == "300m" or range == 0.3:
newRange = -1
newRangeF = 0.3
elif range == "3" or range == 3:
newRange = 0
newRangeF = 3
elif range == "30" or range == 30:
newRange = 1
newRangeF = 30
elif range == "300" or range == 300:
newRange = 2
newRangeF = 300
elif range == "3k" or range == 3000:
newRange = 3
newRangeF = 3000
elif range == "30k" or range == 30000:
newRange = 4
newRangeF = 30000
elif range == "300k" or range == 300000:
newRange = 5
newRangeF = 300000
elif range == "3M" or range == 3000000:
newRange = 6
newRangeF = 3000000
elif range == "30M" or range == 30000000:
newRange = 7
newRangeF = 30000000
elif range.lower() == "a" or range.lower() == "auto":
newRange = "A"
if newRange is None:
print("!! Invalid range")
return False
self.gpib.cmdWrite("R" + str(newRange), self.addr)
if not noUpdate:
self.getStatus()
if newRange == "A":
if not self.status.autoRange:
print("!! Tried to enable Auto-Range but device refused")
return False
elif self.gpib.debug:
print(".. Enabled Auto-Range")
else:
newRangeC = self.getRange(numeric=True)
if newRangeF != newRangeC:
print("!! Tried to set range to " + str(range) + " but device reported " + self.getRange())
return False
elif self.gpib.debug:
print(".. Set range to " + self.getRange())
elif self.gpib.debug:
print(".. Probably changed to range " + str(range))
return True
def setDigits(self, digits : float, noUpdate : bool=False) -> bool:
"""Change current measurement resolution
Parameters
----------
digits : float
desired measurement resolution
Valid values: 3,3.5,4,4.5,5,5.5
noUpdate : bool, optional
If True do not update status object to verify change was successful
by default False
Returns
-------
bool
Whether update succeeded or not; not verified if `noUpdate` was True
"""
newDigits = None
if digits == 3 or digits == 3.5:
newDigits = "3"
elif digits == 4 or digits == 4.5:
newDigits = "4"
elif digits == 5 or digits == 5.5:
newDigits = "5"
else:
print("!! Invalid digits")
return False
self.gpib.cmdWrite("N"+newDigits, self.addr)
if not noUpdate:
self.getStatus()
if int(self.getDigits()) != int(newDigits):
print("!! Tried to set digits to " + str(int(newDigits)) + "½ but device reported " + str(int(self.getDigits())) + "½")
return False
elif self.gpib.debug:
print(".. Set digits to " + str(int(self.getDigits())) + "½")
elif self.gpib.debug:
print(".. Probably changed digits to " + str(int(self.getDigits())) + "½")
return True
def setTrigger(self, trigger : int, noUpdate : bool=False) -> bool:
"""Change current measurement trigger
Parameters
----------
trigger : int
desired trigger mode
1 or TRIG_INT -> Automatic internal trigger
2 or TRIG_EXT -> Abort current measurements; Start on LOW-edge or via GPIB
3 or TRIG_SIN -> Complete current measurement. New one on GPIB GET
4 or TRIG_HLD -> Abort current measurement. New one on GPIB GET
5 or TRIG_FST -> Same as TRIG_SIN but skip settling delay for AC
noUpdate : bool, optional
If True do not update status object to verify change was successful
by default False
Returns
-------
bool
Whether update succeeded or not; not verified if `noUpdate` was True
"""
if trigger <= 0 or trigger > 5:
print("!! Invalid digits")
return False
self.gpib.cmdWrite("T" + str(trigger), self.addr)
if not noUpdate:
self.getStatus()
if trigger == self.TRIG_EXT and not self.status.triggerExternal:
print("!! Tried to enable external trigger but flag did not update")
return False
elif trigger == self.TRIG_SIN and self.status.triggerInternal:
print("!! Tried to enable singe trigger but auto trigger flag is still active")
return False
elif trigger == self.TRIG_INT and not self.status.triggerInternal:
print("!! Tried to enable internal trigger but auto trigger flag is not active")
return False
elif trigger == self.TRIG_HLD and self.status.triggerInternal:
print("!! Tried to enable trigger hold but auto trigger flag is still active")
return False
if self.gpib.debug:
print(".. Probably changed trigger to " + str(trigger))
return True
def setSRQ(self, srq:int):
"""Set Serial Poll Register Mask
@TODO Not tested and no validations
Parameters
----------
srq : int
Parameter must be two digits exactly. Bits 0-5 of the binary representation
are used to set the mask
"""
self.gpib.cmdWrite(srq, self.addr)
def clearSPR(self):
"""Clear Serial Poll Register (SPR)
"""
self.gpib.cmdWrite("K", self.addr)
def clearERR(self) -> bytearray:
"""Clear Error Registers
Returns
-------
bytearray
Error register as octal digits
"""
return self.gpib.cmdPoll("E", self.addr, binary=True)
def callReset(self):
"""Reset the device
"""
self.gpib.cmdClr(self.addr)