Summary of the invention
In view of this, the invention provides a kind of electric energy metrical emulation mode, device and system, to realize improving general degree and electric energy meter metering accuracy under actual application environment to electric energy meter calibration.
A kind of electric energy metrical emulation mode comprises:
The voltage and current parameter of the actual load that collects and/or virtual load inputed to carry out analog to digital conversion in the dSPACE system, obtain translation data, described dSPACE system embedded matrix laboratory MATLAB platform;
Described translation data is sent to described MATLAB platform and calls electric energy metrical algorithm model storehouse and carry out electric energy metrical emulation and analysis.
The load of the reality that present embodiment will collect and the electric parameter of virtual load, through the Parameters Calculation processing of dSPACE system and the algorithm invokes and the software extensions function of described MATALAB platform, realized the algorithm optimization of collection of actual load electric parameter and processing and non-sinusoidal reactive measurement, can be to the emulation of electric energy meter metering accuracy and the analysis of different principle and algorithm, thereby for selecting rational measuring principle that technical basis is provided according to the actual load situation, guaranteed the general degree of electric energy metering verification, and the test accuracy of electric energy meter under actual application environment.
Preferably, when the load that collects is actual load, utilize the isolation processing of the voltage and current parameter of the actual load that sensor acquisition arrives, be converted to electric signal with described dSPACE system matches through modulate circuit.
The voltage of sensor acquisition actual load, current parameters also are converted into the electric signal that the suitable dSPACE of isolation handles.Described modulate circuit realizes that impedance matching, signal amplify and filter function.
Preferably, when the load that collects is virtual load, call the specified value source in the standard source model bank, the voltage and current parameter that utilizes described specified value source to calculate by described MATALAB platform inputs to generation standard source signal among the described dSPACE.
Typical harmonic source signal is provided in the described standard source model bank, or, simulates output actual electric network voltage, current signal etc. from the standard source signal that on-the-spot recorder data forms.
Preferably, under described MATALAB platform, make up visualization interface, show the result of electric energy metrical emulation and analysis, and call the algorithm in described electric energy metrical algorithm model storehouse and the specified value source in the described standard source model bank by graphic user interface GUI.
Described MATALAB Platform Implementation to the control of described dSPACE system with the simulation electric energy meter, visualization interface based on described platform shows the electric energy metrical result, and have the algorithm that calls electric energy metrical algorithm model storehouse and the specified value source in the described standard source model bank, thereby make described MATALAB platform can carry out electric energy metrical emulation and analysis.
A kind of electric energy metrical simulator comprises: dSPACE system, matrix experiment chamber MATALAB platform and electric energy metrical algorithm model storehouse, wherein:
The voltage and current parameter of the actual load that collects and/or virtual load inputed to carry out analog to digital conversion in the dSPACE system, obtain translation data, described dSPACE system embedded matrix laboratory MATLAB platform;
Matrix experiment chamber MATALAB platform carries out electric energy metrical emulation and analysis with the translation data that receives in conjunction with the electric energy metrical algorithm model storehouse assignment algorithm model that calls.
Preferably, when described load is actual load, described device also comprises: the signals collecting front-end equipment comprises: gather the sensor of actual load voltage and current parameter, and this parameter is converted to modulate circuit with the electric signal of described dSPACE system matches through isolation processing.
Preferably, when the load that collects is virtual load, also comprise: the standard source model bank, specified value source in the described standard source model bank of described master pattern library call, the voltage and current parameter that utilizes described specified value source to calculate by described MATALAB platform input in the described dSPACE system and produce the standard source signal.
Apparatus and method correspondence in the above-mentioned embodiment, made up simulator based on dSPACE platform and MATALAB system, the software environment that has high-speed computing and be easy to debug and expand, electric parameter collection, the analysis of non-sinusoidal reactive measurement of actual load have been guaranteed, realized the general degree of electric energy metering verification, and the test accuracy of electric energy meter under actual application environment.
Preferably, described device also comprises: the electric energy metrical visualization interface, this interface makes up by graphic user interface GUI under described MATALAB platform, be used to show the electric energy metrical simulation result, and call the algorithm in described electric energy metrical algorithm model storehouse and electric energy metrical emulation and analysis are carried out in the specified value source in the described standard source model bank.
Preferably, described device also comprises: with the gps clock module that described dSPACE system joins, this module clock signal is calibrated described dSPACE internal system clock.
The module of gps clock described in the present embodiment has improved accuracy of timekeeping, realizes the synchronized sampling to voltage, current signal and three-phase voltage, current signal, and the time reference of a plurality of tested electric energy meters also can be provided.
A kind of electric energy metering simulation system comprises: actual load and/or virtual load, electric energy metering verification device, processor, interface circuit and tested electric energy meter, wherein:
Described electric energy metrical simulator comprises: dSPACE system, matrix experiment chamber MATALAB platform and electric energy metrical algorithm model storehouse, wherein:
The voltage and current parameter of the actual load that collects and/or virtual load inputed to carry out analog to digital conversion in the dSPACE system, obtain translation data, described dSPACE system embedded matrix laboratory MATLAB platform;
Matrix experiment chamber MATALAB platform carries out electric energy metrical emulation and analysis with the translation data that receives in conjunction with the electric energy metrical algorithm model storehouse assignment algorithm model that calls.
Described processor and described dSPACE system communication, described actual load is connected with described dSPACE system with described tested electric energy meter respectively by described interface circuit.
Described system and said method, device are corresponding respectively, this system combination processor, processor can be terminal, described tested electric energy meter can connect a plurality of by described interface circuit, the while cooperates with described system carries out emulation.
Preferably, described electric energy metrical simulator also comprises: the signals collecting front-end equipment, when described load is actual load, described signals collecting front-end equipment comprises: gather the sensor of actual load voltage and current parameter, and this parameter is converted to modulate circuit with the electric signal of described dSPACE system matches through isolation processing.
Preferably, described electric energy metrical simulator also comprises: the standard source model bank, when the load that collects is virtual load, described standard source model bank is called the specified value source in the described standard source model bank, and the voltage and current parameter that utilizes described specified value source to calculate by described MATALAB platform inputs in the described dSPACE system and produces the standard source signal.
From above-mentioned technical scheme as can be seen, the embodiment of the invention is changed in the dSPACE system that has embedded the MATLAB platform and is handled, form metering algorithm model storehouse according to Power Theory establishment metering algorithm, can carry out emulation and analysis to the electric energy meter metering accuracy of different principle and algorithm, overcome the limitation that the standard scale of different principle exerts an influence and causes verification result in the prior art; And utilize the Parameters Calculation of dSPACE system to handle and the algorithm invokes and the software extensions function of described MATALAB platform voltage, the current parameter of the actual load that collects and/or virtual load, realize the algorithm optimization of collection of actual load electric parameter and processing and non-sinusoidal reactive measurement, improved the metering accuracy of electric energy meter under actual application environment.
Embodiment
For quote and know for the purpose of, hereinafter the technical term of Shi Yonging, write a Chinese character in simplified form or abridge and be summarized as follows:
The dSPACE:dSPACE real-time emulation system is that a cover by the exploitation of German dSPACE company is based on the control system exploitation of MATLAB/Simulink and the software and hardware workbench of hardware-in-the-loop simulation;
MATLAB:MATLAB is the abbreviation of matrix experiment chamber (Matrix Laboratory), be the business mathematics software that U.S. MathWorks company produces, the advanced techniques computational language and the interactive environment that are used for algorithm development, data visualization, data analysis and numerical evaluation mainly comprise MATLAB and Simulink two large divisions;
GUI:Graphical User Interface, graphic user interface refers to the computer operation user interface that adopts graphics mode to show;
A/D conversion: analog/digital conversion;
Gps clock module: be a kind of low-power wireless electric signal of accepting the gps satellite emission, by calculating the receiving trap of gps time.
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention discloses electric energy metrical emulation mode, device and system, to realize improving general degree and electric energy meter metering accuracy under actual application environment to electric energy meter calibration.
Fig. 1 shows a kind of electric energy metrical emulation mode, comprising:
Step 11: the voltage and current parameter of the actual load that collects and/or virtual load inputed to carry out analog to digital conversion in the dSPACE system, obtain translation data, described dSPACE system embedded matrix laboratory MATLAB platform;
Described dSPACE system has realized the complete seamless link with MATLAB/Simulink/RTW.The dSPACE real-time system has real-time, reliability height, advantage such as extendibility is good.Processor in the dSPACE hardware system has high-speed computing, and has been equipped with abundant I/O support, and the user can make up as required; Software environment powerful and easy to use comprises that code generates automatically/downloads and test/kit debugged.
Step 12: described translation data is sent to described MATLAB platform and calls electric energy metrical algorithm model storehouse and carry out electric energy metrical emulation and analysis.
Electric energy metrical algorithms such as that described electric energy metrical algorithm comprises is meritorious, idle, first-harmonic and harmonic wave, provide error compensation at sampling error, the sampled data synchronization, windowed interpolation, quasi-periodicity sampling algorithm, also comprise signal Processing, spectrum analysis algorithm, and can cooperate visualization model to show.
With the load of the reality that collects and the electric parameter of virtual load, through the Parameters Calculation processing of dSPACE system and the algorithm invokes and the software extensions function of described MATALAB platform, realized the algorithm optimization of collection of actual load electric parameter and processing and non-sinusoidal reactive measurement, especially the electric energy meter to different principle carries out emulation and analysis, thereby for selecting rational measuring principle that technical basis is provided according to the actual load situation, guaranteed the general degree of electric energy metering verification, and the test accuracy of electric energy meter under actual application environment.
Fig. 2 shows another electric energy metrical emulation mode, and this embodiment illustrates is situation when being actual loading about load, comprising:
Step 21: utilize the isolation processing of the voltage and current parameter of the actual load that sensor acquisition arrives, be converted to electric signal with described dSPACE system matches through modulate circuit;
The voltage of described sensor acquisition actual load, current parameters, the electric signal that the suitable described dSPACE that load voltage, current conversion are become to isolate handles.For analyzing the higher hamonic wave signal, sensor should have broadband character, high linearity and high precision characteristic, with the simulation high-precision electric energy meter; Modulate circuit realizes that impedance matching, signal amplify and filter function.
Step 22: described electric signal inputed to carry out analog to digital conversion in the dSPACE system, obtain translation data, described dSPACE system embedded matrix laboratory MATLAB platform;
Step 23: described translation data is sent to described MATLAB platform and calls electric energy metrical algorithm model storehouse and carry out electric energy metrical emulation and analysis.
Present embodiment has realized that the actual load electric parameter is gathered and processing, and for the electric energy meter of metering actual load, analysis result has more cogency and accuracy.
Fig. 3 shows a kind of electric energy metrical emulation mode, and this embodiment illustrates is situation when being dummy load about load, comprising:
Step 31: under described MATALAB platform, make up visualization interface by graphic user interface GUI;
Step 32: described electric energy metrical visualization interface calls the specified value source in the standard source model bank, and the voltage and current parameter that utilizes described specified value source to calculate by described MATALAB platform inputs to generation standard source signal among the described Dspace;
Include exemplary voltages, current signal model in the actual electric network in the described standard source model bank, its model derives from typical harmonic source signal on the one hand, also can be formed the standard source signal by the recorder data at scene, simulation is exported actual electric network voltage, current signal or is reappeared on-the-spot voltage, current signal.
Step 33: described electric signal inputed to carry out analog to digital conversion in the dSPACE system, obtain translation data, described dSPACE system embedded matrix laboratory MATLAB platform;
Step 34: described translation data is sent to the visualization interface of described MATLAB platform, and described visualization interface calls electric energy metrical algorithm model storehouse and carries out electric energy metrical emulation and analysis.
Step 35: the result who shows electric energy metrical emulation and analysis.
Described MATALAB Platform Implementation to the control of described dSPACE system with the simulation electric energy meter, visualization interface based on described platform shows the electric energy metrical result, and have the algorithm that calls electric energy metrical algorithm model storehouse and the specified value source in the described standard source model bank, thereby make described MATALAB platform can carry out the electric energy metrical emulation and the analysis of electric energy meter.
Fig. 4 shows a kind of electric energy metrical simulator, comprising: dSPACE system 41, matrix experiment chamber MATALAB platform 42 and electric energy metrical algorithm model storehouse 43, wherein:
The voltage and current parameter of the actual load that collects and/or virtual load inputed to carry out analog to digital conversion in the dSPACE system 41, obtain translation data, described dSPACE system 41 embedded matrix laboratory MATLAB platforms 42;
Matrix experiment chamber MATALAB platform 42 carries out electric energy metrical emulation with the translation data that receives in conjunction with the electric energy metrical algorithm model storehouse 43 assignment algorithm models that call.
Made up simulator in the present embodiment based on dSPACE platform and MATALAB system, the software environment that has high-speed computing and be easy to debug and expand, electric parameter collection, the analysis of non-sinusoidal reactive measurement and research, the electric energy metrical that has guaranteed actual load accuracy and electric energy meter accuracy are as a result examined and determine the technique effect that general degree improves.
Fig. 5 shows another electric energy metrical simulator, something in common is referring to Fig. 4 and description thereof, now only point out explanation with regard to difference, signals collecting front-end equipment 51 has been shown among Fig. 5, when the load that collects is actual load, can integrate described signals collecting front-end equipment 51 in the described device, this equipment can comprise the sensor of gathering actual load voltage and current parameter, and this parameter is converted to modulate circuit with the electric signal of described dSPACE system matches through isolation processing.
Standard source model bank 52, when the load that collects is virtual load, call the specified value source in the described standard source model bank 52, the voltage and current parameter that utilizes described specified value source to calculate by described MATALAB platform 42 inputs in the described dSPACE system 41 and produces the standard source signal;
Electric energy metrical visualization interface 53, this interface is passed through graphic user interface GUI for 42 times at described MATALAB platform and is made up, be used to show the result of electric energy metrical emulation, and call the algorithm in described electric energy metrical algorithm model storehouse 43 and electric energy metrical emulation and analysis are carried out in the specified value source in the described standard source model bank 52;
And the gps clock module 54 of joining with described dSPACE system, this module clock signal is calibrated described dSPACE internal system clock.This gps clock module has improved accuracy of timekeeping, realization is to the synchronized sampling of voltage, current signal and three-phase voltage, current signal, the time reference of a plurality of tested electric energy meters also can be provided, further embody this inventive method and device high pass expenditure and rationality for different electrical energy meter calibrations.
Fig. 6 shows a kind of electric energy metering simulation system, comprising: actual load 61, electric energy metrical simulator 62, processor 63, interface circuit 64 and tested electric energy meter 65, wherein:
Described electric energy metrical simulator 62 comprises: dSPACE system 621, matrix experiment chamber MATALAB platform 622 and electric energy metrical algorithm model storehouse 623, wherein:
The voltage and current parameter of the actual load that collects and/or virtual load inputed to carry out analog to digital conversion in the dSPACE system 621, obtain translation data;
Matrix experiment chamber MATALAB platform 622 carries out electric energy metrical emulation and analysis with the translation data that receives in conjunction with the electric energy metrical algorithm model storehouse 623 assignment algorithm models that call.
Described processor 63 and 621 communications of described dSPACE system, described actual load is connected with described dSPACE system 621 with described tested electric energy meter 65 respectively by described interface circuit 64.Described system distinguishes corresponding with said method, device, this system combination processor, processor can be terminal, described tested electric energy meter can connect a plurality of by described interface circuit, cooperate with described system simultaneously and examine and determine, described interface circuit can be the standard harmonic source device and realizes.
Signals collecting front-end equipment 624, when the load that collects is actual load, can integrate described signals collecting front-end equipment 624 in the described device, this equipment can comprise the sensor of gathering actual load voltage and current parameter, and this parameter is converted to modulate circuit with the electric signal of described dSPACE system matches through isolation processing, but be not limited to this kind implementation.
Further, electric energy metrical visualization interface 625, this interface makes up by graphic user interface GUI under described MATALAB platform, be used to show the result of electric energy metrical emulation, and call the algorithm in described electric energy metrical algorithm model storehouse and electric energy metrical emulation and analysis are carried out in the specified value source in the described standard source model bank;
Fig. 6 shows the standard source model bank 626 of described electric energy metrical simulator, when the load that collects is virtual load, call the specified value source in the described standard source model bank 626, the voltage and current parameter that utilizes described specified value source to calculate by described MATALAB platform 622 inputs in the described dSPACE system 621 and produces the standard source signal.
Other repeat no more for diagram and the corresponding explanation referring to Fig. 4 and Fig. 5 of the structure of electric energy metrical simulator herein.
Fig. 7 shows the interface circuit of electric energy metering simulation system, comprising:
First interface circuit 71, second interface circuit 72 and harmonic source device 73, work out the electric energy metrical algorithm of corresponding dissimilar electric energy meters forms metering algorithm model storehouse, moves on the MATLAB platform according to Power Theory, actual load and/or virtual electric parameter are by being input to after first interface circuit, the 71 conversion conditionings in the described dSPACE system, and the result relatively finishes electric energy meter emulation and analysis according to metering;
Become the harmonic source model bank by on-the-spot faithful record waveform or harmonic wave mathematics model group, after virtual electric parameter amplifies by 72 conversion of second interface circuit, harmonic source device 73, obtain containing the charged parameter of virtual negative of harmonic wave, thereby carry out the analysis of the electric energy metrical relevant issues under the various harmonic wave situations.
Need to prove that the embodiment of described interface circuit has multiple, be not limited to this kind way of realization, other modes are not done and are given unnecessary details.
In sum:
The embodiment of the invention is changed in the dSPACE system that has embedded the MATLAB platform and is handled, form metering algorithm model storehouse according to Power Theory establishment metering algorithm, all can carry out emulation and analysis at different electric energy meters, can carry out emulation and analysis to the electric energy meter metering accuracy of different principle and algorithm, overcome the limitation that the standard scale of different principle exerts an influence and causes verification result in the prior art; And utilize the Parameters Calculation of dSPACE system to handle and the algorithm invokes and the software extensions function of described MATALAB platform voltage, the current parameter of the actual load that collects and/or virtual load, realize the algorithm optimization of collection of actual load electric parameter and processing and non-sinusoidal reactive measurement, improved the metering accuracy of electric energy meter under actual application environment.
Each embodiment adopts the mode of going forward one by one to describe in this instructions, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For disclosed device of embodiment and system, because it is corresponding with the embodiment disclosed method, so description is fairly simple, relevant part partly illustrates referring to method and gets final product.
It will be understood by those skilled in the art that and to use many different technologies and in the technology any one to come expression information, message and signal.For example, the message of mentioning in the above-mentioned explanation, information can be expressed as voltage, electric current, electromagnetic wave, magnetic field or magnetic particle, light field or above combination in any.
The professional can also further recognize, the unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software clearly is described, the composition and the step of each example described prevailingly according to function in the above description.These functions still are that software mode is carried out with hardware actually, depend on the application-specific and the design constraint of technical scheme.The professional and technical personnel can use distinct methods to realize described function to each specific should being used for, but this realization should not thought and exceeds scope of the present invention.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can directly use the software module of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined herein General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.