diff --git a/Python_script/play_with_vna.py b/Python_script/play_with_vna.py index 4298e25e830e4143ef243ef2b884e9853a467097..8c60a223194d93bff86a74cce80103eff1ef6a60 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))