def gui_reader(): """Read values from GUI""" SMW_IP = entryCol.entry0.get() FSW_IP = entryCol.entry1.get() ### Set 5GNR Parameters NR5G = VST().jav_Open(SMW_IP,FSW_IP) NR5G.Freq = float(entryCol.entry2.get()) NR5G.SWM_Out = float(entryCol.entry3.get()) NR5G.NR_Dir = entryCol.entry4_enum.get() NR5G.NR_Deploy = entryCol.entry5_enum.get() NR5G.NR_ChBW = int(entryCol.entry6_enum.get()) NR5G.NR_SubSp = int(entryCol.entry7_enum.get()) NR5G.NR_RB = int(entryCol.entry8.get()) NR5G.NR_RBO = int(entryCol.entry9.get()) NR5G.NR_Mod = entryCol.entry10_enum.get() NR5G.NR_CC = int(entryCol.entry11.get()) NR5G.NR_TF = 'OFF' return NR5G
NR5G.FSW.Set_SweepCont(0) # NR5G.FSW.Init_CCDF() # NR5G.FSW.Set_YIG(0) # NR5G.FSW.Set_CCDF_BW(120e6) # NR5G.FSW.Set_CCDF_Samples(2e6) # NR5G.FSW.Set_Trig1_Source('IMM') # NR5G.FSW.Set_AttnAuto() NR5G.FSW.Set_SweepCont(0) for i in range(numMeas): #Loop: Measurements for mod in modArry: #Loop: Modulation for param in waveparam: #Loop: Waveform Parameters NR5G.NR_ChBW = param[0] NR5G.NR_SubSp = param[1] NR5G.NR_RB = param[2] NR5G.NR_Mod = mod for freq in FreqArry: #Loop: Frequency NR5G.Freq = freq NR5G.Set_5GNR_All() #[[[Make Waveform]]] # NR5G.FSW.Init_CCDF() # NR5G.FSW.Set_InitImm() # ccdf = NR5G.FSW.Get_CCDF() ccdf = '<tbd>,<tbd>,<tbd>,<tbd>,<tbd>' print( f'Freq:{freq:.0f} RFBW:{NR5G.NR_ChBW} SubC:{NR5G.NR_SubSp} Mod:{NR5G.NR_Mod}' ) print(Header) #ctypes.windll.user32.MessageBoxW(0, "Verify", "Please Verify Waveform", 1) for pwr in pwrArry: #Loop: Power NR5G.FSW.Init_5GNR() NR5G.SMW.Set_RFPwr(pwr)
NR5G.FSW.Set_5GNR_EVMUnit('DB') NR5G.FSW.Set_Trig1_Source('IMM') NR5G.FSW.Set_5GNR_Direction(NR_Dir) NR5G.FSW.Set_SweepCont(0) NR5G.FSW.Set_5GNR_FreqRange(2) NR5G.FSW.Set_5GNR_CC_Num(NumCC) NR5G.FSW.Set_5GNR_SubFrameCount(1) NR5G.FSW.Set_SweepTime(10.1e-3) NR5G.FSW.Set_5GNR_Result_View('ALL') for i in range(numMeas): #LOOP: Measurements for param in waveparam: #LOOP: Waveform Parameters NR5G.NR_ChBW = param[0] NR5G.NR_SubSp = param[1] NR5G.NR_RB = param[2] NR5G.NR_Mod = param[3] for freq in FreqArry: #LOOP: Frequency NR5G.Freq = freq NR5G.SMW.Set_Freq(freq) NR5G.FSW.Set_Freq(freq + CCStart) print(f'Freq:{freq:.0f} RFBW:{NR5G.NR_ChBW} SubC:{NR5G.NR_SubSp} Mod:{NR5G.NR_Mod}') print(Header) for CC in range(NumCC): NR5G.FSW.cc = CC+1 NR5G.FSW.Set_5GNR_CC_Offset(CC+1,CC*CCSpace) #ctypes.windll.user32.MessageBoxW(0, "Verify", "Please Verify Waveform", 1) for pwr in pwrArry: #LOOP: Power tick = timeit.default_timer() #Tick Begin meas NR5G.SMW.Set_RFPwr(pwr) NR5G.FSW.Set_5GNR_CC_Capture('AUTO') NR5G.FSW.Set_SweepCont(1)
### Descrip: FSW 3.20-18.7.1.0 Beta ### SMW 4.30 SP2 ########################################################## ### User Entry ########################################################## SMW_IP = '192.168.1.114' FSW_IP = '192.168.1.109' ########################################################## ### Code Start ########################################################## from rssd.VST.NR5G_K144 import VST #pylint: disable=E0611,E0401 def NR5G_SetSettings(FSW,SMW): #pylint: disable=W0613 pass if __name__ == "__main__": NR5G = VST().jav_Open(SMW_IP,FSW_IP) NR5G.Freq = 19e9 NR5G.SWM_Out = 0 NR5G.NR_Dir = 'DL' NR5G.NR_Deploy= 'HIGH' #LOW:MIDD:HIGH NR5G.NR_ChBW = 200 #MHz NR5G.NR_SubSp = 120 #kHz NR5G.NR_RB = 66 #RB NR5G.NR_RBO = 0 #RB Offset NR5G.NR_Mod = 'QAM64' #QPSK; QAM16; QAM64; QAM256; PITB NR5G.Set_5GNR_All() NR5G.jav_Clear() NR5G.jav_Close()