summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-12-15 12:40:03 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-12-15 12:40:03 +0100
commitb8c75b1c781ba343abaa72399664623c8861bdc6 (patch)
tree0a021cc0c6ae7c2bd57cd2a86aedf9c41ed20cef
parent530110b84a74eaa97268566b760b041839a1515f (diff)
save vmax/imax before starting log.
This is most useful for voltage- or current-only measurements
-rwxr-xr-xbin/korad-logger7
1 files 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: