From b8c75b1c781ba343abaa72399664623c8861bdc6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 15 Dec 2021 12:40:03 +0100 Subject: save vmax/imax before starting log. This is most useful for voltage- or current-only measurements --- bin/korad-logger | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/korad-logger b/bin/korad-logger index 71e2965..fea5a24 100755 --- a/bin/korad-logger +++ b/bin/korad-logger @@ -343,10 +343,11 @@ def measure_data( else: print(f"Starting data acquisition. Press Ctrl+C to stop.") - start_ts = time.time() - print("# Device: " + korad.get_id(), file=output_handle) - print("# Timestamp Voltage Current", file=output_handle) + print(f"# Vmax: {korad.get_max_voltage():5.2f}", file=output_handle) + print(f"# Imax: {korad.get_max_current():5.3f}", file=output_handle) + print("# Timestamp[s] Voltage[V] Current[A]", file=output_handle) + start_ts = time.time() while not terminate_measurement: ts = time.time() if log_current: -- cgit v1.2.3