CN106772204B - The emulation mode and device of electric energy meter metering circuit - Google Patents

The emulation mode and device of electric energy meter metering circuit Download PDF

Info

Publication number
CN106772204B
CN106772204B CN201611055644.6A CN201611055644A CN106772204B CN 106772204 B CN106772204 B CN 106772204B CN 201611055644 A CN201611055644 A CN 201611055644A CN 106772204 B CN106772204 B CN 106772204B
Authority
CN
China
Prior art keywords
circuit
current
voltage
electric energy
energy meter
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.)
Active
Application number
CN201611055644.6A
Other languages
Chinese (zh)
Other versions
CN106772204A (en
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.)
Harbin Institute of Technology
State Grid Corp of China SGCC
North China Electric Power Research Institute Co Ltd
Electric Power Research Institute of State Grid Jibei Electric Power Co Ltd
Original Assignee
Harbin Institute of Technology
State Grid Corp of China SGCC
North China Electric Power Research Institute Co Ltd
Electric Power Research Institute of State Grid Jibei Electric Power Co Ltd
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 Harbin Institute of Technology, State Grid Corp of China SGCC, North China Electric Power Research Institute Co Ltd, Electric Power Research Institute of State Grid Jibei Electric Power Co Ltd filed Critical Harbin Institute of Technology
Priority to CN201611055644.6A priority Critical patent/CN106772204B/en
Publication of CN106772204A publication Critical patent/CN106772204A/en
Application granted granted Critical
Publication of CN106772204B publication Critical patent/CN106772204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Supply And Distribution Of Alternating Current (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention proposes the emulation modes and device of a kind of electric energy meter metering circuit, and wherein method includes: the parameter of the schematic diagram and A/D conversion circuit that obtain electric energy meter;The digital circuit models of A/D conversion circuit are established in Simulink software according to the parameter;According to the schematic diagram of the electric energy meter, analog circuit model is established in Saber software;Data connection is carried out to analog circuit model described in the digital circuit models and Saber software in Simulink software using the SaberCosim module in the Saber software, the digital circuit models and analog circuit model collectively constitute associative simulation model;It runs the Saber software and associative simulation is carried out to the associative simulation model, and calculate the simulation result of the electric energy meter metering circuit.The present invention realizes the mutual supplement with each other's advantages between simulation software, so that more accurate to the simulation of intelligent electric meter metering process by the way that the data of Simulink and Saber are swapped transmitting.

Description

The emulation mode and device of electric energy meter metering circuit
Technical field
The present invention relates to modeling and simulating field more particularly to a kind of emulation modes and device of electric energy meter metering circuit.
Background technique
Intelligent electric energy meter is the important equipment for establishing nationwide smart grid, and energy metering accuracy direct relation is used The vital interests at family and national grid.The metering circuit of intelligent electric energy meter can be divided into two portions of analog circuit and digital circuit Point.Currently, seldom considering that electric energy meter is practical just for one of part, and when emulating to the simulation analysis that electric energy meter carries out The parameters numbers calculation method such as circuit operation principles and active power such as A/D conversion inside metering chip.This meeting is so that electric energy Meter amount Simulation results not can accurately reflect border metering situation in fact, and then influence electric energy meter design result.
Summary of the invention
It is an object of the present invention to solve that single simulation software can not be applied in current electric energy meter simulation process while meeting For in the ammeter course of work digital process and simulation process accurately emulate the problem of.
In order to achieve the above object, the invention proposes a kind of emulation modes of intelligent electric energy meter metering circuit, comprising: obtains Take the schematic diagram of electric energy meter and the parameter of A/D conversion circuit;A/D conversion electricity is established in Simulink software according to the parameter The digital circuit models on road;According to the schematic diagram of the electric energy meter, analog circuit model is established in Saber software;Using institute The SaberCosim module in Saber software is stated in the digital circuit models and Saber software in Simulink software The analog circuit model carries out data connection, and the digital circuit models and analog circuit model collectively constitute associative simulation mould Type;It runs the Saber software and associative simulation is carried out to the associative simulation model, and calculate the electric energy meter metering circuit Simulation result.
Further, the parameter of the A/D conversion circuit of electric energy meter is obtained, and according to the parameter in Simulink software The step of establishing the digital circuit models of A/D conversion circuit includes: the standard electric for obtaining the A/D conversion circuit of the electric energy meter Pressure, register digit and data renewal frequency;According to the normal voltage, register digit and data renewal frequency, make With the digital circuit models of MATLAB language construct A/D conversion circuit, and the voltage amplification times of the digital circuit models is set Number, firewire current amplification factor, neutral line current amplification factor.
Further, the schematic diagram according to the electric energy meter, establishes the step of analog circuit model in Saber software It suddenly include: setting sinusoidal voltage source, sinusoidal current source;By building resistance series connection potential-divider network and passive filter circuit, establish Line voltage sample circuit simultaneously acquires network voltage sampled signal;By building resistance series connection potential-divider network and copper-manganese piece being arranged At ideal resistance, establishes firewire current sampling circuit and acquire firewire current sampling signal;By selecting and setting Current Sensor module builds corresponding resistance series connection potential-divider network, establishes neutral line current sample circuit and acquires neutral line current sampling Signal;The line voltage sample circuit, firewire current sampling circuit and zero curve are connected according to the schematic diagram of the electric energy meter Current sampling circuit, sinusoidal voltage source and sinusoidal current source establish the analog circuit model.
Further, it includes: by institute that the operation Saber software, which carries out associative simulation to the associative simulation model, Network voltage sampled signal, firewire current sampling signal and neutral line current sampled signal is stated to be sent in the Simulink software The digital circuit models;The calculation formula of voltage effective value, current effective value, active power and reactive power is discrete Change, the calculation formula of voltage effective value, current effective value, active power after obtaining discretization and reactive power;It will be described Network voltage sampled signal, firewire current sampling signal and neutral line current sampled signal substitute into the voltage after the discretization respectively Virtual value, current effective value, active power and reactive power calculation formula, calculate voltage effective value, current effective value, have Function power and reactive power, and send result to the analog circuit model in the Saber software;Described in setting The simulation step length of Simulink software and Saber software carries out associative simulation to the associative simulation model.
Further, the voltage effective value after the discretization, current effective value, active power and reactive power meter Calculate formula are as follows:
In formula: P is active power;Q is reactive power;IRMSFor current effective value;URMSFor voltage effective value;U (t) is wink When voltage;I (t) is transient current;U (k) is instantaneous voltage sampled value;I (k) is transient current sampled value;T is voltage and current letter Number period;N is the sampling number in a primitive period;Δ t is sampling time interval.
In order to achieve the above object, it is also proposed that a kind of simulator of electric energy meter metering circuit, comprising: schematic diagram and ginseng Number obtains module, for obtaining the schematic diagram of electric energy meter and the parameter of A/D conversion circuit;Digital circuit models establish module, use In the digital circuit models for establishing A/D conversion circuit in Simulink software according to the parameter;Analog circuit model foundation Module establishes analog circuit model for the schematic diagram according to the electric energy meter in Saber software;Associative simulation model is built Formwork erection block, for using the SaberCosim module in the Saber software to the digital circuit in Simulink software Analog circuit model described in model and Saber software carries out data connection, the digital circuit models and analog circuit model Collectively constitute associative simulation model;Simulation run module carries out the associative simulation model for running the Saber software Associative simulation, and calculate the simulation result of the electric energy meter metering circuit.
Further, it includes: parameter acquisition module that the digital circuit models, which establish module, for obtaining the electric energy meter A/D conversion circuit normal voltage, register digit and data renewal frequency;Mathematical model constructing module is used for basis The normal voltage, register digit and data renewal frequency use the number electricity of MATLAB language construct A/D conversion circuit Road model, and the voltage amplification factor of the digital circuit models, firewire current amplification factor, neutral line current times magnification are set Number.
Further, the analog circuit model building module includes: signal excitation setup module, for sinusoidal electricity to be arranged Potential source, sinusoidal current source;Voltage sampling circuit establishes module, for by building resistance series connection potential-divider network and passive filtering electricity Road establishes line voltage sample circuit and acquires network voltage sampled signal;Firewire current sampling circuit establishes module, for leading to It crosses and builds resistance series connection potential-divider network and copper-manganese piece is arranged to ideal resistance, establish firewire current sampling circuit and acquires firewire Current sampling signal;Neutral line current sample circuit establishes module, for taking by selecting and setting Current Sensor module Corresponding resistance series connection potential-divider network is built, neutral line current sample circuit is established and acquires neutral line current sampled signal;Simulation model Module is established, for connecting the line voltage sample circuit, firewire current sampling circuit according to the schematic diagram of the electric energy meter And neutral line current sample circuit, sinusoidal voltage source and sinusoidal current source, establish analog circuit model.
Further, the simulation run module includes: signal transmitting module, is believed for sampling the network voltage Number, firewire current sampling signal and neutral line current sampled signal be sent to the digital circuit mould in the Simulink software Type;Formula descretization module, for by the calculation formula of voltage effective value, current effective value, active power and reactive power Discretization, the calculation formula of voltage effective value, current effective value, active power after obtaining discretization and reactive power;Letter Number computing module, for by the network voltage sampled signal, firewire current sampling signal and neutral line current sampled signal difference The calculation formula of voltage effective value, current effective value, active power after substituting into the discretization and reactive power calculates electricity It is pressed with valid value, current effective value, active power and reactive power, and is sent result to described in the Saber software Analog circuit model;Associative simulation module, for the simulation step length of the Simulink software and Saber software to be arranged, to institute It states associative simulation model and carries out associative simulation.
Further, the voltage effective value after the discretization, current effective value, active power and reactive power meter Calculate formula are as follows:
In formula: P is active power;Q is reactive power;IRMSFor current effective value;URMSFor voltage effective value;U (t) is wink When voltage;I (t) is transient current;U (k) is instantaneous voltage sampled value;I (k) is transient current sampled value;T is voltage and current letter Number period;N is the sampling number in a primitive period;Δ t is sampling time interval.
The emulation mode and device of the electric energy meter metering circuit of the embodiment of the present invention, by being carried out with Saber emulation platform The emulation of analog circuit, and the digital mistake in conjunction with Simulink during the advantage in terms of software control algorithm carrys out analog measurement The data of two softwares are swapped transmitting using SaberCosim module by journey, and the advantage realized between simulation software is mutual It mends, so that more accurate to the simulation of intelligent electric meter metering process.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only Some embodiments of the present invention, for those of ordinary skill in the art, without any creative labor, also Other drawings may be obtained according to these drawings without any creative labor.
Fig. 1 is the flow chart of the emulation mode of the electric energy meter metering circuit of the embodiment of the present invention.
Fig. 2 is the Saber-Simulink associative simulation schematic diagram of the embodiment of the present invention.
Fig. 3 is the structural schematic diagram of the simulator of the electric energy meter metering circuit of the embodiment of the present invention.
Fig. 4 is that the digital circuit models of the embodiment of the present invention establish the structural schematic diagram of module.
Fig. 5 is the structural schematic diagram of the analog circuit model building module of the embodiment of the present invention.
Fig. 6 is the structural schematic diagram of the simulation run module of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment belongs to the range of protection of the invention.
Fig. 1 is the flow chart of the emulation mode of the electric energy meter metering circuit of the embodiment of the present invention, as shown in Figure 1, this implementation The emulation mode for the electric energy meter metering circuit that example proposes, comprising:
S100 obtains the schematic diagram of electric energy meter and the parameter of A/D conversion circuit;
S200 establishes the digital circuit models of A/D conversion circuit according to the parameter in Simulink software;
S300 establishes analog circuit model according to the schematic diagram of the electric energy meter in Saber software;
S400, using the SaberCosim module in the Saber software to the number electricity in Simulink software Analog circuit model described in road model and Saber software carries out data connection, the digital circuit models and analog circuit mould Type collectively constitutes associative simulation model;
S500 runs the Saber software and carries out associative simulation to the associative simulation model, and calculates the electric energy meter The simulation result of metering circuit.
In the step s 100, the schematic diagram of electric energy meter and the parameter of A/D conversion circuit are obtained.The circuit part of electric energy meter by A/D conversion circuit and analog circuit two parts are constituted, and those skilled in the art can voluntarily obtain the schematic diagram of electric energy meter, and root The parameter of A/D conversion circuit, the acquisition modes of these parameters are determined according to the chip handbook of metering chip used in electric energy meter It can or access related data in kind by measurement.The parameter includes normal voltage, register digit, data renewal frequency.
In step s 200, the digital circuit mould of A/D conversion circuit is established in Simulink software according to the parameter Type.Those skilled in the art use the M-Function module of Matlab language construct digital circuit models, the M-Function Gradually comparison A/D conversion circuit algorithm makes the digital circuit models established realize that analog quantity turns to digital quantity for module control It changes.The foundation of the simulation model to electric energy meter digital circuit can be completed as a result,.
In step S200 specific implementation process, the parameter of the A/D conversion circuit of electric energy meter is obtained, and according to the parameter The step of digital circuit models of A/D conversion circuit are established in Simulink software includes: A/D turns for obtaining the electric energy meter Change the normal voltage, register digit and data renewal frequency of circuit;According to the normal voltage, register digit and number According to renewal frequency, using the digital circuit models of MATLAB language construct A/D conversion circuit, and the digital circuit models are set Voltage amplification factor, firewire current amplification factor, neutral line current amplification factor.
In step S300, according to the schematic diagram of the electric energy meter, analog circuit model is established in Saber software.Root According to the schematic diagram of the electric energy meter obtained in the step s 100, by the artificial circuit part of schematic diagram in Saber software into Row is built, to complete analog circuit model.
In step S300 specific implementation process, according to the schematic diagram of the electric energy meter, simulation is established in Saber software The step of circuit model includes:
Sinusoidal voltage source, sinusoidal current source is arranged in step S310.According to the intelligent electric meter principle analysis, with sinusoidal electricity Potential source simulating grid voltage simulates firewire and neutral line current with sinusoidal current source.
Step S320 establishes line voltage sample circuit by building resistance series connection potential-divider network and passive filter circuit And network voltage sampled signal is acquired, sampled signal is extracted by the way of multilevel resistance partial pressure, and passive filter circuit is added.
Step S330 establishes firewire electricity by building resistance series connection potential-divider network and copper-manganese piece being arranged to ideal resistance Stream sample circuit simultaneously acquires firewire current sampling signal, for firewire current sampling circuit, according to the intelligent electric meter schematic diagram, It is measured key components copper-manganese piece and is arranged to ideal resistance, and build corresponding resistance pressure-dividing network.
Step S340 builds corresponding resistance series connection potential-divider network by selecting and set Current Sensor module, It establishes neutral line current sample circuit and acquires neutral line current sampled signal, for neutral line current sample circuit, pass through selection The suitable variation of Current Sensor module setting, obtains low current signal, builds corresponding resistor potential-divider network;
Step S350 connects the line voltage sample circuit, firewire current sample according to the schematic diagram of the electric energy meter Circuit and neutral line current sample circuit, sinusoidal voltage source and sinusoidal current source establish the analog circuit model.
Step S360 connects the line voltage sample circuit, firewire current sample according to the schematic diagram of the electric energy meter Circuit and neutral line current sample circuit, sinusoidal voltage source and sinusoidal current source, establish analog circuit model.
In step S400, using the SaberCosim module in the Saber software to the institute in Simulink software It states analog circuit model described in digital circuit models and Saber software and carries out data connection, the digital circuit models and mould Quasi- circuit model collectively constitutes associative simulation model.Since the foundation of digital circuit models is the simulation in Simulink software The foundation of circuit model is to use SaberCosim software as the interface software of above two software in Saber software, use With the data of digital circuit models and analog circuit model.The digital circuit mould that step S200, step S300 have been had built up Type is attached with analog circuit model, constructs associative simulation model.After the building for completing associative simulation model, enter step S500 runs the Saber software and carries out associative simulation to the associative simulation model, and calculates the electric energy meter metering circuit Simulation result.
In step S400 specific implementation process, the SaberCosim module pair in the Saber software is used Analog circuit model described in the digital circuit models and Saber software in Simulink software carries out data connection, institute It states digital circuit models and analog circuit model collectively constitutes associative simulation model.
Firstly, the network voltage sampled signal, firewire current sampling signal and neutral line current sampled signal are sent to The digital circuit models in the Simulink software;
Then, it by the calculation formula discretization of voltage effective value, current effective value, active power and reactive power, obtains The calculation formula of voltage effective value, current effective value, active power after to discretization and reactive power.The formula are as follows:
In formula: P is active power;Q is reactive power;IRMSFor current effective value;URMSFor voltage effective value;U (t) is wink When voltage;I (t) is transient current;U (k) is instantaneous voltage sampled value;I (k) is transient current sampled value;T is voltage and current letter Number period;N is the sampling number in a primitive period;Δ t is sampling time interval.
Finally, by the network voltage sampled signal, firewire current sampling signal and neutral line current sampled signal generation respectively The calculation formula of voltage effective value, current effective value, active power after entering the discretization and reactive power calculates voltage Virtual value, current effective value, active power and reactive power, and send result to the mould in the Saber software Quasi- circuit model;The simulation step length of the Simulink software and Saber software is set, the associative simulation model is joined Close emulation.
Although it should be noted that being above illustrated to the elaboration of embodiment according to sequence of steps, simultaneously Emulation mode of the invention, the sequencing that the present invention implements each step must be just able to achieve according to sequence described above by not representing Without limitation.
Fig. 2 is the Saber-Simulink associative simulation schematic diagram of the embodiment of the present invention, in conjunction with Fig. 1 and Fig. 2, to the present invention The emulation mode of electric energy meter metering circuit be described further.Refering to what is shown in Fig. 2, the simulation model master of electric energy meter metering circuit It is divided into three parts: artificial circuit part, digital circuits section and emulation interface.Digital circuit models and analog circuit model Collectively constitute associative simulation model, wherein artificial circuit part includes: that manganese copper diverter equivalent model, current transformer are equivalent Model, resistance pressure-dividing network and analog signal excitation;Digital circuits section includes: metering chip Simulink model, micro-control Device Simulink model processed.Emulation interface is Saber-MATLAB/Simulink emulation interface.
After obtaining the parameter of schematic diagram and A/D conversion circuit of electric energy meter, taken first using the parameter of A/D conversion circuit Build digital circuit models, wherein metering chip Simulink model and microcontroller Simulink model have collectively constituted number Circuit model uses MATLAB language construct according to the normal voltage, register digit and data renewal frequency Simulink model and microcontroller Simulink model, and the voltage amplification factor of the digital circuit models, firewire are set Current amplification factor, neutral line current amplification factor;Then analog circuit model is constructed using electric energy meter schematic diagram.Wherein, it is arranged Sinusoidal voltage source, sinusoidal current source are motivated as analog signal, are used to simulating grid voltage and electric current, are established manganese copper diverter Equivalent model, for simulating the copper-manganese piece current sample part in ammeter;According to schematic diagram, current transformer equivalent model is set, For simulating the current transformer current sample part in electric energy meter;Resistance pressure-dividing network is constructed as network voltage and samples electricity Road, for simulating multilevel resistance pressure sampling circuit part in ammeter.Completion digital circuit models are taken with analog circuit model After building, it is emulation interface by setting Saber-MATLAB/Simulink, realizes digital circuit models and analog circuit model Data connection.
After completing electric energy meter associative simulation model, runs the Saber software and the associative simulation model is combined Emulation, the transmission sequence of specific data are as follows: analog circuit model will be surveyed by Saber-MATLAB/Simulink emulation interface Network voltage sampled signal, firewire current sampling signal and the neutral line current sampled signal measured are transferred to digital circuit models. Metering chip Simulink model in following digital circuit models to voltage effective value, current effective value, active power with And the calculation formula discretization of reactive power, then by the voltage value of network voltage sampled signal, firewire current sampling signal Voltage effective value, current effective value, active power after current value and the current value of neutral line current sampled signal substitution discretization And the calculation formula of reactive power, voltage effective value, current effective value, active power and reactive power are obtained, then should A little parameters return to analog circuit model by Saber-MATLAB/Simulink emulation interface and carry out to the data of calculating It updates.Above-mentioned process is repeated with this, operation emulation is carried out with the simulation step length of the Simulink of setting and Saber, until arriving Up to the iterative steps or the condition of convergence of setting, to complete the emulation of energy table metering circuit.Illustrate herein, electric energy meter joint is imitative During being emulated, the transmission for calculating data is not limited to digital circuit models and analog circuit model in true mode State the data transfer sequence of two models.
After describing the emulation mode of electric energy meter metering circuit of the embodiment of the present invention, next, to of the invention real The simulator for applying the electric energy meter metering circuit of example is introduced.The implementation of the device may refer to the implementation of the above method, weight Multiple place repeats no more.Term " module " used below, " unit " can be the software for realizing predetermined function and/or hard Part.
Fig. 3 is the structural schematic diagram of the simulator of the electric energy meter metering circuit of the embodiment of the present invention, as shown in figure 3, one The simulator of kind electric energy meter metering circuit, comprising: schematic diagram and parameter acquisition module 100, for obtaining the principle of electric energy meter The parameter of figure and A/D conversion circuit;Digital circuit models establish module 200, are used for according to the parameter in Simulink software The middle digital circuit models for establishing A/D conversion circuit;Analog circuit model building module 300, for according to the electric energy meter Schematic diagram establishes analog circuit model in Saber software;Associative simulation model building module 400, for described in use SaberCosim module in Saber software is to institute in the digital circuit models and Saber software in Simulink software It states analog circuit model and carries out data connection, the digital circuit models and analog circuit model collectively constitute associative simulation mould Type;Simulation run module 500 carries out associative simulation to the associative simulation model for running the Saber software, and calculates The simulation result of the electric energy meter metering circuit.
In the specific implementation process, Fig. 4 is that the digital circuit models of the embodiment of the present invention establish the structural schematic diagram of module, As shown in figure 4, it includes: parameter acquisition module 210 that the digital circuit models, which establish module 200, for obtaining the electric energy meter A/D conversion circuit normal voltage, register digit and data renewal frequency;Mathematical model constructing module 220 is used for root According to the normal voltage, register digit and data renewal frequency, the number of MATLAB language construct A/D conversion circuit is used Circuit model, and the voltage amplification factor of the digital circuit models, firewire current amplification factor, neutral line current times magnification are set Number.
In the specific implementation process, Fig. 5 is the structural schematic diagram of the analog circuit model building module of the embodiment of the present invention, As shown in figure 5, the analog circuit model building module 300 includes: signal excitation setup module 310, for sinusoidal electricity to be arranged Potential source, sinusoidal current source;Voltage sampling circuit establishes module 320, for by building resistance series connection potential-divider network and passive filter Wave circuit establishes line voltage sample circuit and acquires network voltage sampled signal;Firewire current sampling circuit establishes module 330, for establishing firewire current sampling circuit by building resistance series connection potential-divider network and copper-manganese piece being arranged to ideal resistance And acquire firewire current sampling signal;Neutral line current sample circuit establishes module 340, for by selecting and setting Current Sensor module builds corresponding resistance series connection potential-divider network, establishes neutral line current sample circuit and acquires neutral line current sampling Signal;Simulation model establishes module 350, for according to the schematic diagram of the electric energy meter connect the line voltage sample circuit, Firewire current sampling circuit and neutral line current sample circuit, sinusoidal voltage source and sinusoidal current source, establish analog circuit mould Type.
In the specific implementation process, Fig. 6 is the structural schematic diagram of the simulation run module of the embodiment of the present invention, such as Fig. 6 institute Show, the simulation run module 500 includes: signal transmitting module 510, for the network voltage sampled signal, firewire is electric Stream sampled signal and neutral line current sampled signal are sent to the digital circuit models in the Simulink software;Formula from Dispersion module 520, for by the calculation formula discretization of voltage effective value, current effective value, active power and reactive power, The calculation formula of voltage effective value, current effective value, active power after obtaining discretization and reactive power;Signal calculates mould Block 530, for the network voltage sampled signal, firewire current sampling signal and neutral line current sampled signal to be substituted into institute respectively It is effective to calculate voltage for the calculation formula of voltage effective value, current effective value, active power after stating discretization and reactive power Value, current effective value, active power and reactive power, and send result to the electricity of the simulation in the Saber software Road model;Associative simulation module 540, for the simulation step length of the Simulink software and Saber software to be arranged, to described It closes simulation model and carries out associative simulation.
In the specific implementation process, the voltage effective value after the discretization, current effective value, active power and idle The calculation formula of power are as follows:
In formula: P is active power;Q is reactive power;IRMSFor current effective value;URMSFor voltage effective value;U (t) is wink When voltage;I (t) is transient current;U (k) is instantaneous voltage sampled value;I (k) is transient current sampled value;T is voltage and current letter Number period;N is the sampling number in a primitive period;Δ t is sampling time interval.
The emulation mode of electric energy meter metering circuit of the invention and the embodiment of device, by with Saber emulation platform into The emulation of row analog circuit, and the number in conjunction with Simulink during the advantage in terms of software control algorithm carrys out analog measurement The data of two softwares are swapped transmitting using SaberCosim module, realize the advantage between simulation software by process Complementation, so that more accurate to the simulation of intelligent electric meter metering process.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (10)

1. a kind of emulation mode of electric energy meter metering circuit characterized by comprising
Obtain the schematic diagram of electric energy meter and the parameter of A/D conversion circuit;
The digital circuit models of A/D conversion circuit are established in Simulink software according to the parameter;
According to the schematic diagram of the electric energy meter, analog circuit model is established in Saber software;
Using the SaberCosim module in the Saber software in Simulink software the digital circuit models with Analog circuit model described in Saber software carry out data connection, the digital circuit models with common group of analog circuit model At associative simulation model;
It runs the Saber software and associative simulation is carried out to the associative simulation model, and calculate the electric energy meter metering circuit Simulation result.
2. the emulation mode of electric energy meter metering circuit according to claim 1, which is characterized in that obtain the A/D of electric energy meter The parameter of conversion circuit, and the digital circuit models of A/D conversion circuit are established according to the parameter in Simulink software Step includes:
Obtain the normal voltage, register digit and data renewal frequency of the A/D conversion circuit of the electric energy meter;
According to the normal voltage, register digit and data renewal frequency, MATLAB language construct A/D conversion circuit is used Digital circuit models, and the voltage amplification factor of the digital circuit models, firewire current amplification factor, neutral line current are set Amplification factor.
3. the emulation mode of electric energy meter metering circuit according to claim 1, which is characterized in that described according to the electric energy The schematic diagram of table, the step of analog circuit model is established in Saber software include:
Sinusoidal voltage source, sinusoidal current source are set;
By building resistance series connection potential-divider network and passive filter circuit, establishes line voltage sample circuit and acquire network voltage Sampled signal;
By building resistance series connection potential-divider network and copper-manganese piece being arranged to ideal resistance, establish firewire current sampling circuit and is adopted Collect firewire current sampling signal;
By selecting and setting Current Sensor module, corresponding resistance series connection potential-divider network is built, neutral line current is established Sample circuit simultaneously acquires neutral line current sampled signal;
The line voltage sample circuit, firewire current sampling circuit and zero curve electricity are connected according to the schematic diagram of the electric energy meter Sample circuit, sinusoidal voltage source and sinusoidal current source are flowed, the analog circuit model is established.
4. the emulation mode of electric energy meter metering circuit according to claim 3, which is characterized in that described in the operation Saber software carries out associative simulation to the associative simulation model
The network voltage sampled signal, firewire current sampling signal and neutral line current sampled signal are sent to described The digital circuit models in Simulink software;
By the calculation formula discretization of voltage effective value, current effective value, active power and reactive power, after obtaining discretization Voltage effective value, current effective value, active power and reactive power calculation formula;
The network voltage sampled signal, firewire current sampling signal and neutral line current sampled signal are substituted into respectively described discrete The calculation formula of voltage effective value, current effective value, active power after change and reactive power calculates voltage effective value, electricity Virtual value, active power and reactive power are flowed, and sends result to the analog circuit mould in the Saber software Type;
The simulation step length of the Simulink software and Saber software is set, associative simulation is carried out to the associative simulation model.
5. the emulation mode of electric energy meter metering circuit according to claim 4, which is characterized in that the electricity after the discretization It is pressed with the calculation formula of valid value, current effective value, active power and reactive power are as follows:
In formula: P is active power;Q is reactive power;IRMSFor current effective value;URMSFor voltage effective value;U (t) is instantaneous electricity Pressure;I (t) is transient current;U (k) is instantaneous voltage sampled value;I (k) is transient current sampled value;T is voltage and current signal week Phase;N is the sampling number in a primitive period;Δ t is sampling time interval.
6. a kind of simulator of electric energy meter metering circuit characterized by comprising
Schematic diagram and parameter acquisition module, for obtaining the schematic diagram of electric energy meter and the parameter of A/D conversion circuit;
Digital circuit models establish module, for establishing the number of A/D conversion circuit in Simulink software according to the parameter Miter circuit model;
Analog circuit model building module establishes analog circuit in Saber software for the schematic diagram according to the electric energy meter Model;
Associative simulation model building module, for using the SaberCosim module in the Saber software soft to Simulink Analog circuit model described in the digital circuit models and Saber software in part carries out data connection, the digital circuit Model and analog circuit model collectively constitute associative simulation model;
Simulation run module carries out associative simulation to the associative simulation model for running the Saber software, and calculates institute State the simulation result of electric energy meter metering circuit.
7. the simulator of electric energy meter metering circuit according to claim 6, which is characterized in that the digital circuit models Establishing module includes:
Parameter acquisition module, normal voltage, register digit and the data of the A/D conversion circuit for obtaining the electric energy meter Renewal frequency;
Mathematical model constructing module, for using according to the normal voltage, register digit and data renewal frequency The digital circuit models of MATLAB language construct A/D conversion circuit, and be arranged the digital circuit models voltage amplification factor, Firewire current amplification factor, neutral line current amplification factor.
8. the simulator of electric energy meter metering circuit according to claim 6, which is characterized in that the analog circuit model Establishing module includes:
Signal motivates setup module, for sinusoidal voltage source, sinusoidal current source to be arranged;
Voltage sampling circuit establishes module, for establishing power grid by building resistance series connection potential-divider network and passive filter circuit Voltage sampling circuit simultaneously acquires network voltage sampled signal;
Firewire current sampling circuit establishes module, for by building resistance series connection potential-divider network and copper-manganese piece being arranged to ideal Resistance establishes firewire current sampling circuit and acquires firewire current sampling signal;
Neutral line current sample circuit establishes module, for building corresponding by selecting and setting Current Sensor module Resistance series connection potential-divider network, establishes neutral line current sample circuit and acquires neutral line current sampled signal;
Simulation model establishes module, for connecting the line voltage sample circuit, firewire according to the schematic diagram of the electric energy meter Current sampling circuit and neutral line current sample circuit, sinusoidal voltage source and sinusoidal current source, establish analog circuit model.
9. the simulator of electric energy meter metering circuit according to claim 8, which is characterized in that the simulation run module Include:
Signal transmitting module is believed for sampling the network voltage sampled signal, firewire current sampling signal and neutral line current The digital circuit models number being sent in the Simulink software;
Formula descretization module, for by the calculation formula of voltage effective value, current effective value, active power and reactive power Discretization, the calculation formula of voltage effective value, current effective value, active power after obtaining discretization and reactive power;
Signal computing module is believed for sampling the network voltage sampled signal, firewire current sampling signal and neutral line current The calculation formula of voltage effective value, current effective value, active power after number substituting into the discretization respectively and reactive power, Voltage effective value, current effective value, active power and reactive power are calculated, and is sent result in the Saber software The analog circuit model;
Associative simulation module, for the simulation step length of the Simulink software and Saber software to be arranged, to the associative simulation Model carries out associative simulation.
10. the simulator of electric energy meter metering circuit according to claim 9, which is characterized in that after the discretization Voltage effective value, current effective value, active power and reactive power calculation formula are as follows:
In formula: P is active power;Q is reactive power;IRMSFor current effective value;URMSFor voltage effective value;U (t) is instantaneous electricity Pressure;I (t) is transient current;U (k) is instantaneous voltage sampled value;I (k) is transient current sampled value;T is voltage and current signal week Phase;N is the sampling number in a primitive period;Δ t is sampling time interval.
CN201611055644.6A 2016-11-25 2016-11-25 The emulation mode and device of electric energy meter metering circuit Active CN106772204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611055644.6A CN106772204B (en) 2016-11-25 2016-11-25 The emulation mode and device of electric energy meter metering circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611055644.6A CN106772204B (en) 2016-11-25 2016-11-25 The emulation mode and device of electric energy meter metering circuit

Publications (2)

Publication Number Publication Date
CN106772204A CN106772204A (en) 2017-05-31
CN106772204B true CN106772204B (en) 2019-06-07

Family

ID=58913014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611055644.6A Active CN106772204B (en) 2016-11-25 2016-11-25 The emulation mode and device of electric energy meter metering circuit

Country Status (1)

Country Link
CN (1) CN106772204B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108008337A (en) * 2017-11-08 2018-05-08 国网冀北电力有限公司电力科学研究院 The computational methods and device of electric energy meter measurement error uniformity
CN109683118A (en) * 2018-12-10 2019-04-26 国网冀北电力有限公司电力科学研究院 Based on the improved electric energy meter protection feature optimization method and device of transformer
CN110348038B (en) * 2019-04-24 2022-11-29 同济大学 Battery pack electromagnetic interference modeling simulation and test method
CN111626008B (en) * 2020-05-27 2021-12-24 哈尔滨工业大学 Layered sequential testability modeling method for circuit system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504611A (en) * 2009-03-06 2009-08-12 深圳林洋电子科技有限公司 Method and system for developing and debugging electric energy meter software
CN101807795A (en) * 2010-02-12 2010-08-18 重庆电力科学试验研究院 Method for forming electric energy metering simulation system and device thereof
CN102928810A (en) * 2012-11-12 2013-02-13 四川电力科学研究院 System and method for evaluating accuracy of digital electric energy meter
CN104090159A (en) * 2014-07-16 2014-10-08 国家电网公司 Electric energy measuring method and device
CN105242231A (en) * 2015-09-08 2016-01-13 国家电网公司 Digital electric energy measurement performance detection and tracing method and closed-loop system
CN105548947A (en) * 2016-01-28 2016-05-04 云南电网有限责任公司电力科学研究院 Method and system of synchronization traceability of digitalization electric energy meter
CN205374726U (en) * 2016-01-28 2016-07-06 云南电网有限责任公司电力科学研究院 Digital electric energy meter device of tracing to source in step

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004010707B4 (en) * 2004-03-04 2013-08-22 Austriamicrosystems Ag Energy meter arrangement and method for calibration

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504611A (en) * 2009-03-06 2009-08-12 深圳林洋电子科技有限公司 Method and system for developing and debugging electric energy meter software
CN101807795A (en) * 2010-02-12 2010-08-18 重庆电力科学试验研究院 Method for forming electric energy metering simulation system and device thereof
CN102928810A (en) * 2012-11-12 2013-02-13 四川电力科学研究院 System and method for evaluating accuracy of digital electric energy meter
CN104090159A (en) * 2014-07-16 2014-10-08 国家电网公司 Electric energy measuring method and device
CN105242231A (en) * 2015-09-08 2016-01-13 国家电网公司 Digital electric energy measurement performance detection and tracing method and closed-loop system
CN105548947A (en) * 2016-01-28 2016-05-04 云南电网有限责任公司电力科学研究院 Method and system of synchronization traceability of digitalization electric energy meter
CN205374726U (en) * 2016-01-28 2016-07-06 云南电网有限责任公司电力科学研究院 Digital electric energy meter device of tracing to source in step

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于LabVIEW和Matlab综合平台的高精度多功能虚拟数字电能表的研究》;宋晓林等;《陕西电力》;20150831(第8期);第39-49页

Also Published As

Publication number Publication date
CN106772204A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106772204B (en) The emulation mode and device of electric energy meter metering circuit
CN100375982C (en) Power system external network equivalent model automatic forming method
CN101807795B (en) Method for forming electric energy metering simulation system and device thereof
CN105932666A (en) Complex distribution network multi-time-scale digital-analog hybrid simulation system and simulation method therefor
CN107621621A (en) A kind of intelligent electric energy meter is in Line synthesis error calibration method
CN103532137B (en) A kind of method for estimating state of three-phase and four-line low-voltage network
CN106372339A (en) Multi-rate simulation method and device for power-electronizing power system
CN101958543B (en) Method for estimating three-phase impedance-free nonlinear multi-source state of transformer substation
CN105184027B (en) A kind of power load modelling approach based on interacting multiple model algorithm
CN107577870A (en) The distribution network voltage power sensitivity robust estimation method measured based on synchronized phasor
CN101615213B (en) Evaluation method of power system state estimated result based on expanded uncertainty
CN110635471A (en) Transformer area power grid theoretical line loss calculation method based on simultaneous section power and electric quantity
CN103336866A (en) Processing method for negative resistance containing branch in electromagnetic transient simulation
CN105205244A (en) Closed loop operation simulation system based on electromechanical-electromagnetic hybrid simulation technology
CN109725219A (en) A kind of electric energy meter platform area automatic identifying method
CN103956735B (en) The harmonic trend of a kind of distributed generation system analyzes method
CN108471112A (en) A kind of electromagnetical transient emulation method and system of transmission line of electricity
CN103901389A (en) Verifying device and method of analog electric signal electric energy meter, analog electronic signal electric energy meter and digital signal electric energy meter
CN107482778A (en) A kind of method and system of improved power system health status monitoring
CN106786540A (en) A kind of short-circuit current calculation method and system
CN106128103B (en) A kind of intersection Turning movement distribution method and device based on recursion control step by step
CN206133209U (en) High -power hybrid simulation system based on RTDS
CN106786536A (en) Consider the method for estimating state of outer net extended Ward equivalent
CN105866576A (en) Simulation detection system of intelligent transformer station secondary-side electric energy metering error influence, and detection analysis method
CN102324887A (en) Wind driven generator stability control method based on hybrid neural network

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
GR01 Patent grant
GR01 Patent grant