frappy_psi: two small fixes in k2601b/ppmssim
Change-Id: I5b3a333fd6e79d1f09d540726ce0a91580c63d08 Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/30983 Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de> Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
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