async def LoadCellManager(logger_func, **kwargs): """ Generic Function for DataRecorderClass Format """ #voltage_func = lambda V: kwargs["m"]*V + kwargs["b"] manager = Manager() def onVoltage(self, vr): data = {"timestamp": ts(), "voltage": vr} logger_func(data) volr = VoltageRatioInput() volr.setOnVoltageRatioChangeHandler(onVoltage) volr.openWaitForAttachment(5000) while 1: pass