From dfc64943719ce80a16f612ae5e3fa71f7b3de8a1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 7 Nov 2021 20:10:41 +0100 Subject: Rename connect() to get_id() --- bin/korad-logger | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/korad-logger b/bin/korad-logger index 84d9483..8e7bea8 100755 --- a/bin/korad-logger +++ b/bin/korad-logger @@ -179,7 +179,7 @@ class KA320: # See for supported commands - def connect(self): + def get_id(self): # Device ID length is unknown return self.rw(b"*IDN?", 32, exact=False) @@ -307,7 +307,7 @@ def measure_data( else: print(f"Starting data acquisition. Press Ctrl+C to stop.") - print("# Device: " + korad.connect(), file=output_handle) + print("# Device: " + korad.get_id(), file=output_handle) print("# Timestamp Voltage Current", file=output_handle) while not terminate_measurement: ts = time.time() -- cgit v1.2.3