Generating simulated waveforms for electricity meters

The integration of a waveform simulator and event generator within the meter firmware allows electricity meters to simulate multiple channels and events, overcoming the limitations of external load boxes, thereby enhancing testing efficiency and accuracy.

JP2024543670APending Publication Date: 2024-11-21LANDIS GYR TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024535215
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-12-13
Filing Date
2022-12-06
Publication Date
2024-11-21

AI Technical Summary

Technical Problem

Existing electricity meters require large and expensive external load boxes for testing and validation, which are often limited in functionality and cannot simulate multiple meter formats, hindering efficient testing and development.

Method used

Incorporating a waveform simulator and event generator within the meter firmware to generate simulation waveforms for multiple channels, allowing the meter to operate in simulation mode without external load boxes, and providing simulated waveforms and events to the meter firmware interface.

Benefits of technology

Enables comprehensive testing and validation of electricity meters with increased accuracy and flexibility, reducing the need for external equipment and enabling simulation of various meter formats and events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024543670000001_ABST
    Figure 2024543670000001_ABST
Patent Text Reader

Abstract

A technique for generating a simulated waveform for an electricity meter includes operating the meter in a simulation mode without requiring an external load device connected to the meter. The simulated waveform is generated based on waveform component values ​​for several channels. The waveform is generated at a rate corresponding to a sample rate of an analog-to-digital converter (ADC) of the meter. In the simulation mode, the waveform is provided to a meter firmware interface in place of waveform data obtained from the ADC.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims priority to U.S. Provisional Application No. 17 / 549,522, filed December 13, 2021, the contents of which are incorporated by reference in their entirety into this disclosure. [Background technology]

[0002] TECHNICAL FIELD The embodiments described in this disclosure relate to electricity meters, and more particularly, to techniques for generating simulated waveforms for electricity meters. Summary of the Invention

[0003] Electric meters measure and monitor electric energy. In a typical mode of operation, the meter connects to an electric distribution network and to a building. The meter receives and processes complex power signals from the electric distribution network, i.e., power signals that contain harmonics, offsets, phase shifts, and other variations. To develop, test, or verify the functionality of the meter, the meter is typically placed in a simulated environment where the meter can be connected to an external load box. The load box simulates the complex power signals that the meter can receive when the meter is connected to the electric distribution network. Such load boxes are typically large and expensive. Also, many load boxes are limited to providing signals to a single meter type.

[0004] Some embodiments described in this disclosure include a method of generating a simulated waveform by an electricity meter. The method includes operating in a simulation mode. While operating in the simulation mode, an analog to digital converter (ADC) in the meter does not need to be connected to an external load device. The method includes generating a simulated waveform for a plurality of channels using waveform component values ​​provided by a simulation interface component. The waveform component values ​​for the channels include at least a voltage or current value, a frequency value, and a phase value. The operation includes generating a simulated channel waveform using a set of waveform component values ​​for the channels at a rate corresponding to a sample rate of the ADC. The sample rate of the ADC in the simulation mode matches the sample rate of the ADC in the operational mode. The method further includes providing the simulated channel waveform for the channel to a meter firmware interface. The meter firmware interface receives the waveform data acquired from the ADC during the operational mode.

[0005] In some embodiments, the meter firmware includes a waveform simulator, an event generator, and a meter firmware interface. The waveform simulator is configured to utilize the waveform component values ​​to generate a waveform. An external simulation interface component can be connected to the meter and can provide the waveform component values ​​to the meter firmware, and in particular to the waveform simulator and the event generator. The waveform component values ​​can be provided for different meter types to generate simulated waveforms for multiple meter types.

[0006] These exemplary aspects and features are mentioned not to limit or define the subject matter described herein, but to provide examples to aid in understanding the concepts described in this application. Other aspects, advantages, and features of the subject matter described herein will become apparent upon consideration of the entirety of this disclosure.

[0007] These features, aspects, and advantages of the present disclosure will be better understood from the following detailed description when taken in conjunction with the accompanying drawings. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is an exploded perspective view of an example electricity meter configured to generate a simulated waveform according to some embodiments described in this disclosure. [Diagram 2] FIG. 2 is a block diagram illustrating a portion of a circuit board of an electricity meter according to some embodiments described in this disclosure. [Diagram 3] FIG. 3 is a block diagram of a computing device that inputs data into a waveform simulator for generating a simulated waveform according to some embodiments described in this disclosure. [Figure 4] FIG. 4 is a flowchart of a process for generating a simulation waveform according to some embodiments described in this disclosure. [Diagram 5] FIG. 5 is a flowchart of a process for generating events for a simulation waveform according to certain embodiments described in this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Traditionally, an external load box has been required when testing and verifying the functionality of an electric meter and when developing new features and capabilities. The external load box includes specialized hardware to provide an electrical signal to the electric meter. Because the external load box may be relatively large and expensive, if a load box is required, the availability or accessibility of the load box may be difficult, limiting testing and verification. Furthermore, the testing capabilities of the external load box may be limited. For example, the external load box may only provide a single-phase signal, so multiple load boxes, or a single load box with multiple configurations, may be required to test different meter types.

[0010] To address these issues, the described invention provides a waveform simulator and an event generator in the meter firmware. The waveform simulator generates simulated waveforms for multiple channels. For a single-phase meter, the waveform simulator generates simulated waveforms for two channels: Phase A voltage and Phase A current. For a three-phase meter, the waveform simulator generates simulated waveforms for six channels: Phase A voltage, Phase A current, Phase B voltage, Phase B current, Phase C voltage, and Phase C current.

[0011] When the meter is operated in a simulation mode, it can generate a simulated waveform. In the simulation mode, the waveform simulator can download waveform component values ​​from an external component or tool and generate a simulated waveform using the waveform component values. The waveform simulator can generate the simulated waveform at a rate corresponding to a sample rate of an analog-to-digital converter (ADC). The sample rate of the ADC in the simulation mode can be the same as the sample rate of the ADC in the normal operating mode.

[0012] The meter firmware may also include an event generator that can download event component values ​​from external components and use the event component values ​​to generate example events, such as sag and swell events, to be incorporated into the simulation waveforms.

[0013] The waveform simulator may provide a simulated waveform, which may include any simulated event, to the meter firmware interface. In a normal operation mode, the meter firmware interface receives a waveform acquired from the ADC. Because the simulated waveform is provided to the meter firmware interface and the meter firmware interface is located at the front end of the meter firmware, the meter firmware can be comprehensively tested by the simulated waveform.

[0014] 1 is an exploded perspective view of an example electric meter configured to generate a simulated waveform according to some embodiments described in this disclosure. In some examples, the electric meter 100, also referred to as meter 100, measures the amount of electricity consumed and the power characteristics. The meter 100 includes a meter shell 102, an inner cover 104, a circuit board 106, and a meter base 108. The meter shell 102 is a cylindrical, open-bottom structure that can be positioned on top of the inner cover 104. In some examples, the meter shell 102 may be at least partially transparent for viewing a display provided on the inner cover 104 below the meter shell 102 when the meter shell 100 is assembled.

[0015] The inner cover 104 also has a cylindrical open-bottom structure. The inner cover 104 fits within the meter shell 102 and can be attached to the meter base 108. The inner cover 104 may include a display 110 or other user interface that provides information, such as consumption data determined by the meter, that can be viewed through the transparent meter shell 102. The circuit board 106 is disposed inside the inner cover 104. The circuit board 106 may include components used to measure energy consumption, communicate with the user interface, and communicate over a network. The meter base 108 includes a main board 112, a protrusion 114, and measurement circuitry (not shown). The circuit board 106 can be secured to the main board 112. The protrusion 114 may extend from the rear of the meter base 108 and can be used to attach the meter 100 to a meter socket. The measurement circuitry may measure the current and / or voltage from the power lines connected to the meter 100 when the meter is attached to a socket and the socket is connected to the power grid.

[0016] When the meter 100 is fully assembled (e.g., the meter shell 102 and inner cover 104 are attached to the meter base 108) and installed in a socket within a building, the meter 100 may operate in a normal operating mode to measure energy consumption. The ADC on the circuit board 106 may sample the signals provided by the measurement circuitry. Typically, the ADC provides multiple channels of data, e.g., a voltage channel and a current channel per phase. Components on the circuit board 106 may perform further processing to determine power and / or consumption measurements. Although one type of meter is shown in FIG. 1, the waveform simulator can be used with other types of meters.

[0017] In addition to the standard operating mode, the meter may also operate in a simulation mode. In the simulation mode, instead of utilizing inputs provided by the measurement circuitry and the ADC, the meter utilizes simulated waveforms and simulated events. FIG. 2 is a block diagram illustrating a portion of the circuit board 106 of the electric meter 100 connected to an external simulation interface component 204 according to some embodiments described in the present disclosure. The circuit board 106 includes a meter firmware 202 stored in components on the circuit board, an ADC 206, a direct memory access (DMA) component 208, and a random access memory (RAM) 210. The meter firmware 202 includes a waveform simulator 212, an event generator 214, a switch 216, a correction and adjustment block 218, a meter format conversion block 220, and other functions (not shown). The meter firmware interface 222 receives waveform data from either the output of the ADC or the output of the waveform simulator depending on the state of the switch 216, which may be implemented in the firmware as a software switch.

[0018] The correction and adjustment block 218 provides scaling, conversion, and calibration. The meter format conversion block 220 converts the ADC input with its native voltages and currents into a mathematical form appropriate for the particular meter format being measured (e.g., 2S, 9S, 12S, etc.). The output 224 of the meter format conversion block 220 is available to the meter firmware to perform other functions, including detection of the fundamental frequency of the waveform, and determination of consumption and power measurement calculations.

[0019] When the meter 100 operates in a normal operating mode, the ADC 206 may sample signals from the measurement circuitry at an ADC sample rate to generate multiple channels of data. For example, in a three-phase meter, the ADC 206 may sample signals using a sampling frequency of 14.648 kHz and provide six channels of data for signals Phase A voltage, Phase A current, Phase B voltage, Phase B current, Phase C voltage, and Phase C current. The DMA 208 may provide the data to be sampled to the meter firmware 202 via the RAM 210. In the normal operating mode, the switch 216 is configured to provide data from the ADC to the meter firmware interface 222.

[0020] When the meter 100 operates in the simulation mode, the switch 216 is configured to provide a simulation waveform from the waveform simulator 212 to the meter firmware interface 222. One advantage of providing a simulation waveform to the meter firmware interface is that it allows for a more accurate simulation. If the simulation data is present in a location downstream of the meter firmware interface, portions of the firmware are bypassed during the simulation.

[0021] To enter the simulation mode, the meter may need to be in a particular mode (e.g., factory mode) or under particular conditions (e.g., disassembled and connected to the simulation interface component). In one example, the meter 100 is partially disassembled and the simulation interface component 204 is connected to the circuit board 106. The simulation interface component 204 may be provided by an external computing device, such as the external computing device 302 communicatively connected to the circuit board as shown in FIG. 3. The computing device 302 may be a laptop, desktop, or any other computing device suitable for inputting parameters into the waveform simulator 212.

[0022] When the meter is disassembled, sensors may detect the removal of the meter shell 102 and / or inner cover 104 and cause the meter to enter factory mode. There may be other or alternative requirements to enter simulation mode. In some embodiments, the user may be required to enter an additional key obtainable from the meter manufacturer or to set a value to a predetermined value.

[0023] The simulation interface component 204 provides simulation component values ​​to the waveform simulator and enables the meter 100 to operate in a simulation mode. A user may enter simulation component values ​​through the simulation interface or may select a previously stored set of simulation component values. The simulation component values ​​may include waveform component values ​​such as those shown in Table 1 below. Different sets or tables of waveform component values ​​may correspond to different meter formats. Table 1 shows example default values ​​for a 9S meter format. Other tables may provide values ​​for a 2S meter format or a 12S meter format, or different default sets of values ​​for the 9S meter format.

[0024] [Table 1]

[0025] The waveform component values ​​in Table 1 may include a voltage or current value (e.g., RMS voltage A and RMS current A) for each channel, a frequency value (e.g., power line frequency), a phase value (e.g., phase angle of Phase A voltage and phase angle of Phase A current) for each channel, and a harmonic number and value (e.g., harmonic magnitude and harmonic phase) for each channel. The waveform component values ​​allow for the simulation of waveforms with multiple harmonics, where each harmonic is identified by a harmonic number and associated with a harmonic magnitude and harmonic phase. In Table 1, multiple harmonics for a single channel can be identified by providing harmonic magnitude and harmonic phase values ​​for each harmonic number and associating those values ​​with a channel number. The waveform simulator 212 may generate a simulated waveform based on the waveform component values. The number of channels is based on the meter type being simulated. For a three-phase meter, there are six channels: Phase A voltage, Phase A current, Phase B voltage, Phase B current, Phase C voltage, and Phase C current, and each channel may contain harmonics.

[0026] In addition to waveform component values, the simulation component values ​​may also include event component values ​​to simulate events. Representative events may include sag, swell, flicker, transient, service interruption, and power quality events. The user may set the magnitude and duration for each event. Events may be queued so that multiple events can be defined and executed for any channel. Event component values ​​can be entered in a tabular format, as shown in Table 2 below.

[0027] [Table 2]

[0028] An event table may include multiple events. For example, Table 2 shows component values ​​for two events. The magnitude of the event may be specified as a percentage, such as the rate of change of voltage A or the rate of change of current A. The duration of the event may be specified as a number of half cycles. Each event may be defined by a set of values ​​that specify the magnitude and duration of the event. A component value called event pointer specifies the number of the event to start from. For example, a value of 0 may specify to start with event 1, and a value of 1 may specify to start with event 2. The event generator 214 may generate one or more events in parallel with the waveform simulator 212 that generates the simulation waveform data. The event generator 214 may send the events to the waveform simulator 212.

[0029] A method for generating data for the simulated waveform includes generating a simulated sine wave for each of the channel's designated harmonics and then summing the sine waves for the channel's harmonics to generate a simulated channel waveform. The sine waves can be generated using waveform component values ​​such as harmonic order magnitude and harmonic order phase. Once all harmonics for all channels have been processed, the simulated channel waveform is provided to a meter firmware interface.

[0030] FIG. 4 is a flow chart of a process for generating a simulated waveform according to some embodiments described in the present disclosure. FIG. 4 is described with respect to the components of the meter 100 shown in FIGS. 1-2, but is not limited to the components shown. In block 402, the meter firmware 202 may receive interrupts from the ADC 206 via the DMA 208. The rate of the interrupts corresponds to the sample rate of the ADC. The rate of the interrupts in the simulation mode is the same as the rate in the operational mode. The interrupts trigger the generation of new waveform samples for each channel. The waveform simulator 212 uses the waveform component values ​​downloaded from the simulation interface component 204 to generate waveforms for each channel. The waveform component values ​​for each channel may include voltage or current values, frequency values, phase values, and may optionally include harmonic magnitude values ​​and harmonic phases. The waveform simulator determines a maximum channel number and a maximum harmonic order for each channel based on the waveform component values. In some examples, the maximum channel number and maximum harmonic order values ​​for each channel may be part of the values ​​downloaded. In another example, the meter firmware 202 may determine the maximum channel number or maximum harmonic order based on valid waveform component values ​​without downloading the maximum channel number or maximum harmonic order. For example, if a waveform component value of 0 is an invalid value, any waveform components having a value of 0 are not included in the simulation. If the values ​​of RMS voltage B and RMS voltage C are 0, the simulation is for a single-phase meter, the maximum channel number is 2, and the channels are Phase A voltage and Phase A current.

[0031] At block 404, the waveform simulator 212 determines whether simulated channel waveforms have been generated for all channels by comparing the channel counter or the current channel number to the maximum channel number. If the current channel number is less than the maximum number of channels, processing continues at block 406. At block 406, the waveform simulator 212 determines whether all sine waves for the current channel have been generated for all harmonics for the current channel by comparing the current harmonic counter generated for the current channel to the maximum harmonic number for the current channel. If the current harmonic counter is less than the maximum harmonic number, processing continues at block 408.

[0032] In block 408, the waveform simulator 212 generates harmonics for the current channel by multiplying the current harmonic number by the accumulated phase. The phase of the initial sample is specified by the waveform component value, and the phase of subsequent samples is specified by 2π(F L / F S )". The basic cumulative phase is "P n+i =Pn+2π(F L / F S ) where Pn is the phase of the previously generated sample and F L is the power line frequency, F S is the sampling frequency of the ADC. The kth harmonic accumulation phase is expressed as "kP n+1 =k(Pn+2π(F L / F S ))” where k=1, 2, … (up to the number of harmonics to be generated).

[0033] At block 410, the waveform simulator 212 calculates the harmonic phase value (P harm) is added. In block 412, the waveform simulator 212 generates a sine wave using a least squares fit of a ninth order polynomial of a sine function. Since the sine function is odd, only the odd coefficients of the polynomial are non-zero. Thus, only five non-zero coefficients are required for the calculation. The sine wave is generated in the interval [-pi,pi]. The sine wave is expressed as "sin(kP n +P harm ) where k is the current harmonic order.

[0034] In block 414, the waveform simulator 212 adjusts the magnitude of the sine wave by the magnitude of the harmonic of the current harmonic order to generate a sine wave with harmonics. Here, the harmonic counter is adjusted to indicate that processing for the current harmonic order is complete. Processing then proceeds to block 406. Once sine waves have been generated for all harmonics of the current channel, processing then proceeds to block 416. In block 416, the waveform simulator 212 generates a simulated channel waveform for the current channel by adding the sine waves generated for all harmonics of the current channel. Here, the channel counter is adjusted to indicate that processing for the current channel is complete. Processing then proceeds to block 404. If all channel waveforms have not been generated, the process is repeated to generate additional channel waveforms. Once all simulated channel waveforms have been generated, processing then proceeds to block 418. In block 418, the waveform simulator 212 outputs the simulated channel waveform to the meter firmware interface 222.

[0035] In some examples, the waveform simulator 212 may utilize an event, such as a sag event or a swell event, generated by the event generator 214 to modify the simulated channel waveform before outputting the simulated channel waveform to the meter firmware interface 222. The method of generating an event for a channel includes generating the event based on event component values ​​downloaded from the waveform simulator 212.

[0036] FIG. 5 is a flow chart of a process for generating an event for a channel according to some embodiments described in this disclosure. FIG. 5 is described with respect to the components of the meter 100 shown in FIGS. 1-2, although other components may be used. In block 502, the event generator 214 may receive an interrupt from the ADC 206 via the DMA 208. This interrupt is the same as the interrupt received by the waveform simulator 212 in FIG. 4. The event generator 214 utilizes event component values ​​downloaded from the simulation interface component 204. The event component values ​​may include an event magnitude, an event duration, and a maximum event count for the current channel. In some examples, instead of receiving a maximum event count, the event generator 214 may determine the maximum event count by counting the number of valid event magnitudes or the number of valid event durations downloaded from the simulation interface component 204.

[0037] At block 503, the event generator determines whether an event is in progress. If an event is in progress, the process proceeds to block 508. If an event is not in progress, the process proceeds to block 504. At block 504, the event generator 214 determines whether all events for the channel have been generated by comparing the current event number to the maximum event number. If the current event number is less than the maximum event number, the process continues with block 506.

[0038] In block 506, the event generator 214 generates an event by generating an adjustment to the magnitude of the simulated waveform for the current channel for a time corresponding to the duration of the event. The event generator 214 may output the event to the waveform simulator 212. In some examples, the waveform simulator 212 may use the event to adjust the magnitude of the simulated channel waveform in block 418 of FIG. 4 before outputting the simulated channel waveform to the meter firmware interface 222. This processing may continue to block 508. The process remains in block 508 until the event is completed. Once the event is completed, the current event number is incremented and the process proceeds to block 504. Once all events for the current channel are completed, the process may return to block 502 to wait for the next interrupt.

[0039] In order to fully understand the subject matter described in the patent protection scope, many specific details are described in this disclosure. However, those skilled in the art will understand that the subject matter described in the patent protection scope can be practiced without these specific details. In other instances, methods, devices, or systems known to those skilled in the art have not been described in detail so as not to obscure the subject matter.

[0040] The features described herein are not limited to a particular hardware architecture or configuration. A computing device may include any suitable arrangement of components that provide a result based on one or more inputs. Suitable computing devices may include general-purpose microprocessor-based computer systems that program or configure computing systems ranging from general-purpose computing devices to special-purpose computing devices that implement one or more aspects of the subject matter covered herein, and that access stored software (i.e., computer-readable instructions stored in the memory of the computer system). Any suitable programming, scripting, or other type of language or combination of languages ​​may be utilized to implement the teachings contained in this disclosure, with the software utilized to program or configure the computing device.

[0041] Aspects of the methods disclosed herein may be performed during operation of such a computing device. The order of the blocks shown in the above examples may be changed, e.g., blocks may be rearranged, combined, or divided into sub-blocks. Certain blocks or processes may be executed in parallel.

[0042] The term "configured to" in this disclosure is intended as an open and inclusive term and does not exclude apparatus configured to perform additional tasks or steps. Also, the term "based on" is intended as an open and inclusive term such that a process, step, calculation, or other operation that is "based on" one or more recited conditions or values ​​may in fact be based on additional conditions or values ​​that are not recited. The headings, lists, and reference numbers included herein are for ease of description and not for purposes of limitation.

[0043] Although the subject matter of the present application has been described in detail with respect to certain embodiments thereof, those skilled in the art, upon achieving an understanding of the above content, will be able to easily create modifications, variations, and equivalents thereto. It is therefore to be understood that the present disclosure is presented for purposes of illustration and not limitation, and is not intended to exclude modifications, variations, and / or additions to the subject matter of the present application that would be readily apparent to those skilled in the art.

Claims

1. 1. A method for generating a simulation waveform by an electricity meter, comprising: operating in a simulation mode, in which a simulation waveform is substituted for data from an analog-to-digital converter (ADC) in the electricity meter; generating the simulation waveform for a plurality of channels using a plurality of waveform component values; For each of the plurality of channels, accessing a set of waveform component values ​​for the channel, the waveform component values ​​for the channel including at least a voltage or current value, a frequency value, and a phase value; and generating a simulated channel waveform using the set of waveform component values ​​for that channel at a rate corresponding to a sample rate of the ADC, the sample rate of the ADC in the simulation mode matching the sample rate of the ADC in an operational mode; generating the simulation waveform by providing the simulated channel waveforms for the plurality of channels to a meter firmware interface, the meter firmware interface receiving waveform data acquired from the ADC during the operational mode; Including, method.

2. Generating a simulation channel waveform includes: Generate a sine wave using a least squares approximation of a 9th degree polynomial to a sine function in an interval Including, The method of claim 1.

3. the simulation channel waveform includes a plurality of samples; The method comprises: Increasing the phase of a sample relative to the phase of the previous sample Further comprising: The method of claim 2.

4. the waveform component values ​​include a plurality of harmonic orders, a magnitude of each harmonic order, and a phase of each harmonic order; Generating a simulation channel waveform includes: For each of said harmonic orders, Multiply the harmonic number by the cumulative phase, Add the phase to the harmonic order, Generate a sine wave using a least-squares approximation of a 9th order polynomial of the sine function, adjusting the magnitude of the sine wave according to the magnitude for the harmonic order to generate a sine wave having harmonics; adding a sine wave having harmonics to the harmonic order; Including, The method of claim 1.

5. For at least one selected one of the channels, Accessing a set of event component values ​​for the selected channel; generating an event for the selected channel, the event including an event magnitude and an event duration, and a magnitude of a simulation channel waveform for the selected channel is adjusted by the event magnitude for a time corresponding to the event duration. Further comprising: The method of claim 1.

6. determining that a shell of the electric meter has been removed from a base of the electric meter prior to operating in the simulation mode; Further comprising: The method of claim 1.

7. the plurality of waveform component values ​​correspond to a first meter format; The method comprises: accessing a second plurality of waveform component values ​​for a second plurality of channels corresponding to a second format; generating a second set of simulation channel waveforms; providing the second set of simulation channel waveforms to a meter firmware interface; Further comprising: The method of claim 1.

8. Accessing the plurality of waveform component values ​​includes: receiving the plurality of waveform component values ​​from a simulation interface component connected to the electricity meter; Including, The method of claim 1.

9. The plurality of channels includes at least one voltage channel and at least one current channel. The method of claim 1.

10. A meter, an ADC operating at a sample rate during the operational mode; A meter firmware comprising: a waveform simulator configured to generate waveforms for a plurality of channels utilizing a plurality of waveform component values ​​when the meter is in a simulation mode, the waveforms comprising: For each of the plurality of channels, accessing a set of waveform component values ​​for the channel, the waveform component values ​​for the channel including at least a voltage or current value, a frequency value, and a phase value; and generating a simulated channel waveform using a set of waveform component values ​​for the channel at a rate corresponding to the sample rate of the ADC, wherein the sample rate of the ADC in the simulation mode matches the sample rate of the ADC in the operational mode; The waveform simulator generates a simulation waveform by an event simulator configured to generate events, including a magnitude and a duration, for at least one channel; a meter firmware interface configured to receive the simulation channel waveform from the waveform simulator when the meter is operating in the simulation mode and to receive waveform data acquired from the ADC during the operating mode; the meter firmware including: Including, Meter.

11. the waveform simulator is configured to generate a simulated waveform channel by generating a sine wave using a ninth order polynomial least squares approximation of a sine function in an interval; 11. The meter of claim 10.

12. the meter is configured to connect to an external simulation interface component to receive the plurality of waveform component values ​​from the simulation interface component.

11. The meter of claim 10.

13. the plurality of waveform component values ​​correspond to a first meter format; The waveform simulator includes: receiving from the simulation interface component a second plurality of waveform component values ​​for a second plurality of channels corresponding to a second format; generating a second set of simulation channel waveforms; providing a second set of the simulation channel waveforms to a meter firmware interface; It is configured as follows:

13. The meter of claim 12.

14. the waveform component values ​​include a plurality of harmonic orders, a magnitude of each harmonic order, and a phase of each harmonic order; The waveform simulator includes: For each of said harmonic orders, Multiply the harmonic number by the cumulative phase, Add the phase to the harmonic order, Generate a sine wave using a least-squares approximation of a 9th order polynomial of the sine function, adjusting the magnitude of the sine wave according to the magnitude for the harmonic order to generate a sine wave having harmonics; adding a sine wave having harmonics to the harmonic order; and generating a simulation channel waveform by 11. The meter of claim 10.

15. the meter firmware is configured to provide the simulation channel waveform from the waveform simulator when the meter is operating in the simulation mode to provide waveform data acquired from the ADC when the meter is operating in the operational mode; 11. The meter of claim 10.

16. The plurality of channels includes at least one voltage channel and at least one current channel.

11. The meter of claim 10.

17. 1. A system comprising: a simulation interface component configured to transmit a plurality of waveform component values ​​to the meter; The meter is operable in an operational mode or a simulation mode, wherein when operating in the operational mode, an ADC operates at a sample rate to provide data to a meter firmware interface, and when operating in the simulation mode, the meter: For each of the multiple channels, receiving a set of waveform component values ​​for the channel from the simulation interface component, the waveform component values ​​for the channel including at least a voltage or current value, a frequency value, and a phase value; and generating a simulated channel waveform using a set of waveform component values ​​for the channel at a rate corresponding to the sample rate of the ADC, wherein the sample rate of the ADC in the simulation mode matches the sample rate of the ADC in the operational mode; and providing the simulated channel waveforms for the plurality of channels to the meter firmware interface; the meter configured to generate simulation waveforms for a plurality of channels by Including, system.

18. the meter is configured to generate a simulated channel waveform by generating a sine wave using a ninth order polynomial least squares approximation of a sine function in an interval; 20. The system of claim 17.

19. the plurality of waveform component values ​​correspond to a first meter format; The meter is receiving from the simulation interface component a second plurality of waveform component values ​​for a second plurality of channels corresponding to a second format; generating a second set of simulation channel waveforms; providing a second set of the simulation channel waveforms to a meter firmware interface; It is configured as follows:

20. The system of claim 17.

20. The plurality of channels includes at least one voltage channel and at least one current channel.

20. The system of claim 17.