From f952a77b70c0277b1d050fb69071e5a78415ba7c Mon Sep 17 00:00:00 2001 From: {Johann Heyszl} Date: Mon, 25 Sep 2023 19:31:45 +0200 Subject: [PATCH] added file to save config as standalone, to be used in test Signed-off-by: {Johann Heyszl} --- cw/save_waverunner_config_to_file.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cw/save_waverunner_config_to_file.py diff --git a/cw/save_waverunner_config_to_file.py b/cw/save_waverunner_config_to_file.py new file mode 100644 index 00000000..d0ef8f5d --- /dev/null +++ b/cw/save_waverunner_config_to_file.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python3 +# Copyright lowRISC contributors. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 + +"""Save WaveRunner to file for later use by script.""" + +from waverunner import WaveRunner + +if __name__ == '__main__': + waverunner = WaveRunner("172.26.111.125") + + # Save WaveRunner setup to timestamped file + now = datetime.now() + now_str = now.strftime("%Y-%m-%d_%H:%M:%S") + file_name_local = f"scope_config_{now_str}.lss" + waverunner.save_setup_to_local_file(file_name_local)