-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added functions to load and store configs to scope and test file
Signed-off-by: {Johann Heyszl} <[email protected]> Co-authored-by: Vladimir Rozic <[email protected]>
- Loading branch information
1 parent
de2ab37
commit bc459ac
Showing
2 changed files
with
99 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/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 | ||
|
||
"""Test WaveRunner class.""" | ||
|
||
from datetime import datetime | ||
|
||
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) | ||
|
||
# Write setup to local file for later restore (no time-stamps) | ||
file_name_local = "scope_config.lss" | ||
waverunner.save_setup_to_local_file(file_name_local) | ||
# Load setup from local file | ||
waverunner.load_setup_from_local_file(file_name_local) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters