After the measurement is finished, import the data and check if there was current overload or underload and repeat the experiment with the optimized current range. This will not be live, as there is no live data streaming to Python and can be dangerous if overload is left for too long, treat it carefully.