Example #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
Example #2
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()