fix bug in k2601b
convert returned float (which is integer) to int Change-Id: I8363f4d5188f2b1be89f1383da20c76522286424
This commit is contained in:
@ -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'
|
||||
|
Reference in New Issue
Block a user