fix bug in k2601b

convert returned float (which is integer) to int

Change-Id: I8363f4d5188f2b1be89f1383da20c76522286424
This commit is contained in:
2023-01-23 17:45:31 +01:00
parent 6c325460f7
commit 7d4dfdebbd

View File

@ -60,7 +60,7 @@ class SourceMeter(HasIO, Module):
ioClass = K2601bIO
def read_mode(self):
return float(self.communicate('print((smua.source.func+1)*smua.source.output)'))
return int(float(self.communicate('print((smua.source.func+1)*smua.source.output)')))
def write_mode(self, value):
assert self.communicate(SOURCECMDS[value]) == 'ok'