To provide traceable corrections (reference planes) in VNA measurements, we measure the s-parameters of a calibration kit in the reference plane of the standards. This makes the calibration standards a transfer standard for the uncertainties of the correction used to determine the reference plane of the standards. If this reference plane is determined through primary standards (TRL or LRL), then the calibration kit (SOLT) becomes traceable. This notebook is a set of measurements to provide this type of traceability using a WR15 LRL calibration kit to characterize multiple SOL calibration kits.
Each device was measured as two port scattering parameters, two port wave parameters, and each port was separately measured and saved as 1-port s parameters and 1-port wave parameters. In addition, each device was measured multiple times. If noted these different measurements represented a disconnect reconnect cycle, else they are only a repeated measurement without mechanical change.
</ol>
# note the Importing statements are diagnostics and can be disabled by setting VERBOSE_IMPORT to false in pyMez/__init__.py
from pyMez import *
from Code.Analysis.Transformations import *
zva=VNA("GPIB::20")
frequency_start=50*10**9
frequency_stop=75*10**9
number_points=251
#data_directory=r"C:\Share\WR15_20180213"
base_data_directory=r"C:\Share\WR15_OML_20180309"
#test_frequency_list=np.linspace(frequency_start,frequency_stop,number_points)
# Note with the frequency converter you can't initialize the sweeps. Set up the zva traces manually
# to have "S11","S21","S12","S22","A1_D1","B1_D1","A2_D1","B2_D1" as names
# todo: add method to VNA, VNA.add_all_traces()
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Thru _WO_AlignmentPins"
specific_description="True_Thru"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
print( " Converting w2p to switch terms ...")
switch_terms_directory=os.path.join(data_directory,subdirectory,"SwitchTerms")
name=auto_name(directory=w2p_directory,specific_descriptor="G"+specific_description,
general_descriptor="WR15_Switch_Terms",extension="s2p")
switch_terms=W2p_to_SwitchTerms(w2p)
switch_terms.path=os.path.join(switch_terms_directory,name)
switch_terms.save()
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Thru _WO_AlignmentPins"
specific_description="True_Thru"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
print( " Converting w2p to switch terms ...")
switch_terms_directory=os.path.join(data_directory,subdirectory,"SwitchTerms")
name=auto_name(directory=w2p_directory,specific_descriptor="G"+specific_description,
general_descriptor="WR15_Switch_Terms",extension="s2p")
switch_terms=W2p_to_SwitchTerms(w2p)
switch_terms.path=os.path.join(switch_terms_directory,name)
switch_terms.save()
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Thru _WO_AlignmentPins"
specific_description="True_Thru"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
print( " Converting w2p to switch terms ...")
switch_terms_directory=os.path.join(data_directory,subdirectory,"SwitchTerms")
name=auto_name(directory=w2p_directory,specific_descriptor="G"+specific_description,
general_descriptor="WR15_Switch_Terms",extension="s2p")
switch_terms=W2p_to_SwitchTerms(w2p)
switch_terms.path=os.path.join(switch_terms_directory,name)
switch_terms.save()
print("Saving switch terms at {0}".format(os.path.join(switch_terms_directory,name)))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Thru"
specific_description="True_Thru"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
print( " Converting w2p to switch terms ...")
switch_terms_directory=os.path.join(data_directory,subdirectory,"SwitchTerms")
name=auto_name(directory=switch_terms_directory,specific_descriptor="G"+specific_description,
general_descriptor="WR15_Switch_Terms",extension="s2p")
switch_terms=W2p_to_SwitchTerms(w2p)
switch_terms.path=os.path.join(switch_terms_directory,name)
switch_terms.save()
print("Saving switch terms at {0}".format(os.path.join(switch_terms_directory,name)))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Thru"
specific_description="True_Thru"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
print( " Converting w2p to switch terms ...")
switch_terms_directory=os.path.join(data_directory,subdirectory,"SwitchTerms")
name=auto_name(directory=switch_terms_directory,specific_descriptor="G"+specific_description,
general_descriptor="WR15_Switch_Terms",extension="s2p")
switch_terms=W2p_to_SwitchTerms(w2p)
switch_terms.path=os.path.join(switch_terms_directory,name)
switch_terms.save()
print("Saving switch terms at {0}".format(os.path.join(switch_terms_directory,name)))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Thru"
specific_description="True_Thru"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
print( " Converting w2p to switch terms ...")
switch_terms_directory=os.path.join(data_directory,subdirectory,"SwitchTerms")
name=auto_name(directory=switch_terms_directory,specific_descriptor="G"+specific_description,
general_descriptor="WR15_Switch_Terms",extension="s2p")
switch_terms=W2p_to_SwitchTerms(w2p)
switch_terms.path=os.path.join(switch_terms_directory,name)
switch_terms.save()
print("Saving switch terms at {0}".format(os.path.join(switch_terms_directory,name)))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
# The first standard I connected to port 2 was not C15101 it was an unknown flat short that appears to be deffective!!
# Renamed files
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Shorts"
specific_description="Kit_Short_P1_C15101_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Shorts"
specific_description="Kit_Short_P1_C15101_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Shorts"
specific_description="Kit_Short_P1_C15101_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
#Direction Reversed
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Shorts"
specific_description="C15101_P1_Kit_Short_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Shorts"
specific_description="Kit_Short_P1_C15101_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Shorts"
specific_description="Kit_Short_P1_C15101_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Shorts"
specific_description="RS_Short_100072_P1_Keysight_Short_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Shorts"
specific_description="RS_Short_100072_P1_Keysight_Short_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Shorts"
specific_description="RS_Short_100072_P1_Keysight_Short_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Opens"
specific_description="Kit_Open_P1_C15102_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Opens"
specific_description="Kit_Open_P1_C15102_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Opens"
specific_description="Kit_Open_P1_C15102_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Loads"
specific_description="RS_Match_100015_P1_Keysight_FixedLoad_70020_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Loads"
specific_description="RS_Match_100015_P1_Keysight_FixedLoad_70020_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Loads"
specific_description="RS_Match_100015_P1_Keysight_FixedLoad_70020_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="OffsetShorts"
specific_description="RS_Short_WShim_P1_Keysight_Short_wShim_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="OffsetShorts"
specific_description="RS_Short_WShim_P1_Keysight_Short_wShim_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="OffsetShorts"
specific_description="RS_Short_WShim_P1_Keysight_Short_wShim_P2"
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="LineRS1612micro"
specific_description="Line_1612_micro_m"
for i in range(3):
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
# The screws dont fit just pushed together tightly
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="LineRSPlusKeysight3224micro"
specific_description="Line_3224_micro_m"
for i in range(1):
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
# The screws dont fit just pushed together tightly
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Line4909"
specific_description="Line_4909"
for i in range(3):
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
# The screws dont fit just pushed together tightly
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Line5079"
specific_description="Line_5079"
for i in range(3):
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))
# The screws dont fit just pushed together tightly
data_directory=r"C:\Share\WR15_OML_20180309"
subdirectory="Atten3DB"
specific_description="Kit_Attenuator_3dB"
for i in range(3):
zva.set_IFBW(10)
zva.set_frequency(frequency_start,frequency_stop,number_points)
start=datetime.datetime.utcnow()
print("Begining Measurements at {0}".format(start))
print("IFBW is {0}".format(zva.get_IFBW()))
# Measure s2p and store along with s1ps
print("Measuring s2p ...")
s2p=zva.measure_sparameters()
s2p_directory=os.path.join(data_directory,subdirectory,"s2p")
name=auto_name(directory=s2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15",extension="s2p")
s2p.path=os.path.join(s2p_directory,name)
s2p.save()
print("Measured s2p, saved at {0}".format(s2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
s2p.show();
port_1_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port1")
name=auto_name(directory=port_1_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port1",extension="s1p")
port1_s1p=S2p_to_S1p(s2p,column="S11")
port1_s1p.path=os.path.join(port_1_s1p_directory,name)
port1_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port1_s1p.path))
port1_s1p.show();
port_2_s1p_directory=os.path.join(data_directory,subdirectory,"s1p","port2")
name=auto_name(directory=port_2_s1p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Port2",extension="s1p")
port2_s1p=S2p_to_S1p(s2p,column="S22")
port2_s1p.path=os.path.join(port_2_s1p_directory,name)
port2_s1p.save()
print("Split s1p port from s2p, saved at {0}".format(port2_s1p.path))
port2_s1p.show();
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
# Measure w2p and w1ps as seperate trigger events
w2p=zva.measure_w2p()
w2p_directory=os.path.join(data_directory,subdirectory,"w2p")
name=auto_name(directory=w2p_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters",extension="w2p")
w2p.path=os.path.join(w2p_directory,name)
w2p.save()
w2p.options["IFBW"]=zva.get_IFBW()
w2p.options["Power"]=zva.get_power()
w2p.options["Extender"]="OML_V15VNA2R"
w2p.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w2p.save_schema(change_extension(os.path.join(w2p_directory,name),new_extension="schema"))
print("Measured w2p, saved at {0}".format(w2p.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port1=zva.measure_w1p(port=1)
w1p_port1_directory=os.path.join(data_directory,subdirectory,"w1p","port1")
name=auto_name(directory=w1p_port1_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port1",extension="w1p")
w1p_port1.path=os.path.join(w1p_port1_directory,name)
w1p_port1.save()
w1p_port1.options["IFBW"]=zva.get_IFBW()
w1p_port1.options["Power"]=zva.get_power()
w1p_port1.options["Extender"]="OML_V15VNA2R"
w1p_port1.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port1.save_schema(change_extension(os.path.join(w1p_port1_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port1.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
w1p_port2=zva.measure_w1p(port=2)
w1p_port2_directory=os.path.join(data_directory,subdirectory,"w1p","port2")
name=auto_name(directory=w1p_port2_directory,specific_descriptor=specific_description,
general_descriptor="WR15_Wave_Parameters_Port2",extension="w1p")
w1p_port2.path=os.path.join(w1p_port2_directory,name)
w1p_port2.save()
w1p_port2.options["IFBW"]=zva.get_IFBW()
w1p_port2.options["Power"]=zva.get_power()
w1p_port2.options["Extender"]="OML_V15VNA2R"
w1p_port2.options["Measurement_Timestamp"]=datetime.datetime.utcnow()
w1p_port2.save_schema(change_extension(os.path.join(w1p_port2_directory,name),new_extension="schema"))
print("Measured w1p, saved at {0}".format(w1p_port2.path))
current_time=datetime.datetime.utcnow()-start
print(" It took {0} seconds".format(current_time.seconds))
stop=datetime.datetime.utcnow()
diff=stop-start
print(" Measurements finished at {0}".format(stop))
print(" Total time of measurements was {0} ".format(diff))