summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-07-09 20:37:57 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-07-09 20:37:57 +0200
commit7cbe1f69b986f6fc6e113e8d74dcfd7bc5773a74 (patch)
treede3229ccaa5ec2c37721347bc9860cf0281ea542 /bin
parente22b809bccd1cde36f6111e17c00ce094e687cfd (diff)
Add README
Diffstat (limited to 'bin')
-rwxr-xr-xbin/kaxxxxp-viewer5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/kaxxxxp-viewer b/bin/kaxxxxp-viewer
index afceb57..9ff5ca5 100755
--- a/bin/kaxxxxp-viewer
+++ b/bin/kaxxxxp-viewer
@@ -184,6 +184,11 @@ def measure_data(port, filename, duration):
else:
output_handle = tempfile.TemporaryFile("w+")
+ if duration:
+ print(f"Logging data for {duration} seconds. Press Ctrl+C to stop early.")
+ else:
+ print(f"Starting data acquisition. Press Ctrl+C to stop.")
+
print("# Device: " + korad.connect(), file=output_handle)
print("# Timestamp Voltage Current", file=output_handle)
while not terminate_measurement: