From a7620f198c1ce1c5dc62c5a63adc446897d8f548 Mon Sep 17 00:00:00 2001 From: Sai Lakhan Ekal <sai.lakhan.ekal@desy.de> Date: Wed, 7 Sep 2022 16:20:42 +0200 Subject: [PATCH] Debug play_with_vna script by changing vna_name in lowercase and make it run Also did code cleaning --- Python_script/play_with_vna.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Python_script/play_with_vna.py b/Python_script/play_with_vna.py index 4298e25..8c60a22 100755 --- a/Python_script/play_with_vna.py +++ b/Python_script/play_with_vna.py @@ -1,16 +1,17 @@ #!/usr/bin/python3 -from VNA_dummy import VnaDummy + import VNA -#VNA_name = 'Localhost' -VNA_name = 'mskzna43' +VNA_name = 'localhost' +# VNA_name = 'mskzna43' # Connect to VNA dummy -vna = VNA.create_VNA(VNA_name) +vna = VNA.create_vna(VNA_name, [0.2, 0.1]) print("connected") print("Created trace with parameter") new_trace = vna.create_new_trace("Trc2", "S22") +print(new_trace) new_trace1 = vna.create_new_trace("Trc2", "S12") @@ -20,8 +21,10 @@ print("get current trace") current = vna.get_tupple_of_current_traces() print("The current traces are" + str(current)) +string = vna.get_measurement_string('S12', 'SDAT') +print(string) -#get tupple of current traces -#tuple = vna.get_tupple_of_current_traces() -#print("The tuple for current Trace is" + str(tuple)) +# get tuple of current traces +# tuple = vna.get_tuple_of_current_traces() +# print("The tuple for current Trace is" + str(tuple)) -- GitLab