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:
2023-05-02 09:42:44 +02:00
parent 3929a37e93
commit 21427ca765
2 changed files with 2 additions and 2 deletions

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'