diff --git a/hp4155/module.py b/hp4155/module.py index 8eb8d372896278b98ef1b8fc3f033c9c95444383..9cf2719af6a15c0ab3bf5aac1a35478c2379d26d 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