Electricity testing system and method of locomotive control circuit, electronic equipment, storage medium and program product

By designing an electrical measurement system for locomotive control circuits, and utilizing the high-resistance voltage divider circuit and comparison circuit of the main control unit and insulation detection module, single-point grounding faults in locomotive control circuits can be detected. This solves the problem of low testing efficiency in existing technologies and enables rapid and efficient fault detection by a single person.

CN121763014APending Publication Date: 2026-03-31CNR LANZHOU LOCOMOTIVE
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-03
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In the existing technology, troubleshooting locomotive control circuits requires two workers to work together, the cable wiring is complex and the operation is cumbersome, resulting in low testing efficiency.

Method used

Design an electrical measurement system for locomotive control circuits. The system controls an insulation detection module and a relay group through a main control unit. It uses a high-resistance voltage divider circuit and a comparator circuit to collect voltage values. The comparator compares the voltage threshold to detect the insulation status of the positive and negative terminals to the car body, identifies single-point grounding faults, and switches the connection status through relays to improve testing efficiency.

Benefits of technology

It enables a single person to complete the fault detection of locomotive control circuits, simplifies the cable wiring process, improves testing efficiency and accuracy, and enhances the stability and safety of the detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121763014A_ABST
    Figure CN121763014A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an electricity testing system and method for a locomotive control circuit, electronic equipment, a storage medium and a program product. The electricity testing system comprises a main control unit, a relay group and an insulation detection module, the main control unit is respectively connected with the relay group and the insulation detection module; the main control unit is used for acquiring a voltage value of a tested circuit; the relay group is used for switching the connection state of the tested circuit; the insulation detection module is used for judging whether a single-point grounding fault exists in a detected circuit, the insulation detection module and the relay set are controlled through the main control unit, a voltage value is collected through a high-resistance voltage division circuit and a comparison circuit in the insulation detection module, and the collected voltage value of the detected circuit is compared with a voltage threshold value through a comparator. The insulation state of the positive and negative ends to the vehicle body is detected, whether a single-point grounding fault exists is judged, the connection state of the tested circuit is switched through the relay, whether a fault exists in the circuit in multiple connection states is tested, and the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electric locomotive testing technology, and in particular to a measuring system, method, electronic device, storage medium and program product for locomotive control circuit. Background Technology

[0002] The core function of a locomotive's electrical system is to manage the traction motors, auxiliary equipment, and overall vehicle operating status through control circuits. Different types of locomotives have different control circuit designs, and troubleshooting electrical faults in these circuits is crucial to ensuring the locomotive's safety.

[0003] In the existing technology, troubleshooting for locomotive control circuits requires pulling a temporary cable to establish an artificial path for measurement.

[0004] However, existing testing methods require two staff members to work together, and the cable routing is complex and the operation is cumbersome, resulting in reduced testing efficiency. Summary of the Invention

[0005] This application provides a method, system, electronic device, storage medium, and program product for measuring the electrical properties of a locomotive control circuit, in order to solve the problem of reduced testing efficiency in the prior art.

[0006] In a first aspect, embodiments of this application provide an electrical measurement system for a locomotive control circuit, comprising: a main control unit, a relay group, and an insulation detection module;

[0007] The main control unit is connected to the relay group and the insulation detection module respectively;

[0008] The main control unit is used to acquire the voltage value of the circuit under test;

[0009] The relay group is used to switch the connection state of the circuit under test;

[0010] The insulation detection module is used to determine whether there is a single-point grounding fault in the circuit under test.

[0011] In one possible implementation, the electrical measurement system of the locomotive control circuit further includes an audible and visual alarm system; when a ground fault is detected, the audible and visual alarm system is used to issue an alarm message.

[0012] In one possible implementation, the electrical measurement system of the locomotive control circuit further includes a display module; the display module is used to display the electrical measurement mode and grounding status.

[0013] In one possible implementation, the electrical measurement system of the locomotive control circuit further includes a self-test module; the self-test module is used to verify the grounding status of the system.

[0014] Secondly, embodiments of this application provide a method for measuring the electrical properties of a locomotive control circuit, comprising:

[0015] The voltage divider circuit is used to acquire the first voltage value between the input terminal of the circuit under test and the reference potential, and the second voltage value between the output terminal of the circuit under test and the reference potential.

[0016] The first voltage value and the second voltage value are compared with preset voltage thresholds respectively to generate comparison results;

[0017] Based on the comparison results, determine whether the circuit under test has a single-point grounding fault;

[0018] If the circuit under test does not have a single-point grounding fault, the connection state of the circuit under test is switched according to the test mode to complete the test of the locomotive control circuit.

[0019] In one possible implementation, the step of comparing the first voltage value and the second voltage value with a preset voltage threshold to generate a comparison result includes: performing voltage division processing on the first voltage value and the second voltage value through a voltage divider network to obtain a voltage-divided input voltage; comparing the voltage-divided input voltage with the preset voltage threshold to generate a level signal; and determining the comparison result based on the level signal.

[0020] In one possible implementation, after switching the connection state of the circuit under test according to the measurement mode if there is no single-point grounding fault in the circuit under test, the method further includes: calculating grounding state data according to a sliding window algorithm; determining the stability of the grounding state based on the grounding state data; and changing the connection state of the circuit under test according to repair logic if a grounding state fault is detected.

[0021] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;

[0022] The memory stores computer-executed instructions;

[0023] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0024] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0025] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0026] The locomotive control circuit measurement system, method, electronic device, storage medium, and program product provided in this application embodiment control the insulation detection module and relay group through the main control unit. The insulation detection module collects voltage values ​​through the high-resistance voltage divider circuit and the comparator circuit. The comparator compares the collected voltage values ​​of the circuit under test with the voltage threshold to detect the insulation status of the positive and negative terminals to the car body and determine whether there is a single-point grounding fault. The relay switches the connection state of the circuit under test and tests whether there is a fault in the circuit under multiple connection states, thereby improving the testing efficiency. Attached Figure Description

[0027] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0028] Figure 1 This is a schematic diagram of the electrical measurement system for the locomotive control circuit provided in an embodiment of this application;

[0029] Figure 2 Flowchart of the electrical measurement method for the locomotive control circuit provided in this application Figure 1 ;

[0030] Figure 3 Flowchart of the electrical measurement method for the locomotive control circuit provided in this application Figure 2 ;

[0031] Figure 4 A schematic diagram of the structure of the electronic device provided in this application.

[0032] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0033] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0034] The core function of a locomotive's electrical system is to manage the traction motors, auxiliary equipment, and overall vehicle operating status through control circuits. Different types of locomotives have different control circuit designs, and troubleshooting electrical faults in these circuits is crucial for ensuring locomotive safety. Currently, troubleshooting locomotive control circuits requires establishing a manual connection using temporary cables. However, existing testing methods require two workers to operate simultaneously, and the complex cable routing and cumbersome procedures reduce testing efficiency.

[0035] To address the aforementioned technical problems, this application proposes the following technical concept: The inventors considered designing an electrical measurement system for a locomotive control circuit. This system uses a main control unit to control an insulation detection module and a relay group. Voltage values ​​are collected through a high-resistance voltage divider circuit and a comparator circuit within the insulation detection module. A comparator compares the collected voltage values ​​of the circuit under test with a voltage threshold to detect the insulation status of the positive and negative terminals to the vehicle body, determining whether a single-point grounding fault exists. Relays are used to switch the connection state of the circuit under test, allowing for testing of faults in multiple connection states, thus improving testing efficiency.

[0036] Figure 1 This is a schematic diagram of the electrical measurement system of the locomotive control circuit provided in the embodiments of this application, as shown below. Figure 1 As shown, the electrical measurement system of the locomotive control circuit includes: a main control unit 101, a relay group 102, and an insulation detection module 103.

[0037] The main control unit is connected to the relay group and the insulation detection module respectively.

[0038] In this embodiment, the main control unit is a microcontroller that integrates logic judgment, status display, and audible and visual alarm functions.

[0039] In this embodiment, the insulation detection module automatically detects the insulation status of the positive and negative terminals of the circuit under test to the vehicle body through a high-resistance voltage divider and comparison circuit, and determines whether a single-point grounding has occurred.

[0040] Among them, the high-resistance voltage divider circuit is a voltage divider network composed of high-resistance resistors, which is used to reduce the load impact on the circuit under test.

[0041] The comparator circuit includes a comparator.

[0042] In this embodiment, the relay group has two sets of high-current relays K1 and K2 built in.

[0043] K1 connects the negative terminal of the battery switch to the vehicle body and is used to measure the positive terminal signal of the circuit under test.

[0044] K2 connects the positive terminal of the battery switch to the vehicle body and is used to measure the negative terminal signal of the circuit under test.

[0045] In this embodiment, the relay group is equipped with an interlocking structure, which allows only a single measurement of the positive or negative terminal signal.

[0046] The main control unit is used to acquire the voltage value of the circuit under test.

[0047] The relay group is used to switch the connection state of the circuit under test.

[0048] The insulation detection module is used to determine whether there is a single-point grounding fault in the circuit under test.

[0049] In one embodiment of this application, the electrical measurement system of the locomotive control circuit further includes: an audible and visual alarm system;

[0050] When a ground fault is detected, the audible and visual alarm system is used to issue an alarm message.

[0051] In this embodiment, if the audible and visual alarm system detects a grounding fault, it disconnects the relay group and issues a buzzer alarm and a flashing light warning.

[0052] In one embodiment of this application, the electrical measurement system of the locomotive control circuit further includes: a display module;

[0053] The display module is used to display the electrical measurement mode and grounding status.

[0054] In this embodiment, the display module includes a display screen and operation buttons.

[0055] The information displayed on the screen in real time includes, but is not limited to, grounding status, operating mode, prompts, and operating instructions.

[0056] In one embodiment of this application, the electrical measurement system of the locomotive control circuit further includes: a self-test module;

[0057] The self-test module is used to verify the grounding status of the system.

[0058] In this embodiment, the self-test module can simulate a test lamp to verify the system integrity and grounding status.

[0059] The test lamp is used to test the state of the circuit.

[0060] In this embodiment, the electrical measurement system of the locomotive control circuit is equipped with an aviation plug, which is connected to the positive and negative terminals of the battery switch and the vehicle grounding terminal, respectively.

[0061] In this embodiment, a power-on self-test operation must be performed before performing grounding detection.

[0062] Specifically, the electrical measurement system of the locomotive control circuit is connected to the positive and negative terminals of the battery switch and the locomotive under test. The brightness of the simulated test lights in the self-test module is compared. If the brightness of the two simulated test lights is the same, the locomotive under test has no control circuit grounding fault. The display screen indicates that the system self-test is complete, and the measurement mode is selected.

[0063] In this embodiment, the electrical measurement system of the locomotive control circuit further includes a Bluetooth module and a clock module.

[0064] The system connects to the user terminal via a Bluetooth module to record detection data.

[0065] The clock module records the timestamps of data generation, enabling traceability of the debugging process.

[0066] In this embodiment, the detection results can be exported as data files.

[0067] Figure 2 Flowchart of the electrical measurement method for the locomotive control circuit provided in this application Figure 1 ,like Figure 2 As shown, the method includes:

[0068] S201: The voltage divider circuit acquires the first voltage value between the input terminal of the circuit under test and the reference potential, and the second voltage value between the output terminal of the circuit under test and the reference potential.

[0069] Specifically, the voltage value of the circuit under test is acquired through the voltage divider circuit in the insulation detection module.

[0070] In this embodiment, the first voltage value is the voltage of the positive terminal of the circuit under test relative to the reference potential of the vehicle body.

[0071] In this embodiment, the second voltage value is the voltage of the negative terminal of the circuit under test relative to the reference potential of the vehicle body.

[0072] In this embodiment, when the insulation detection module acquires the voltage value of the circuit under test, it simultaneously acquires the leakage current of the positive terminal of the circuit under test relative to the vehicle body and the leakage current of the negative terminal of the circuit under test relative to the vehicle body.

[0073] S202: Compare the first voltage value and the second voltage value with the preset voltage threshold respectively, and generate a comparison result.

[0074] Specifically, the first voltage value and the second voltage value are divided by the voltage divider circuit in the insulation detection module, and the main control unit compares the divided voltage value with the threshold value to determine the comparison result based on the level information.

[0075] S203: Determine whether the circuit under test has a single-point grounding fault based on the comparison results.

[0076] Specifically, if the circuit under test has a single-point grounding fault, the relay group will enter a locked state, and the display module will prompt the user that it cannot enter the measurement mode.

[0077] In this embodiment, the display module displays the grounding point of the grounding fault.

[0078] For example, if there is a faulty grounding point on the positive terminal, the display module will prompt "There is a grounding point on the positive terminal, please check for the fault".

[0079] S204: If there is no single-point grounding fault in the circuit under test, the connection state of the circuit under test is switched according to the test mode to complete the test of the locomotive control circuit.

[0080] Specifically, if the circuit under test does not have a single-point grounding fault, a connection status is established according to the power measurement mode selected by the user.

[0081] For example, if the user selects to measure the positive terminal voltage, the negative terminal grounding is established. The controller closes the switch K1 in the relay, connecting the negative terminal of the battery switch to the vehicle body to establish a reference ground. At the same time, the display module displays "Negative terminal reference ground has been established, and remote measurement can be performed".

[0082] For example, if the user selects to measure the negative terminal voltage, the positive terminal ground is established. The controller closes the switch K2 in the relay, connecting the positive terminal of the battery switch to the vehicle body and establishing a reference ground. At the same time, the display module displays "Positive terminal reference ground has been established, and remote measurement can be performed".

[0083] The relay is equipped with an interlocking structure, and the test modes for positive and negative terminal voltages are mutually exclusive to avoid short-circuit faults.

[0084] In this embodiment, after the test is completed, the relay automatically disconnects, cutting off the grounding path.

[0085] In this embodiment, after the test is completed, the battery switch automatically disconnects and the grounding state is automatically released.

[0086] As can be seen from the above embodiments, the insulation detection module and relay group are controlled by the main control unit. The voltage value is collected by the high-resistance voltage divider circuit and the comparison circuit in the insulation detection module. The voltage value of the circuit under test is compared with the voltage threshold by the comparator to detect the insulation status of the positive and negative terminals to the vehicle body and determine whether there is a single-point grounding fault. The connection status of the circuit under test is switched by the relay to test whether there is a fault in the circuit under multiple connection statuses, thereby improving the testing efficiency.

[0087] In one embodiment of this application, step S202 includes:

[0088] S2021: The first voltage value and the second voltage value are divided by a voltage divider network to obtain the input voltage after voltage division.

[0089] Specifically, a high-resistance resistor is preset in the voltage divider network, and the first voltage value and the second voltage value are divided by the high-resistance resistor, and the divided voltage is output at the output terminal of the voltage divider network.

[0090] S2022: Compare the input voltage after voltage division with the preset voltage threshold to generate a level signal.

[0091] Specifically, the comparator in the insulation detection module receives the divided input voltage and compares it with a preset voltage threshold. If the divided voltage is higher than the voltage threshold, the collector output pin is pulled to a low level by the internal transistor; if the divided voltage is lower than the voltage threshold, it presents a high impedance state and is pulled to a high level by the pull-up resistor. The high and low levels together form a level signal.

[0092] S2023: Determine the comparison result based on the level signal.

[0093] Specifically, the insulation detection module transmits the level signal to the main control unit, which reads the level signal and converts it into a comparison result indicating whether the voltage is higher or lower than the threshold.

[0094] As can be seen from the above embodiments, the voltage divider network reduces the load impact on the circuit under test during the measurement process, avoiding the introduction of additional faults due to measurement. Simultaneously, the introduction of threshold comparison improves the accuracy of voltage state judgment, providing a more reliable basis for subsequent ground fault identification, thereby further enhancing the stability and safety of the detection.

[0095] Figure 3 Flowchart of the electrical measurement method for the locomotive control circuit provided in this application Figure 2 ,like Figure 3 As shown, after step S204, the following steps are also included:

[0096] S205: Calculate the grounding status data according to the sliding window algorithm.

[0097] Specifically, the main control unit forms a data sequence based on the collected grounding loop data, collects data points within the window according to the preset sliding window length, calculates the average value of the data points within the window, and obtains the grounding status data.

[0098] S206: Determine the stability of the grounding status based on the grounding status data.

[0099] Specifically, if the grounding status data is within the preset normal standard range, or the value is below the threshold in a continuous period, the grounding status is judged to be stable.

[0100] S207: If a grounding fault is detected, the connection status of the circuit under test is changed according to the repair logic.

[0101] Specifically, if a grounding fault is detected, the grounding fault determination information is output, and the main control unit accesses the pre-stored repair logic table to obtain the corresponding repair logic instruction. The main control unit executes the repair logic instruction to change the connection status of the circuit under test.

[0102] As can be seen from the above embodiments, by dynamically monitoring through the sliding window algorithm and adopting a self-repair mechanism when the equipment grounding fault occurs, the misoperation caused by short-term interference can be reduced, and the availability of the equipment can be extended.

[0103] Figure 4 A schematic diagram of the structure of the electronic device provided in this application. Figure 4 As shown, the electronic device 40 provided in this embodiment includes at least one processor 401 and a memory 402. Optionally, the electronic device 40 further includes a communication component 403. The processor 401, memory 402, and communication component 403 are connected via a bus.

[0104] In the specific implementation process, at least one processor 401 executes computer execution instructions stored in memory 402, causing at least one processor 401 to execute the above-mentioned locomotive control circuit electrical measurement method.

[0105] The specific implementation process of processor 401 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0106] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0107] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0108] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0109] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method for measuring the electrical properties of the locomotive control circuit.

[0110] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method for measuring the electrical properties of the locomotive control circuit.

[0111] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0112] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0113] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0114] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0115] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0116] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0117] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0118] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. An electrical measurement system for a locomotive control circuit, characterized in that, include: Main control unit, relay group and insulation detection module; The main control unit is connected to the relay group and the insulation detection module respectively; The main control unit is used to acquire the voltage value of the circuit under test; The relay group is used to switch the connection state of the circuit under test; The insulation detection module is used to determine whether there is a single-point grounding fault in the circuit under test.

2. The electrical measurement system for the locomotive control circuit according to claim 1, characterized in that, The electrical measurement system of the locomotive control circuit also includes: an audible and visual alarm system; When a ground fault is detected, the audible and visual alarm system is used to issue an alarm message.

3. The electrical measurement system for the locomotive control circuit according to claim 1, characterized in that, The electrical measurement system of the locomotive control circuit also includes: a display module; The display module is used to display the electrical measurement mode and grounding status.

4. The electrical measurement system for the locomotive control circuit according to claim 1, characterized in that, The electrical measurement system of the locomotive control circuit also includes: a self-test module; The self-test module is used to verify the grounding status of the system.

5. A method for measuring the electrical properties of a locomotive control circuit, characterized in that, include: The voltage divider circuit is used to acquire the first voltage value between the input terminal of the circuit under test and the reference potential, and the second voltage value between the output terminal of the circuit under test and the reference potential. The first voltage value and the second voltage value are compared with preset voltage thresholds respectively to generate comparison results; Based on the comparison results, determine whether the circuit under test has a single-point grounding fault; If the circuit under test does not have a single-point grounding fault, the connection state of the circuit under test is switched according to the test mode to complete the test of the locomotive control circuit.

6. The method according to claim 5, characterized in that, The step of comparing the first voltage value and the second voltage value with a preset voltage threshold respectively to generate a comparison result includes: The first voltage value and the second voltage value are divided by a voltage divider network to obtain the divided input voltage; The input voltage after voltage division is compared with a preset voltage threshold to generate a level signal; The comparison result is determined based on the level signal.

7. The method according to claim 5, characterized in that, If the circuit under test does not have a single-point grounding fault, after switching the connection state of the circuit under test according to the measurement mode, the method further includes: Calculate the grounding status data using the sliding window algorithm; The stability of the grounding state is determined based on the grounding state data; If a grounding fault is detected, the connection status of the circuit under test is changed according to the repair logic.

8. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the electrical measurement method of the locomotive control circuit as described in any one of claims 5 to 7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the electrical measurement method for the locomotive control circuit as described in any one of claims 5 to 7.

10. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the electrical measurement method for the locomotive control circuit as described in any one of claims 5 to 7.