This invention relates to the field of
data processing technology, and discloses a monitoring method, storage medium, and electronic device for an electrical
system. The method includes: determining the counting sequence to which the sampled data of the electrical
system belongs; updating the count value of the counting sequence according to a preset value corresponding to the sampled data; mapping the sampled data to a buffer ring; when the buffer ring is full, determining a target counting sequence, wherein the amplitude of the sampled data corresponding to the count value of the target counting sequence is greater than a preset monitoring threshold; and monitoring the electrical
system according to the count value of the target counting sequence and the storage length of the buffer ring. On the one hand, this embodiment avoids repetitive operations performed later for counting, saving this part of the
running time. On the other hand, since the storage length of the buffer ring when it is full is known, there is no need to calculate how many sampled data points are stored in the buffer ring, saving this part of the
running time and improving the real-time performance of the electrical system.