Skip to content
Snippets Groups Projects
Commit a7620f19 authored by Sai Lakhan Ekal's avatar Sai Lakhan Ekal
Browse files

Debug play_with_vna script by changing vna_name in lowercase and make it run

Also did code cleaning
parent d4b1641c
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python3 #!/usr/bin/python3
from VNA_dummy import VnaDummy
import VNA import VNA
#VNA_name = 'Localhost' VNA_name = 'localhost'
VNA_name = 'mskzna43' # VNA_name = 'mskzna43'
# Connect to VNA dummy # Connect to VNA dummy
vna = VNA.create_VNA(VNA_name) vna = VNA.create_vna(VNA_name, [0.2, 0.1])
print("connected") print("connected")
print("Created trace with parameter") print("Created trace with parameter")
new_trace = vna.create_new_trace("Trc2", "S22") new_trace = vna.create_new_trace("Trc2", "S22")
print(new_trace)
new_trace1 = vna.create_new_trace("Trc2", "S12") new_trace1 = vna.create_new_trace("Trc2", "S12")
...@@ -20,8 +21,10 @@ print("get current trace") ...@@ -20,8 +21,10 @@ print("get current trace")
current = vna.get_tupple_of_current_traces() current = vna.get_tupple_of_current_traces()
print("The current traces are" + str(current)) print("The current traces are" + str(current))
string = vna.get_measurement_string('S12', 'SDAT')
print(string)
#get tupple of current traces # get tuple of current traces
#tuple = vna.get_tupple_of_current_traces() # tuple = vna.get_tuple_of_current_traces()
#print("The tuple for current Trace is" + str(tuple)) # print("The tuple for current Trace is" + str(tuple))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment