示例#1
0
info.param('frt.p_20',
           label='Power Level 20% Tests',
           default='Enabled',
           values=['Disabled', 'Enabled'])
info.param('frt.n_r', label='Number of test repetitions', default=5)

info.param_group('eut', label='EUT Parameters', glob=True)
info.param('eut.p_rated', label='P_rated', default=3000)
info.param('eut.v_nom', label='V_nom', default=240)
info.param('eut.freq_nom', label='Freq_nom', default=60.0)
info.param('eut.freq_msa', label='Freq_msa', default=2.0)
info.param('eut.t_msa', label='T_msa', default=1.0)
info.param('eut.frt_t_dwell', label='FRT T_dwell', default=5)

der.params(info)
das.params(info, 'das_rms', 'Data Acquisition (RMS)')
das.params(info, 'das_wf', 'Data Acquisition (Waveform)')
gridsim.params(info)
loadsim.params(info)
###pvsim.params(info)                                       <- Commented out because middleware is communicated using gridsim
hil.params(info)


def script_info():

    return info


if __name__ == "__main__":

    # stand alone invocation
示例#2
0
           default=56.)
info.param(
    'eut.imbalance_resp',
    label='EUT response to phase imbalance is calculated by:',
    default='EUT response to the average of the three-phase effective (RMS)',
    values=[
        'EUT response to the individual phase voltages',
        'EUT response to the average of the three-phase effective (RMS)',
        'EUT response to the positive sequence of voltages'
    ])

# Other equipment parameters
der.params(info)
gridsim.params(info)
pvsim.params(info)
das.params(info)
hil.params(info)

# Add the SIRFN logo
info.logo('sirfn.png')


def script_info():
    return info


if __name__ == "__main__":

    # stand alone invocation
    config_file = None
    if len(sys.argv) > 1:
                         version='1.0.0')

# script parameters

# DER
der.params(info, id=1, label='EUT 1')
der.params(info, id=2, label='EUT 2')

# grid simulator
gridsim.params(info)

# PV simulator
pvsim.params(info)

# data acquisition
das.params(info, id=1, label='Node 1')
das.params(info, id=2, label='Node 2')

info.logo('sunspec.gif')


def script_info():

    return info


if __name__ == "__main__":

    # stand alone invocation
    config_file = None
    if len(sys.argv) > 1: