aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-07 12:27:56 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-07 12:27:56 -0500
commit10abb322467c7490d53d6e09e8908d099f657e97 (patch)
treeedcb29bd5b55b3f244fa86d22d96c51696b54b9f /qolab
parent185fbfa38b66fe3ae998df5119db67938bb3084e (diff)
downloadqolab-10abb322467c7490d53d6e09e8908d099f657e97.tar.gz
qolab-10abb322467c7490d53d6e09e8908d099f657e97.zip
fixes in scpi commands queries return values
Diffstat (limited to 'qolab')
-rw-r--r--qolab/hardware/scpi.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/qolab/hardware/scpi.py b/qolab/hardware/scpi.py
index 71ab556..a9c6061 100644
--- a/qolab/hardware/scpi.py
+++ b/qolab/hardware/scpi.py
@@ -47,16 +47,16 @@ class SCPIinstr:
self.write("*ESE")
def query_event_status_enable(self):
- self.query("*ESE?")
+ return self.query("*ESE?")
def query_event_status_register(self):
- self.query("*ESR?")
+ return self.query("*ESR?")
def set_wait_until_finished(self):
- self.query("*OPC")
+ self.write("*OPC")
def wait_until_finished(self):
- self.query("*OPC?")
+ return self.query("*OPC?")
def reset(self):
self.write("*RST")
@@ -65,13 +65,13 @@ class SCPIinstr:
self.write("*SRE")
def query_service_request_enable(self):
- self.query("*SRE?")
+ return self.query("*SRE?")
def query_status_byte(self):
- self.query("*STB?")
+ return self.query("*STB?")
def self_test_result(self):
- self.query("*TST?")
+ return self.query("*TST?")
def wait(self):
self.write("*WAI")