feat: first communication
This commit is contained in:
parent
4fa3769530
commit
f2ad1391b6
@ -1 +1 @@
|
||||
/home/an/Documents/Git/tuhh_gitlab/rigol-dg2052-python-library/.venv/bin/python
|
||||
/home/an/Documents/git/tuhh_gitlab/rigol-dg2052-python-library/.venv/bin/python
|
@ -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)}"
|
||||
|
@ -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)
|
||||
|
4
pdm.lock
4
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"
|
||||
|
Loading…
Reference in New Issue
Block a user