Commit b8c75b1c authored by Daniel Friesel's avatar Daniel Friesel
Browse files

save vmax/imax before starting log.

This is most useful for voltage- or current-only measurements
parent 530110b8
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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: