From 6f2b23f49bfd18072619aa8a526fd629ee12de01 Mon Sep 17 00:00:00 2001 From: David Lutton Date: Thu, 21 Mar 2024 22:19:47 +0000 Subject: [PATCH] Add basic query for HP 3457A --- src/labtoolkit/DigitalMultimeter/HP3457A.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/labtoolkit/DigitalMultimeter/HP3457A.py b/src/labtoolkit/DigitalMultimeter/HP3457A.py index 9f2ce0a..e81b850 100644 --- a/src/labtoolkit/DigitalMultimeter/HP3457A.py +++ b/src/labtoolkit/DigitalMultimeter/HP3457A.py @@ -1,4 +1,14 @@ from ..IEEE488 import IEEE488 + class HP3457A(IEEE488): - ... + + def __post__(self): + self.inst.write_termination = '\n' + self.inst.read_termination = '\r\n' + # self.write('OFORMAT ASCII') + + @property + def reading(self): + return self.query_float('?') +