From 8a4d5b9cf5f6ebae90fff9b7468fde93a111212f Mon Sep 17 00:00:00 2001
From: JupyterHub User <1myhisij@jupyter.rwth-aachen.de>
Date: Tue, 29 Aug 2023 10:30:03 +0000
Subject: [PATCH] implemented methods for compliance of variable smus
---
hp4155/module.py | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/hp4155/module.py b/hp4155/module.py
index 8eb8d37..9cf2719 100644
--- a/hp4155/module.py
+++ b/hp4155/module.py
@@ -170,4 +170,18 @@ class HP4155a(object):
for i in range(len(values)):
values[i] = float(values[i])
- return values
\ No newline at end of file
+ return values
+
+ # these are commands for the compliance
+
+ #set the power compliance for VAR1 and VAR2
+ def pcomp(self,variable,value):
+ command = f":PAGE:MEAS:{variable}:PCOM {value}"
+ self.inst.write(command)
+
+ #set normal compliance for VAR1 and VAR2
+ def comp(self,variable,value):
+ command = f":PAGE:MEAS:{variable}:COMP {value}"
+ self.inst.write(command)
+
+
\ No newline at end of file
--
GitLab