CN115729211A - Automatic test system and test method for integration of actual measurement and modeling - Google Patents

Automatic test system and test method for integration of actual measurement and modeling Download PDF

Info

Publication number
CN115729211A
CN115729211A CN202211446047.1A CN202211446047A CN115729211A CN 115729211 A CN115729211 A CN 115729211A CN 202211446047 A CN202211446047 A CN 202211446047A CN 115729211 A CN115729211 A CN 115729211A
Authority
CN
China
Prior art keywords
identification
module
test
model
hardware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211446047.1A
Other languages
Chinese (zh)
Inventor
徐恒山
朱士豪
李颜汝
赵铭洋
李文昊
莫汝乔
王地康
王思维
李康辉
曾宪金
马梓茗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Three Gorges University CTGU
Original Assignee
China Three Gorges University CTGU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Three Gorges University CTGU filed Critical China Three Gorges University CTGU
Priority to CN202211446047.1A priority Critical patent/CN115729211A/en
Publication of CN115729211A publication Critical patent/CN115729211A/en
Pending legal-status Critical Current

Links

Images

Abstract

An automatic test system and a test method integrating actual measurement and modeling comprise a test module, an identification module and an analysis module; the test module is used for the hardware-in-loop simulation test of the new energy controller and provides measured data support for the identification module; the identification module is used for identifying the parameters of the electromechanical model of the new energy controller, the parameter identification is based on hardware-in-the-loop actual measurement data, and parameters to be identified in the identification model are automatically modified by compiling an identification algorithm until the identification precision requirement is met and the optimal identification parameters are automatically output; the analysis module is used for a new energy electromechanical transient state modeling test, verifying the correctness of a parameter identification result in the identification module, automatically performing electromechanical transient state simulation by setting different test working conditions, and automatically performing error analysis on each simulation result and a hardware-in-loop test result. The invention replaces the traditional manual test work, automatically performs hardware-in-the-loop test, parameter identification and electromechanical transient modeling test, and automatically stores the result data.

Description

Actual measurement modeling integrated automatic test system and test method
Technical Field
The invention belongs to the technical field of automatic software testing, and particularly relates to an actual measurement modeling integrated automatic testing system and a testing method.
Background
With the continuous improvement of the permeability of a high-proportion new energy generator set, the access of the high-proportion new energy generator set to a power system has an important influence on the safe and stable operation of a power grid, and a model adopted in the power grid simulation research at present is greatly different from the field actual condition, so that the establishment of an accurate electromechanical transient simulation model based on actual measurement data identification is particularly important for researching the transient stability characteristics of the new energy generator set and a new energy grid-connected system.
With the rapid development of computer technology, the hardware-in-loop simulation technology becomes a new means for power system simulation research, the hardware-in-loop simulation combines the advantages of all-digital simulation and physical simulation, can simulate the real-time running state of a controlled object more truly, and is a commonly used simulation means at present. For the research on the actual measurement modeling of the new energy controller, a large amount of test work needs to be carried out based on the hardware in-loop simulation of the new energy controller.
In the ring simulation test work of hardware, model compiling, downloading and running are required to be manually carried out in each test, the test process is extremely complicated, and the data format is required to be manually stored and converted after the test is finished, so that the test efficiency is low; in the parameter identification work, when the model is manually operated each time, the operation result of each time needs to be recorded, and the parameter value is modified according to the operation result, so that the identified parameter value is obtained, and if the identification result obtained in each operation is manually filled into the model and the model is manually operated, the identification efficiency is lowered; in the electromechanical transient model simulation test work, different working conditions need to be set for simulation so as to verify the accuracy of the identification result, and if the whole electromechanical transient test process is manually operated by a worker, a large amount of manpower and material resources are occupied.
In view of the above, the invention provides an automatic test system integrating actual measurement and modeling, which aims to solve the problems that a large amount of manual test work needs to be carried out aiming at actual measurement and modeling research, release testers from a manual test state, realize one-key actual measurement and modeling of a new energy controller and improve test efficiency.
Disclosure of Invention
In view of the technical problems in the background art, the automatic test system and the test method for the integration of actual measurement and modeling provided by the invention can replace the traditional manual test work, automatically perform hardware-in-the-loop test, parameter identification and electromechanical transient modeling test, automatically store the result data, and effectively improve the test efficiency.
In order to solve the technical problems, the invention adopts the following technical scheme to realize:
an automatic test system integrating actual measurement and modeling comprises a test module, an identification module and an analysis module, wherein the test module is electrically connected with the identification module;
the test module is used for hardware-in-loop simulation test of the new energy controller, provides measured data support for the identification module, and can implement automatic test according to the data requirement of the identification working condition;
the identification module is used for identifying the parameters of the electromechanical model of the new energy controller, and the parameter identification is based on the actual measurement data of the hardware-in-the-loop, and automatically modifies each parameter to be identified in the identification model by compiling an identification algorithm until the identification precision requirement is met and the optimal identification parameter is automatically output;
the analysis module is used for a new energy electromechanical transient state modeling test, verifying the correctness of the parameter identification result in the identification module, automatically performing electromechanical transient state simulation by setting different test working conditions, and automatically performing error analysis on each simulation result and a hardware-in-loop test result.
In a preferred scheme, the test module comprises a working condition setting, model compiling, model downloading, model running and report output function module, wherein the working condition setting is a test working condition for setting a new energy controller and is used for passing through working conditions of high and low voltages under different voltage drop or lifting degrees; compiling the model into codes which can be identified by a simulator; the model downloading is to download the simulation model into a simulation machine; the model operation is used for controlling the operation of a model in the simulation machine; the report output is to output the hardware-in-loop simulation result in a report form, and can modify the report output format according to the data requirement.
In a preferred scheme, the identification module comprises a data calling, parameter modifying, model running, result comparing and parameter outputting functional module; the data call is to call hardware-in-loop simulation result data in the test module; the parameters are modified into parameters to be identified in the modified identification model; the model operation controls the operation of the recognition model; the result comparison is the difference comparison between the hardware-in-the-loop simulation result and the identification model simulation result; the parameter output is to output an optimal identification parameter obtained by identification.
In a preferred scheme, the analysis module comprises a parameter importing module, a data calling module, a working condition switching module, a model operation module and an error analysis function module, wherein the parameter importing module imports the optimal identification parameters output by the identification module into the electromechanical transient model; the data call is to call hardware-in-loop simulation result data in the test module; the working condition is switched to the testing working condition of the electromechanical transient model, and the testing working condition is switched to the same testing working condition as the hardware-in-loop simulation model in the testing module; the model operation is simulation operation of a control electromechanical transient model; and the error analysis is error calculation of hardware-in-loop simulation results and electromechanical transient model simulation results.
In a preferred embodiment, the test method of the automatic test system integrated with actual measurement and modeling is characterized in that:
s1: performing hardware-in-the-loop simulation test:
s1.1: automatically opening the RT-LAB of hardware-in-the-loop test software through Python, and positioning the position of each test button in the RT-LAB software;
s1.1: setting a test working condition switching button to change the test working condition according to the identification requirement;
s1.1: controlling a mouse to automatically run by using a pyautogui module in Python software, sequentially clicking each button in the RT-LAB software, automatically compiling, downloading and running a hardware-in-loop simulation model, and automatically storing a test result;
s2: and (3) performing parameter identification:
s2.1: constructing an identification model in PSASP software and determining each parameter to be identified as a reactive current component Iq during crossing set_LV Reactive current coefficient K 1_Iq_LV And K 2_Iq_LV Active current component Ip during ride-through set_LV And active current coefficient K 1_Ip_LV And K 2_Ip_LV
S2.2: accessing each parameter to be identified in a PSASP software database by using a pymysql module in Python software, automatically modifying each parameter to be identified in an identification model by compiling an identification algorithm, and controlling the automatic operation of the identification model in the PSASP by using a pyautogui module in the Python software;
s2.3: comparing the hardware-in-loop test result with each simulation result of the model in the PSASP until the identification precision requirement is met, and automatically outputting the optimal identification parameters;
s3: carrying out electromechanical transient modeling test on the new energy:
s3.1: accessing each parameter in the database by using a pymysql module and automatically transmitting the identified parameters to the electromechanical transient model through Python according to the parameters obtained in the identification module;
s3.2: a test condition switching button is set through Pyhton, and a pyautogui module is used for controlling an electromechanical transient model in the PSASP to perform automatic simulation calculation;
s3.3: and automatically performing curve comparison and error analysis on the electromechanical transient simulation calculation result and the hardware-in-the-loop simulation result.
This patent can reach following beneficial effect:
the invention can implement integrated test on the actual measurement modeling work of the new energy controller, can effectively replace the traditional manual test work, automatically perform hardware-in-loop test, parameter identification and electromechanical transient modeling test, and can output test results in different file formats according to requirements, thereby greatly improving the test efficiency, and being simple and efficient.
Drawings
The invention is further illustrated by the following examples in conjunction with the accompanying drawings:
fig. 1 is a structural diagram of an integrated automatic test system for actual measurement and modeling according to the present invention.
FIG. 2 is a block diagram of the internal modules of the test module, the identification module and the analysis module according to the present invention.
FIG. 3 is a block diagram of the hardware-in-the-loop test, parameter identification and electromechanical transient modeling test according to the present invention.
Fig. 4 is a graph of comparison of electromechanical transient simulation calculation results and hardware-in-the-loop simulation results and error analysis under the low voltage ride through condition in the embodiment of the present invention.
FIG. 5 is a graph of a comparison of electromechanical transient simulation calculation results and hardware-in-the-loop simulation results and an error analysis under a low voltage ride through condition in an embodiment of the present invention.
FIG. 6 is a graph of a comparison of electromechanical transient simulation calculation results and hardware-in-loop simulation results and an error analysis under a high voltage ride through condition in an embodiment of the present invention.
Detailed Description
Example 1:
a preferred embodiment is shown in fig. 1 to 3, and an automatic test system integrating actual measurement and modeling includes a test module 10, an identification module 20, and an analysis module 30, which specifically includes the following:
the test module 10 is used for hardware-in-loop simulation test of the new energy controller, provides measured data support for the identification module 20, and can implement automatic test according to the data requirement of the identification working condition;
the identification module 20 is used for identifying parameters of the electromechanical model of the new energy controller, and the parameter identification is based on hardware-in-loop measured data provided by the test module 10, and automatically modifies each parameter to be identified in the identification model by compiling an identification algorithm until the identification precision requirement is met and the optimal identification parameter is automatically output;
the analysis module 30 is used for a new energy electromechanical transient modeling test, verifies the correctness of the parameter identification result in the identification module 20, automatically performs electromechanical transient simulation by setting different test conditions, and automatically performs error analysis on each simulation result and a hardware-in-loop test result.
In an embodiment of the invention, an automatic test system integrating actual measurement and modeling comprises a test module 10 which comprises a working condition setting 101, a model compiling 102, a model downloading 103, a model running 104 and a report output 105 functional module, wherein the working condition setting 101 is a test working condition for setting a new energy controller and mainly comprises high-low voltage crossing working conditions under different voltage drop or lifting degrees, the model compiling 102 is used for compiling a simulation model into codes which can be identified by a simulator, the model downloading 103 is used for downloading the simulation model into the simulator, the model running 104 is used for controlling the model running in the simulator, and the report output 105 is used for outputting a hardware-in-loop simulation result in a report form and modifying a report output format according to data requirements.
In an embodiment of the present invention, an actual measurement and modeling integrated automatic test system includes a data call 201, a parameter modification 202, a model operation 203, a result comparison 204, and a parameter output 205, where the data call 201 is data of a hardware-in-loop simulation result in a call test module 10, the parameter modification 202 is data of each parameter to be identified in a modification identification model, the model operation 203 is operation of a control identification model, the result comparison 204 is a difference comparison between a hardware-in-loop simulation result and an identification model simulation result, and the parameter output 205 is an optimal identification parameter obtained by identification.
In an embodiment of the present invention, an automatic test system integrating actual measurement and modeling, where the analysis module 30 includes a parameter import 301, a data call 302, a condition switch 303, a model operation 304, and an error analysis 305 function module, where the parameter import 301 is to import an optimal identification parameter output by the identification module 20 into an electromechanical transient model, the data call 302 is to call hardware-in-loop simulation result data in the test module 10, the condition switch 303 is to switch a test condition of the electromechanical transient model to a test condition the same as that of the hardware-in-loop simulation model in the test module, the model operation 304 is to control simulation operation of the electromechanical transient model, and the error analysis 305 is to perform error calculation on a hardware-in-loop simulation result and an electromechanical transient model simulation result.
In an embodiment of the present invention, a testing method of an actual measurement and modeling integrated automatic testing system includes the hardware-in-loop simulation testing steps shown in fig. 3, which specifically include:
s1.1, automatically opening a hardware-in-the-loop test software RT-LAB through Python, and positioning the position of each test button in the RT-LAB software;
s1.2, setting a test working condition switching button to change the test working condition according to the identification requirement;
and S1.3, controlling the mouse to automatically run by using a pyautogui module in the Python software, sequentially clicking each button in the RT-LAB software, automatically compiling, downloading and running the hardware-in-loop simulation model, and automatically storing a test result.
In an embodiment of the present invention, a testing method of an actual measurement and modeling integrated automatic testing system includes the parameter identification step shown in fig. 3, which specifically includes:
s2.1, building an identification model in PSASP software and determining each parameter to be identified as a reactive current component Iq during crossing set_LV Reactive current coefficient K 1_Iq_LV And K 2_Iq_LV Active current component Ip during ride-through set_LV And active current coefficient K 1_Ip_LV And K 2_Ip_LV
S2.2, accessing each parameter to be identified in the PSASP software database by using a pymysql module in the Python software, automatically modifying each parameter to be identified in the identification model by compiling the identification algorithm, and controlling the automatic operation of the identification model in the PSASP by using a pyautogui module in the Python software;
and S2.3, comparing the hardware-in-loop test result with each simulation result of the model in the PSASP until the identification precision requirement is met, and automatically outputting the optimal identification parameters.
In an embodiment of the present invention, a testing method for an automatic testing system integrating actual measurement and modeling, where a new energy electromechanical transient modeling test is shown in fig. 3, specifically includes:
s3.1, accessing all parameters in the database by using the pymysql module and automatically transmitting the identified parameters to the electromechanical transient model through Python according to the parameters obtained in the identification module;
s3.2, setting a test working condition switching button through Pythton, and controlling an electromechanical transient model in the PSASP to perform automatic simulation calculation by using a pyautogui module;
and S3.3, automatically performing curve comparison and error analysis on the electromechanical transient simulation calculation result and the hardware-in-loop simulation result.
Fig. 4 is a graph showing a comparison and an error analysis of an electromechanical transient simulation result and a hardware-in-loop simulation result curve under a voltage drop condition of 0.6pu in the embodiment of the present invention, fig. 5 is a graph showing a comparison and an error analysis of an electromechanical transient simulation result and a hardware-in-loop simulation result curve under a voltage drop condition of 0.4pu in the embodiment of the present invention, fig. 6 is a graph showing a comparison and an error analysis of an electromechanical transient simulation result and a hardware-in-loop simulation result curve under a voltage rise condition of 1.2pu in the embodiment of the present invention, a solid line in the graph represents a hardware-in-loop simulation curve, and a dashed line Identivalue represents an electromechanical transient simulation curve. The testing method of the actual measurement modeling integrated automatic testing system provided by the invention can realize the integrated test of the whole actual measurement modeling process of the new energy source controller from the hardware-in-loop test of the new energy source controller to the parameter identification of the new energy source controller and the electromechanical transient modeling, can intuitively and accurately obtain the identification result of each parameter, carries out electromechanical transient simulation by operating PSASP, automatically carries out error analysis, and carries out the reactive current component Iq during the parameter crossing period set_LV Reactive current coefficient K 1_Iq_LV And K 2_Iq_LV Active current component Ip during ride-through set_LV And active current coefficient K 1_Ip_LV And K 2_Ip_LV The identification result and the error analysis are visually displayed in the automatic test system.
The above-described embodiments are merely preferred embodiments of the present invention, and should not be construed as limiting the present invention, and the scope of the present invention is defined by the claims, and equivalents including technical features described in the claims. I.e., equivalent alterations and modifications within the scope hereof, are also intended to be within the scope of the invention.

Claims (5)

1. The utility model provides an automatic test system of actual measurement modeling integration which characterized in that: the device comprises a test module, an identification module and an analysis module, wherein the test module is electrically connected with the identification module;
the test module is used for hardware-in-loop simulation test of the new energy controller, provides measured data support for the identification module, and can implement automatic test according to the data requirement of the identification working condition;
the identification module is used for identifying the parameters of the electromechanical model of the new energy controller, and the parameter identification is based on the actual measurement data of the hardware-in-the-loop, and automatically modifies each parameter to be identified in the identification model by compiling an identification algorithm until the identification precision requirement is met and the optimal identification parameter is automatically output;
the analysis module is used for a new energy electromechanical transient state modeling test, verifying the correctness of the parameter identification result in the identification module, automatically performing electromechanical transient state simulation by setting different test working conditions, and automatically performing error analysis on each simulation result and a hardware-in-loop test result.
2. The integrated automatic test system for measurement and modeling according to claim 1, wherein: the test module comprises a working condition setting, model compiling, model downloading, model running and report output function module, wherein the working condition setting is a test working condition for setting a new energy controller and is used for passing through working conditions of high and low voltages under different voltage drop or lifting degrees; the model compiling is used for compiling the simulation model into a code which can be recognized by the simulator; the model downloading is to download the simulation model into a simulation machine; the model operation is used for controlling the operation of the model in the simulation machine; and the report output is to output the hardware-in-loop simulation result in a report form, and can modify a report output format according to the data requirement.
3. The integrated automatic test system for actual measurement and modeling according to claim 1, wherein: the identification module comprises a data calling function module, a parameter modifying function module, a model running function module, a result comparing function module and a parameter outputting function module; the data call is to call hardware-in-loop simulation result data in the test module; the parameters are modified into parameters to be identified in the modified identification model; the model operation controls the operation of the identification model; the result comparison is the difference comparison between the hardware-in-the-loop simulation result and the identification model simulation result; the parameter output is to output an optimal identification parameter obtained by identification.
4. The integrated automatic test system for measurement and modeling according to claim 1, wherein: the analysis module comprises a parameter importing module, a data calling module, a working condition switching module, a model operation module and an error analysis function module, wherein the parameter importing module is used for importing the optimal identification parameters output by the identification module into the electromechanical transient model; the data call is to call hardware-in-loop simulation result data in the test module; the working condition is switched to the testing working condition of the electromechanical transient model, and the testing working condition is switched to the same testing working condition as the hardware-in-loop simulation model in the testing module; the model operation is simulation operation of controlling an electromechanical transient model; and the error analysis is error calculation of a hardware-in-loop simulation result and an electromechanical transient model simulation result.
5. The method for testing a measurement and modeling integrated automatic test system according to any one of claims 1 to 4, wherein:
s1: performing hardware-in-the-loop simulation test:
s1.1: automatically opening the RT-LAB of hardware-in-the-loop test software through Python, and positioning the position of each test button in the RT-LAB software;
s1.1: setting a test working condition switching button to change the test working condition according to the identification requirement;
s1.1: controlling a mouse to automatically run by using a pyautogui module in Python software, sequentially clicking each button in the RT-LAB software, automatically compiling, downloading and running a hardware-in-loop simulation model, and automatically storing a test result;
s2: and (3) performing parameter identification:
s2.1: constructing an identification model in PSASP software and determining each parameter to be identified as a reactive current component Iq during crossing set_LV Reactive current coefficient K 1_Iq_LV And K 2_Iq_LV Active current component Ip during ride-through set_LV And active current coefficient K 1_Ip_LV And K 2_Ip_LV
S2.2: accessing each parameter to be identified in a PSASP software database by using a pymysql module in Python software, automatically modifying each parameter to be identified in an identification model by compiling an identification algorithm, and controlling the automatic operation of the identification model in the PSASP by using a pyautogui module in the Python software;
s2.3: comparing the hardware-in-loop test result with each simulation result of the model in the PSASP until the identification precision requirement is met, and automatically outputting the optimal identification parameters;
s3: carrying out electromechanical transient modeling test of a new energy:
s3.1: accessing each parameter in the database by using a pymysql module and automatically transmitting the identified parameters to the electromechanical transient model through Python according to the parameters obtained in the identification module;
s3.2: a test condition switching button is set through Pyhton, and a pyautogui module is used for controlling an electromechanical transient model in the PSASP to perform automatic simulation calculation;
s3.3: and automatically performing curve comparison and error analysis on the electromechanical transient simulation calculation result and the hardware-in-the-loop simulation result.
CN202211446047.1A 2022-11-18 2022-11-18 Automatic test system and test method for integration of actual measurement and modeling Pending CN115729211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211446047.1A CN115729211A (en) 2022-11-18 2022-11-18 Automatic test system and test method for integration of actual measurement and modeling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211446047.1A CN115729211A (en) 2022-11-18 2022-11-18 Automatic test system and test method for integration of actual measurement and modeling

Publications (1)

Publication Number Publication Date
CN115729211A true CN115729211A (en) 2023-03-03

Family

ID=85296567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211446047.1A Pending CN115729211A (en) 2022-11-18 2022-11-18 Automatic test system and test method for integration of actual measurement and modeling

Country Status (1)

Country Link
CN (1) CN115729211A (en)

Similar Documents

Publication Publication Date Title
CN111579982B (en) Relay protection automatic test system and test method thereof
CN105426300B (en) Standard conformance test system and method for CIM/E model of power system
CN110119570B (en) Actually measured data driven wind farm model parameter checking method
CN106970276A (en) Relay protection device of intelligent substation intelligent test system and its method of testing
CN103439592A (en) Method for intelligently testing intelligent substation on site
CN109698521B (en) Low-penetration characteristic identification method of photovoltaic inverter based on measured data
WO2021147281A1 (en) Device and method for performing quantitative evaluation testing of power distribution switch
CN105629180A (en) Test method, test device and controller
CN112630565A (en) Automatic testing and analyzing system and method for relay protection of intelligent substation
CN106405286B (en) The automatic test approach and system of quality monitoring device of electrical energy
CN103869801A (en) Test method of nuclear power plant instrumentation control logic function block and system
CN103323714A (en) Automatic test method based on report template technology in intelligent substation test system
CN115358079B (en) Construction method and impedance characteristic evaluation method of real-time simulation model of wind power station
CN112416758A (en) Integrated test system and method for intelligent substation
CN107247827B (en) Virtual terminal model modeling and automatic wiring method based on machine learning
Johnson et al. Automating the Sandia advanced interoperability test protocols
CN112287540A (en) Electromagnetic transient joint simulation method for accessing wind power plant to power grid
CN103308808A (en) System and method for testing secondary device of intelligent substation automatically
CN101893891B (en) Laboratory test system and method of wind driven generator control system
CN110847111A (en) Method for acquiring hydropower station gate scheduling parameters based on semi-physical simulation
CN111668938B (en) Method for realizing analog remote control of electric power measurement and control device
CN115729211A (en) Automatic test system and test method for integration of actual measurement and modeling
CN108233356B (en) Consistency evaluation method and evaluation platform for photovoltaic inverter controller
CN201804271U (en) Laboratory test system for control system of wind-driven generator
CN105699914A (en) A power supply product energy efficiency automatic test method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination