feat: first communication

This commit is contained in:
Ali Elnwegy
2024-07-29 15:51:14 +02:00
parent 4fa3769530
commit f2ad1391b6
4 changed files with 5 additions and 5 deletions

View File

@@ -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)}"

View File

@@ -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)