示例#1
0
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
示例#2
0
##########################################################
### 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)