From f2ad1391b6dd148793742c809e070f249bf7c9fd Mon Sep 17 00:00:00 2001 From: Ali Elnwegy Date: Mon, 29 Jul 2024 15:51:14 +0200 Subject: [PATCH] feat: first communication --- .pdm-python | 2 +- examples/discrete_sweep.py | 2 +- examples/ramp_signal.py | 2 +- pdm.lock | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pdm-python b/.pdm-python index 42e55cd..33a4d3e 100644 --- a/.pdm-python +++ b/.pdm-python @@ -1 +1 @@ -/home/an/Documents/Git/tuhh_gitlab/rigol-dg2052-python-library/.venv/bin/python \ No newline at end of file +/home/an/Documents/git/tuhh_gitlab/rigol-dg2052-python-library/.venv/bin/python \ No newline at end of file diff --git a/examples/discrete_sweep.py b/examples/discrete_sweep.py index 4363a83..9026011 100644 --- a/examples/discrete_sweep.py +++ b/examples/discrete_sweep.py @@ -73,7 +73,7 @@ def discrete_sweep( print(f"Duration: {step_duration} s") print(f"N_Samples: {n_samples} samples") fg.set_output(channel, False) - fg.set_sine_wave(channel, freq, v, 0, 0) + fg.set_square_wave(channel, freq, v, 0, 0) fg.set_output(channel, True) print( f"Output{channel}: {fg.get_output_signal(channel)} | {fg.get_output_state(channel)}" diff --git a/examples/ramp_signal.py b/examples/ramp_signal.py index bc9e37e..bb4921d 100644 --- a/examples/ramp_signal.py +++ b/examples/ramp_signal.py @@ -55,4 +55,4 @@ if __name__ == "__main__": if args.phase not in range(0, 360): parser.print_help() exit(1) - generate_ramp_wave(args.v, args.freq, args.phase) + generate_ramp_wave(args.voltage, args.freq, args.phase) diff --git a/pdm.lock b/pdm.lock index b89772a..aa1a73c 100644 --- a/pdm.lock +++ b/pdm.lock @@ -4,8 +4,8 @@ [metadata] groups = ["default", "dev"] strategy = ["cross_platform", "inherit_metadata"] -lock_version = "4.4.1" -content_hash = "sha256:e232de4dc34867089b0199628f6236405f11f243e746925d528a9ac1ef653290" +lock_version = "4.4.2" +content_hash = "sha256:04cf15eb5931e18e12e4f98e19e5a04b427788e8f467795bd6592a3678c1bab8" [[package]] name = "ansicon"