diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-12-15 12:40:03 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-12-15 12:40:03 +0100 |
commit | b8c75b1c781ba343abaa72399664623c8861bdc6 (patch) | |
tree | 0a021cc0c6ae7c2bd57cd2a86aedf9c41ed20cef /bin | |
parent | 530110b84a74eaa97268566b760b041839a1515f (diff) |
save vmax/imax before starting log.
This is most useful for voltage- or current-only measurements
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/korad-logger | 7 |
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: |