From 82663a142e76faefb21c89a560d9be9319179122 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Thu, 23 Oct 2025 10:47:02 +0200 Subject: [PATCH] frapp_psi.iomopinmax: digital output and SimpleVoltageInput - read back value in DigitalOutput.write_target - correct scale factor in SimpleVoltageInput --- frappy_psi/ionopimax.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappy_psi/ionopimax.py b/frappy_psi/ionopimax.py index ec9572a2..dbcd4411 100644 --- a/frappy_psi/ionopimax.py +++ b/frappy_psi/ionopimax.py @@ -100,6 +100,7 @@ class DigitalOutput(DigitalInput, Writable): def write_target(self, value): self.write(self.addr, value == self.true_level, 1) + self.read_value() class AnalogInput(Base, Readable): @@ -142,8 +143,7 @@ class VoltageInput(AnalogInput): class SimpleVoltageInput(AnalogInput): """version for iono pi""" - scale = 1e-3 - + scale = 1e6 / 1024 # probably a firmware or documentation error class LogVoltageInput(VoltageInput):