A method and system for rendering a simulation interface for an energy meter based on ImGui

By adopting the ImGui library and an independent thread-driven interface refresh mechanism, the rendering problems of high-frequency pulse lamps and multi-channel data streams in the energy meter simulation were solved, achieving efficient, zero-latency interface updates and cross-platform deployment, thus improving the performance and maintainability of the simulation system.

CN122086397APending Publication Date: 2026-05-26NINGBO HENGLIDA TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
NINGBO HENGLIDA TECH
Filing Date
2025-12-18
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

The existing GTK+Cairo solution cannot effectively handle the real-time rendering requirements of high-frequency pulse lamps and multi-channel instantaneous data streams in energy meter simulation, resulting in a decrease in rendering frame rate, distortion of visual feedback, and difficulties in cross-platform deployment.

Method used

The user interface for the electricity meter is developed using the ImGui library in immediate mode. By using an independent thread and a timer-driven refresh mechanism, combined with data pointer binding, the interface rendering and the business logic of the electricity meter are decoupled, avoiding memory copying and system-level graphical service dependencies.

Benefits of technology

It enables zero-latency reproduction of high-frequency pulse lamps and instantaneous waveforms on general-purpose computing platforms without GPU acceleration, improving the verification accuracy and cross-platform deployment flexibility of the simulation system, and reducing CPU and memory usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122086397A_ABST
    Figure CN122086397A_ABST
Patent Text Reader

Abstract

This invention relates to a method and system for rendering a simulation interface for an energy meter based on ImGui. The method includes: developing a user interface for the energy meter using ImGui and compiling it into an independent interface library; the interface library providing an initialization interface and a refresh interface for the user interface; starting the energy meter simulation system and establishing a mapping relationship between the energy meter verification data; calling the initialization interface to bind the internal data of the energy meter to the interactive interface components in the interface library; determining whether the initialization interface was successful; if successful, creating an independent refresh thread in the energy meter simulation system; and periodically calling the refresh interface in the refresh thread to perform real-time rendering and updating of the user interface, thus decoupling the interface rendering from the energy meter's business logic. This method can improve the verification accuracy of embedded software simulation.
Need to check novelty before this filing date? Find Prior Art