if result == script.RESULT_FAIL: rc = 1 except Exception as e: ts.log_error('Test script exception: %s' % traceback.format_exc()) rc = 1 sys.exit(rc) info = script.ScriptInfo(name=os.path.basename(__file__), run=run, version='1.0.0') # PV simulator pvsim.params(info, '1', 'PV Simulator 1') pvsim.params(info, '2', 'PV Simulator 2') def script_info(): return info if __name__ == "__main__": # stand alone invocation config_file = None if len(sys.argv) > 1: config_file = sys.argv[1] test_script = script.Script(info=script_info(), config_file=config_file)
label='Minimum frequency in the continuous operating region (Hz)', 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
sys.exit(rc) info = script.ScriptInfo(name=os.path.basename(__file__), run=run, version='1.0.0') # Test info.param_group('test', label='Test Configuration') info.param('test.n_pv', label='Number of PV Inputs?', default=6) info.param('test.n_meas', label='Number of Measurements at Each PF?', default=10) info.param('test.t_start', label='Inverter Start Up Time (s)?', default=300.) info.param('test.t_stable', label='Inverter Stabilization Time (s)?', default=5.) info.param('test.test_start', label='Start Test Number?', default=1) hil.params(info) das.params(info) pvsim.params(info, '1', 'PV Simulator 1') pvsim.params(info, '2', 'PV Simulator 2') pvsim.params(info, '3', 'PV Simulator 2') pvsim.params(info, '4', 'PV Simulator 2') pvsim.params(info, '5', 'PV Simulator 2') pvsim.params(info, '6', 'PV Simulator 2') der.params(info) def script_info(): return info if __name__ == "__main__":