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