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
### Code Overhead: Import and create objects ########################################################## from datetime import datetime #pylint: disable=E0611,E0401 from rssd.FileIO import FileIO #pylint: disable=E0611,E0401 from rssd.VST.NR5G_K144 import VST #pylint: disable=E0611,E0401 import time import ctypes # An included library with Python install OFile = FileIO().makeFile(__file__) ########################################################## ### Code Start ########################################################## NR5G = VST().jav_Open(SMW_IP, FSW_IP, OFile) NR5G.NR_TF = DFT_S_OFDM NR5G.NR_Dir = NR_Dir NR5G.Freq = FreqArry[0] ########################################################## ### Measure Time ########################################################## #sDate = datetime.now().strftime("%y%m%d-%H:%M:%S.%f") #Date String Header = 'Iter,Model,Freq,K144Crest,K144Pwr,EVM,ChBW,Waveform,SubSp,Mod,SMWPwr,SubFram,Attn,Preamp,RefLvl,AutoLvl,AlTime,CrestF,P10_00,P01_00,P00_10,P00_01,CmdTime,StepTime' OFile.write(Header) NR5G.FSW.Init_5GNR() NR5G.FSW.Set_5GNR_EVMUnit('DB') NR5G.FSW.Set_Trig1_Source('EXT') NR5G.FSW.Set_5GNR_Direction(NR_Dir) NR5G.FSW.Set_SweepCont(0) # NR5G.FSW.Init_CCDF() # NR5G.FSW.Set_YIG(0)
### 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()