From 519fc5311fb95e60a00006928c85e6b1e07d2142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Mon, 31 Jan 2022 13:48:50 +0100 Subject: [PATCH] booster.py: wait 100 ms before taking bias current https://github.com/sinara-hw/Booster/issues/368 https://github.com/quartiq/booster/issues/123 --- booster.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/booster.py b/booster.py index a2243d8b..6449c68b 100644 --- a/booster.py +++ b/booster.py @@ -164,6 +164,8 @@ async def tune_bias(self, channel, current): async def set_bias(voltage): await self.settings_interface.command(f'channel/{channel}/bias_voltage', voltage, retain=False) + # Sleep 100 ms for bias current to settle and for ADC to take current measurement. + await asyncio.sleep(0.1) response = await self.perform_action(Action.ReadBiasCurrent, channel) response = json.loads(response['msg']) vgs, ids = response['vgs'], response['ids']