Method and system for displaying circuit logic through self-simulation function and medium
By building a dedicated electrical graphic library and self-simulation engine, dynamic visualization and fault simulation of vehicle circuit principles are achieved, solving the problems of low circuit teaching efficiency and major safety hazards in existing technologies, and improving students' fault location capabilities and training effects.
Patent Information
- Application Number
- CN202511101007.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-07
- Publication Date
- 2025-09-12
AI Technical Summary
In existing vehicle maintenance training, circuit principle teaching lacks dynamic interaction and visual logic support, making it difficult for students to understand. Fault diagnosis is limited to empirical judgment. Practical training equipment is separated from circuit principle teaching, making it impossible to achieve real-time mapping between fault simulation and real circuits. Conventional circuit simulation software cannot accurately simulate the characteristics of vehicle-specific circuits.
Build a dedicated electrical element library, draw electrical symbols consistent with the training equipment, perform dynamic current path calculation and fault injection through the self-simulation engine, render circuit logic in real time, support bidirectional fault diagnosis, and realize circuit diagram visualization and real-time control.
It improves teaching efficiency, reduces training costs, enhances students' fault location capabilities, shortens the talent training cycle, and avoids safety hazards in physical training.
Smart Images

Figure CN120633574A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit principle teaching, and in particular to a method, system and medium for displaying circuit logic through a self-simulation function. Background Art
[0002] Current vehicle (locomotive) maintenance training primarily relies on paper circuit diagrams, static PDF files, or CAD drawings for circuit principle teaching. This lacks dynamic interaction and visual logic support, resulting in low student understanding and acceptance, and inefficient teaching. Existing technologies, such as the EMU maintenance virtual simulation system, introduce 3D model interaction for operational process or device cognition teaching, but lack an integrated deep circuit simulation engine. This leads to the following problems: Abstract teaching: Instructors rely on one-way explanations, making it difficult for students to dynamically understand core circuit logic such as current paths and signal transmission. Fault diagnosis limitations: Trainees can only perform troubleshooting by replacing modules based on the fault symptoms, and then perform repairs based on experience. They are unable to achieve two-way reasoning from "fault source to symptom"; Separation between virtual and real: Practical training equipment is separated from circuit principle teaching, making it impossible to achieve real-time mapping between fault simulation and real circuits.
[0003] While existing solutions, such as digital twin platforms and circuit simulation software, have some simulation capabilities, they lack dedicated teaching modules tailored to the circuit characteristics of rail transit vehicles (locomotives), resulting in inaccurate simulation and training. Furthermore, vehicles (locomotives) contain numerous specialized electrical components or unique integrated circuits. Conventional circuit simulation software, which focuses on general electrical component simulation, is unable to draw these specialized components or provide complete, simulatable circuit diagrams, making it impossible to simulate vehicle (locomotive) circuit diagrams. Furthermore, conventional circuit simulation software lacks vehicle (locomotive) fault injection and real-time response capabilities. Finally, conventional circuit simulation software cannot display and control circuit diagram status when linked to vehicle (locomotive) training equipment. Summary of the Invention
[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide a method, system and medium for displaying circuit logic through a self-simulation function.
[0005] The object of the present invention is achieved through the following technical solutions: In a first aspect, the present invention provides: a method for displaying circuit logic through a self-simulation function, comprising the following steps: During the construction phase of the dedicated electrical element library, electrical symbols that are consistent with the original circuit diagram of the training equipment are drawn to obtain electrical elements and saved to the dedicated electrical element library. The characteristic logic is edited for each electrical element. During the dynamic simulation circuit drawing phase, electrical elements are spatially arranged according to the standard circuit diagram layout, identification associations are established for electrical elements that are linked across drawings, and a complete circuit topology is formed through cable connections. During the circuit simulation phase, the self-simulation engine is started for visual operation, the current path is calculated step by step from the initial end of the power supply, and the current conductivity is dynamically determined based on the real-time status and characteristic logic of the electrical elements; During the real-time rendering phase, circuit logic is rendered in real time, using different colors to display energized or de-energized cables, and adding current flow animations to energized cables. Electrical elements switch visualization states based on energized / de-energized status. In the fault injection phase, in response to manually or randomly input fault injection instructions, circuit fault events are simulated in the circuit, and the corresponding fault phenomena, impact range and visual prompts are generated.
[0006] Preferably, the characteristic logic is defined based on the working principle and physical characteristics of the components, and the editing of the characteristic logic includes: defining state transition rules for the relay when the coil is energized, the normally open contact is closed, and the normally closed contact is disconnected; defining state transition rules for the circuit breaker when the circuit is closed and the circuit is disconnected when the circuit breaker is opened.
[0007] Preferably, the step-by-step calculation of the current path includes: dynamically updating the circuit state based on the principle that when there is power at the initial end, there is power at the terminal end if the line is conductive, combined with the characteristic logic of the electrical graphic element.
[0008] Preferably, the switching of the visualization state includes: displaying the armature displacement animation when the relay is energized, and resetting to the initial position when it is disconnected; displaying the closed mark when the circuit breaker is closed, displaying the open mark when it is disconnected, and displaying a warning icon when it trips.
[0009] Preferably, the fault injection stage further includes the following steps: In forward diagnostic mode, the preset fault phenomenon instructions are executed, and the user locates the fault source and highlights it based on the current path interruption position and device status changes; In reverse verification mode, the user sets the fault point command, interrupts the corresponding line, and triggers the automatic generation of fault phenomena and impact range; Through two-way diagnostic verification, a closed teaching loop is formed to guide users to complete fault location learning.
[0010] Preferably, the training equipment is a vehicle, and the entire vehicle circuit is disassembled into a roof high-voltage subsystem, a braking subsystem, and a door loop subsystem, and the circuit details of the subsystem are magnified layer by layer and interactive annotations are superimposed.
[0011] Preferably, the vehicle is a locomotive.
[0012] A second aspect of the present invention provides: a system for displaying circuit logic through a self-simulation function, for implementing any of the above methods for displaying circuit logic through a self-simulation function, comprising: Circuit simulation engine, real-time generation and analysis of electrical element characteristics and topological relationships; The visualization layer is used to overlay the visualization effects of the dynamic current flow and component status of the circuit; Fault simulation module, used for bidirectional fault injection and fault phenomenon generation.
[0013] Preferably, the visualization layer adopts the QT graphics view framework.
[0014] The third aspect of the present invention provides: a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by a processor, any of the above-mentioned methods of displaying circuit logic through a self-simulation function is implemented.
[0015] The beneficial effects of the present invention are: 1) Improved teaching efficiency: Dynamic visualization makes abstract circuit principles intuitive. Instructors can manipulate control components and electrical elements such as switches and knobs in circuit diagrams in real time to understand the flow of circuits. This speeds up students' understanding of locomotive / roller-related circuit principles by over 90%.
[0016] 2) Reduce training costs: Virtual fault simulation can reduce the loss of training equipment and save 90% of hardware maintenance costs.
[0017] 3) Eliminate safety hazards: Through circuit visualization software fault simulation, students can effectively avoid the risk of electric shock on physical electrical training equipment.
[0018] 4) Enhanced diagnostic capabilities: The two-way training model increases trainees’ fault location accuracy from 65% to 92%.
[0019] 5) Shorten the talent training cycle: The self-study scenarios and convenient teaching provided by the software can significantly shorten the skill conversion cycle and meet the rapid training needs of managers. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 Flow chart of the method of the present invention. DETAILED DESCRIPTION
[0021] The following will clearly and completely describe the technical solutions of the present invention in conjunction with the embodiments. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the scope of protection of the present invention.
[0022] See Figure 1 The first aspect of the present invention provides: a method for displaying circuit logic through a self-simulation function, comprising the following steps: During the construction phase of the dedicated electrical element library, electrical symbols that are consistent with the original circuit diagram of the training equipment are drawn to obtain electrical elements and saved to the dedicated electrical element library. The characteristic logic is edited for each electrical element. During the dynamic simulation circuit drawing phase, electrical elements are spatially arranged according to the standard circuit diagram layout, identification associations are established for electrical elements that are linked across drawings, and a complete circuit topology is formed through cable connections. During the circuit simulation phase, the self-simulation engine is started for visual operation, the current path is calculated step by step from the initial end of the power supply, and the current conductivity is dynamically determined based on the real-time status and characteristic logic of the electrical elements; During the real-time rendering phase, circuit logic is rendered in real time, using different colors to display energized or de-energized cables, and adding current flow animations to energized cables. Electrical elements switch visualization states based on energized / de-energized status. In the fault injection phase, in response to manually or randomly input fault injection instructions, circuit fault events are simulated in the circuit, and the corresponding fault phenomena, impact range and visual prompts are generated.
[0023] In this embodiment, the software is used to draw the electrical symbols that are consistent with the original circuit diagram and save them to the corresponding graphic element library. This ensures that the final circuit diagram displayed by the software is consistent with the circuit diagram used in daily life. Figure 1 There will be no sense of separation.
[0024] For drawn electrical elements, edit the corresponding characteristic requirements based on the working principle and characteristics of the components. For example, the relay characteristic: if the relay coil is energized, the normally open contact of the relay switches to the normally closed state, and the normally closed contact switches to the normally open state.
[0025] After editing the element's appearance and characteristics, place the electrical elements in the corresponding areas based on the original circuit diagram layout. Label the placed electrical elements according to circuit diagram standards, linking the elements of the same component in different areas (e.g., a relay coil is located on drawing 1, while the relay contacts are located on drawings 2, 3, and 4). Connect the components using cables.
[0026] The simulation engine is used to calculate and visualize the circuit diagram, starting from the initial power supply end and running visually toward the end. After each step, the system automatically determines whether to proceed to the next step based on the characteristics of the graphics element and the current state of the graphics element.
[0027] During the visualization process, each line status will be displayed in red if it is powered and have a flow effect. If the device changes, it will switch between the powered and de-powered states based on the characteristics of the element.
[0028] In some embodiments, the characteristic logic is defined based on the working principle and physical characteristics of the components, and the editing of the characteristic logic includes: defining state transition rules for the relay when the coil is energized, the normally open contacts are closed, and the normally closed contacts are disconnected; defining state transition rules for the circuit breaker when the circuit is closed, and when the circuit is open.
[0029] In some embodiments, the step-by-step calculation of the current path includes: dynamically updating the circuit state based on the principle that when there is power at the initial end, the line is conductive and the terminal end is powered, combined with the characteristic logic of the electrical graphic element.
[0030] In some embodiments, the switching of the visualization state includes: displaying an armature displacement animation when the relay is energized, and resetting to the initial position when it is disconnected; displaying a closed mark when the circuit breaker is closed, displaying an open mark when it is disconnected, and displaying a warning icon when it trips.
[0031] In some embodiments, the fault injection phase further includes the following steps: In forward diagnostic mode, the preset fault phenomenon instructions are executed, and the user locates the fault source and highlights it based on the current path interruption position and device status changes; In reverse verification mode, the user sets the fault point command, interrupts the corresponding line, and triggers the automatic generation of fault phenomena and impact range; Through two-way diagnostic verification, a closed teaching loop is formed to guide users to complete fault location learning.
[0032] In this embodiment, the forward diagnosis process is as follows: the trainee locates the fault point (e.g., oxidation of the relay contact causes the contact state to be attracted but not actually conductive) based on the preset fault phenomenon (e.g., "the headlight is not on") through the circuit visualization training software; the reverse verification mode is as follows: the trainee sets the fault point (e.g., "the relay contact is in an abnormal state"), and during the circuit diagram simulation process, the system automatically generates the fault phenomenon and the scope of impact due to the disconnection of the circuit logic.
[0033] In some embodiments, the training equipment is a vehicle, and the entire vehicle circuit is disassembled into a roof high-voltage subsystem, a braking subsystem, and a door loop subsystem. The circuit details of the subsystems are magnified layer by layer and interactive annotations are superimposed.
[0034] In this example, dynamic current path tracing demonstrates the real-time flow of current through color changes and animated arrows. Component visualization allows for easy visualization of the physical counterparts of electrical elements, facilitating cross-learning. Multi-level circuit decomposition breaks down the entire vehicle circuit into subsystems (such as the roof high-voltage system, braking system, and door loop system), supporting layer-by-layer zooming and interactive annotation. Virtual-reality linkage connects to training equipment (such as locomotive / vehicle electrical loop training equipment) to synchronize software simulation results with hardware status in real time.
[0035] In some embodiments, the vehicle is a motorcycle.
[0036] A second aspect of the present invention provides: a system for displaying circuit logic through a self-simulation function, for implementing any of the above methods for displaying circuit logic through a self-simulation function, comprising: Circuit simulation engine, real-time generation and analysis of electrical element characteristics and topological relationships; The visualization layer is used to overlay the visualization effects of the dynamic current flow and component status of the circuit; Fault simulation module, used for bidirectional fault injection and fault phenomenon generation.
[0037] In some embodiments, the visualization layer uses the QT graphics view framework.
[0038] In this embodiment, the circuit simulation engine: is based on a self-developed circuit simulation engine, and is a circuit simulation that deeply fits the electrical symbols of the locomotive / vehicle circuit; the visualization layer: uses the QT graphic view framework to superimpose the visualization effects of the dynamic current flow direction and component status (such as relay closure / disconnection, circuit breaker closure / disconnection) of the circuit; the fault simulation module: supports instructors / students to manually or randomly inject faults (such as short circuit, open circuit, contact or coil failure, etc.). During the circuit diagram simulation process, due to the disconnection of the circuit logic, the corresponding fault phenomenon (such as abnormal indicator light, motor stoppage, circuit logic confusion, etc.) is generated in real time.
[0039] The third aspect of the present invention provides: a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by a processor, any of the above-mentioned methods of displaying circuit logic through a self-simulation function is implemented.
[0040] The foregoing description is merely a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein and should not be construed as excluding other embodiments. Rather, the present invention can be used in various other combinations, modifications, and environments and can be modified within the scope of the concept described herein through the above teachings or techniques or knowledge in the relevant field. Modifications and variations made by those skilled in the art that do not depart from the spirit and scope of the present invention are intended to be protected by the appended claims.
Claims
1. A method for displaying circuit logic through a self-simulation function, characterized in that: The following steps are involved: During the construction phase of the dedicated electrical element library, electrical symbols that are consistent with the original circuit diagram of the training equipment are drawn to obtain electrical elements and saved to the dedicated electrical element library. The characteristic logic is edited for each electrical element. During the dynamic simulation circuit drawing phase, electrical elements are spatially arranged according to the standard circuit diagram layout, identification associations are established for electrical elements that are linked across drawings, and a complete circuit topology is formed through cable connections. During the circuit simulation phase, the self-simulation engine is started for visual operation, the current path is calculated step by step from the initial end of the power supply, and the current conductivity is dynamically determined based on the real-time status and characteristic logic of the electrical elements; During the real-time rendering phase, circuit logic is rendered in real time, using different colors to display energized or de-energized cables, and adding current flow animations to energized cables. Electrical elements switch visualization states based on energized / de-energized status. In the fault injection phase, in response to manually or randomly input fault injection instructions, circuit fault events are simulated in the circuit, and the corresponding fault phenomena, impact range and visual prompts are generated.
2. The method for displaying circuit logic through self-simulation function according to claim 1, characterized in that: The characteristic logic is defined based on the working principle and physical characteristics of the components. The editing of the characteristic logic includes: defining state transition rules for the relay when the coil is energized, the normally open contact is closed, and the normally closed contact is opened; and defining state transition rules for the circuit breaker when the circuit is closed, and when the circuit is opened, the circuit is disconnected.
3. The method for displaying circuit logic through a self-simulation function according to claim 1, wherein: The step-by-step calculation of the current path includes: dynamically updating the circuit state based on the principle that when there is power at the initial end, the line is conductive and the terminal end is powered, combined with the characteristic logic of the electrical graphic element.
4. The method for displaying circuit logic through a self-simulation function according to claim 2, wherein: The switching of the visualization state includes: displaying the armature displacement animation when the relay is energized, and resetting to the initial position when it is disconnected; displaying the closed mark when the circuit breaker is closed, the open mark when it is disconnected, and the warning icon when it trips.
5. The method for displaying circuit logic through a self-simulation function according to claim 1, wherein: The fault injection phase further includes the following steps: In forward diagnostic mode, the preset fault phenomenon instructions are executed, and the user locates the fault source and highlights it based on the current path interruption position and device status changes; In reverse verification mode, the user sets the fault point command, interrupts the corresponding line, and triggers the automatic generation of fault phenomena and impact range; Through two-way diagnostic verification, a closed teaching loop is formed to guide users to complete fault location learning.
6. The method for displaying circuit logic through a self-simulation function according to any one of claims 1 to 5, characterized in that: The training equipment is a vehicle, which breaks down the entire vehicle circuit into a roof high-voltage subsystem, a brake subsystem, and a door loop subsystem. The circuit details of the subsystems are magnified layer by layer and interactive annotations are superimposed.
7. The method for displaying circuit logic by self-simulation function according to claim 6, characterized in that: The vehicle is a locomotive.
8. A system for displaying circuit logic through a self-simulation function, characterized in that: A method for implementing the circuit logic display method according to any one of claims 1 to 7, comprising: Circuit simulation engine, real-time generation and analysis of electrical element characteristics and topological relationships; The visualization layer is used to overlay the visualization effects of the dynamic current flow and component status of the circuit; Fault simulation module, used for bidirectional fault injection and fault phenomenon generation.
9. The system for displaying circuit logic through self-simulation function according to claim 8, characterized in that: The visualization layer adopts the QT graphics view framework.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by the processor, the method for displaying circuit logic through the self-simulation function as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method and system for achieving checking simulation of secondary circuit simulated failure in electric system
CN104142451A
Electrical simulation and electrical fault diagnosis method
CN114239443A
Train electrician comprehensive practical training system and method
CN119580555A
Visual display logic simulation system
US4675832A