Implementation method and device for searching stable overlapped segment of test data, medium and equipment

By comparing the progress identification array and the stable segment array, the problem of low search efficiency of stable overlap segments in inverter tests in the prior art is solved, and efficient stable overlap segment search is achieved suitable for different number of parameters, improving the calculation efficiency and flexibility.

CN119248977APending Publication Date: 2025-01-03SUZHOU FROG NEW ENERGY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411308986.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

The prior art lacks a stable overlap segment search method suitable for different number of parameters focused on inverter testing, and the calculation efficiency is low and the flexibility is poor, so it is impossible to deal with multi-parameter situations.

Method used

By comparing the progress identification array and the stable segment array, we can judge whether there are stable overlapping segments between the parameters, record the overlapping segments and adjust the progress identification array, and realize the search for stable overlapping segments of different numbers of parameters and improve the calculation efficiency.

Benefits of technology

The stable overlap segment search is realized for any number of key parameters, which reduces unnecessary calculations, improves calculation efficiency, and can automatically skip the combination of non-stable overlap segments, which improves processing speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248977A_ABST
    Figure CN119248977A_ABST
Patent Text Reader

Abstract

The invention discloses an implementation method and device for searching a stable overlapping section of test data, a medium and equipment, and relates to the technical field of computers. Analyzing the test data to obtain a plurality of key attention parameters and corresponding stable sections; obtaining a progress identification array and a stable section array; the array size of the progress identification array is the number of parameters focused during equipment testing, the position of each element in the progress identification array corresponds to one parameter focused during equipment testing, the value of each element in the progress identification array is 1, and the value identification of the elements in the progress identification array corresponds to the stable section progress of the parameters focused during equipment testing; the array size of the stable segment array is the number of the key attention parameters, and the value of each element in the stable segment array is the total stable segment number of the key attention parameters in sequence; all stable overlapping sections of all the focus parameters are determined; the method can be suitable for stable overlapping segment search of different quantities of focus parameters and is high in calculation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, medium and equipment for implementing stable overlapping segment search of test data. Background Art

[0002] At present, when performing identification tests on inverters, most test items follow the following process: predetermine several test points, focus on certain parameters, and each test point needs to keep the values ​​of the parameters of concern stable for a period of time, then switch to the next test point until the data of all test points are collected; then post-process the collected data to form a test report. During the data processing process, the starting point and end point of each stable segment of a single parameter of the parameters of concern can be obtained based on the recorded original data. There is a need for a method to obtain the time period in which all parameters remain stable. Considering that the number of focus parameters in different test items is different, such as reactive switching test needs to focus on reactive power and active power, active percentage test needs to focus on active power, reconnection test needs to focus on effective voltage, frequency and active power, PF curve needs to focus on effective voltage, frequency, active power and power factor, this method needs to be able to adapt to different numbers of focus parameters.

[0003] However, in the prior art, there are generally two methods to achieve this goal: one is to use time as a benchmark, traverse the entire time period, and determine whether all data at each time point process stable segments to obtain stable overlapping segments. This method has a large amount of calculation, especially for some test items with high data collection frequency or long test time, and a large amount of data, so this method is inefficient. The second is to use a loop comparison method. This method requires nesting of multiple layers of loops, and each key focus parameter requires a layer of loop. This method has poor flexibility and cannot freely match different numbers of key focus parameters; it can only process the same number of key focus parameters as the number of nested layers, and it cannot be processed if the number of parameters increases further.

[0004] Therefore, the related art lacks an implementation method for stable overlapping segment search that is applicable to different numbers of key focus parameters and has high computational efficiency. Summary of the invention

[0005] Based on this, it is necessary to provide a method, device, medium and equipment for implementing the search for stable overlapping segments of test data in order to solve the above technical problems. The method can be applied to different numbers of key attention parameters, and the calculation efficiency of searching for stable overlapping segments is high.

[0006] The present invention adopts the following technical solutions:

[0007] The present invention provides a method for implementing a stable overlapping segment search of test data, comprising:

[0008] Analyze the test data to obtain multiple key focus parameters and stable segments corresponding to the multiple key focus parameters;

[0009] Get the progress identification array and the stable segment array; the array size of the progress identification array is the number of key focus parameters during device testing, the position of each element in the progress identification array corresponds to a key focus parameter, the value of each element in the progress identification array is 1, and the value of the element in the progress identification array identifies the number of the stable segment corresponding to the key focus parameter; the array size of the stable segment array is the number of key focus parameters, and the value of each element in the stable segment array is the total number of stable segments of the key focus parameter;

[0010] Based on the progress identification array and the stable segment array, the stable segments of all the key parameters identified in the progress identification array are compared;

[0011] Determine whether there is a stable overlapping segment between all the key attention parameters. If so, record the stable overlapping segment and add 1 to the value corresponding to the last element in the progress identification array. If not, add 1 to the value of the element in the progress identification array corresponding to the key attention parameter that does not match the stable overlapping segment.

[0012] If there is an element in the progress identifier array that is greater than the element value in the corresponding stable segment array, a carry operation is performed on the progress identifier array;

[0013] If there is an element in the progress identification array after the carry operation that is greater than the element value in the corresponding stable segment array, all stable overlapping segments of all key focus parameters are output.

[0014] Preferably, comparing the stable segments of all the key parameters identified in the progress identification array specifically includes:

[0015] Compare the stable segment corresponding to the first key focus parameter identified in the progress identification array with the stable segment corresponding to the second key focus parameter;

[0016] If there is no overlapping segment between the first key attention parameter and the second key attention parameter, it is determined that there is no stable overlapping segment for all key attention parameters in the progress identification array; if there is an overlapping segment between the first key attention parameter and the second key attention parameter, the overlapping segment is compared with the stable segment corresponding to the third key attention parameter identified in the progress identification array;

[0017] If there is an overlapping segment between the overlapping segment and the stable segment corresponding to the third key attention parameter identified in the progress identification array, then continue to compare the overlapping segment with the stable segment corresponding to the next key attention parameter in the progress identification array until all key attention parameters in the progress identification array are compared, and obtain the stable overlapping segments corresponding to all key attention parameters in the progress identification array;

[0018] If the overlapping segment does not overlap with the stable segment corresponding to other key attention parameters identified in the progress identification array, it is determined that all the corresponding key attention parameters in the progress identification array do not have a stable overlapping segment.

[0019] Preferably, the stable segment corresponding to the first key parameter is t 11 ~t 12 The second key parameter is the stable segment corresponding to t 21 ~t 22 The step of comparing the stable segment corresponding to the first key concern parameter identified in the progress identification array with the stable segment corresponding to the second key concern parameter specifically includes:

[0020] If t 11 <t 22 And t 12 >t 21 , then the overlapping segment is max(t 11 ,t 21 )~min(t 12 ,t 22 );

[0021] Otherwise, it is determined that there is no overlapping segment between the first focused attention parameter and the second focused attention parameter.

[0022] Preferably, the method further specifically comprises:

[0023] If there is no overlapping segment between the first key focus parameter and the second key focus parameter, it is determined that the second key focus parameter in the progress identifier array does not match a stable overlapping segment;

[0024] The key attention parameter corresponding to the stable segment that does not overlap with the overlapping segment is determined as the key attention parameter that does not match the stable overlapping segment.

[0025] Preferably, performing a carry operation on the progress indicator array specifically includes:

[0026] Get the position of the element in the progress indicator array that is greater than the element value in the corresponding stable segment array;

[0027] Set the value of the element at this position to 1, and add 1 to the value of the corresponding element at the previous position.

[0028] Preferably, the method further specifically comprises:

[0029] When there is a change in the element value in the progress identification array, if each element value in the progress identification array is less than or equal to the element value in the corresponding stable segment array, the step of comparing the stable segments of all key focus parameters identified in the progress identification array is re-executed.

[0030] The present invention provides a device for implementing a stable overlapping segment search of test data, comprising:

[0031] The acquisition module is used to analyze the test data, obtain multiple key focus parameters and stable segments corresponding to the multiple key focus parameters; and obtain a progress identification array and a stable segment array; the array size of the progress identification array is the number of key focus parameters during equipment testing, each element in the progress identification array corresponds to a key focus parameter, the value of each element in the progress identification array is 1, and the value of the element in the progress identification array identifies the number of the stable segment corresponding to the key focus parameter; the array size of the stable segment array is the number of key focus parameters, and the value of each element in the stable segment array is the total number of stable segments of the key focus parameters in turn;

[0032] A comparison module is used to compare the stable segments of all the key attention parameters identified in the progress identification array based on the progress identification array and the stable segment array; determine whether there are stable overlapping segments between all the key attention parameters, if so, record the stable overlapping segments, and add 1 to the value corresponding to the last element in the progress identification array; if not, add 1 to the value of the element in the progress identification array corresponding to the key attention parameter that does not match the stable overlapping segment;

[0033] The first judgment module is used to perform a carry operation on the progress identification array if there is an element in the progress identification array that is greater than the element value in the corresponding stable segment array;

[0034] The second judgment module is used to output all stable overlapping segments of all key focus parameters if there is an element in the progress identification array after the carry operation that is greater than the element value in the corresponding stable segment array.

[0035] The present invention provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method for implementing the above-mentioned stable overlapping segment search of test data is implemented.

[0036] The present invention provides a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for implementing the stable overlapping segment search of the test data when executing the program.

[0037] At least one of the above technical solutions adopted by the present invention can achieve the following beneficial effects:

[0038] This application matches all the key focus parameters one by one through the elements of the progress identification array, and the values ​​of the elements in the progress identification array also identify the stable segments of the corresponding key focus parameters. In this way, the stable segments of all the key focus parameters are compared through the progress identification array, which is equivalent to encoding the stable segments of all the key focus parameters, so that the stable segment combinations of all the key focus parameters obtain a separate code to search for stable overlapping segments. This method can be applied to any number of key focus parameters; and, during the search process, the element values ​​in the progress identification array are adjusted in time by judging the conditions. In this way, it is not necessary to calculate all the stable segment combinations during the matching calculation process, and the combinations without stable overlapping segments will be automatically skipped according to the specific data situation, thereby reducing unnecessary searches and further improving calculation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0040] Figure 1 A schematic flow chart of a method for implementing a stable overlapping segment search of test data provided by the present invention;

[0041] Figure 2 A schematic diagram of the stable segments corresponding to the four key parameters of effective voltage U, active power P, frequency f and power factor pf provided by the present invention;

[0042] Figure 3 Another flow chart of a method for implementing a stable overlapping segment search of test data provided by the present invention;

[0043] Figure 4 A schematic diagram of a device for implementing a stable overlapping segment search of test data provided by the present invention;

[0044] Figure 5 A schematic diagram of a computer device for implementing a method for searching for stable overlapping segments of test data provided by the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0046] The technical solutions provided by various embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.

[0047] Figure 1 The present invention is a flowchart of a method for implementing a stable overlapping segment search of test data, which specifically includes the following steps:

[0048] S101: Analyze the test data to obtain a plurality of key focus parameters and stable segments corresponding to the plurality of key focus parameters; and obtain a progress indicator array and a stable segment array.

[0049] The test data may represent the data measured during the operation of the device; the key parameters may be the measured data and / or the parameters calculated from the measured data, and the key parameters may reflect the performance of the device. The device may be an inverter, and the key parameters may include effective voltage U, active power P, frequency f and power factor pf. Each key parameter corresponds to one or more stable operation time periods, i.e., stable segments.

[0050] The test data may be analyzed by a pre-set analysis method to determine a plurality of key focus parameters and stable segments corresponding to the plurality of key focus parameters.

[0051] The array size of the progress identification array is the number of key focus parameters during equipment testing. The position of each element in the progress identification array corresponds to a key focus parameter. The value of each element in the progress identification array is 1. The value of the element in the progress identification array identifies the number of the stable segment corresponding to the key focus parameter. The array size of the stable segment array is the number of key focus parameters. The value of each element in the stable segment array is the total number of stable segments of the key focus parameter.

[0052] Take the key parameters including effective voltage U, active power P, frequency f and power factor pf as an example. Figure 2 As shown, Figure 2 It is a schematic diagram of the stable segments corresponding to the four key parameters of effective voltage U, active power P, frequency f and power factor pf. The effective voltage U has 4 stable segments (t U1 ~t U2 ,t U3 ~t U4 ,tU5 ~t U6 ,t U7 ~t U8 ), the active power P has three stable segments (t P1 ~t P2 ,t P3 ~t P4 ,t P5 ~t P6 ), the frequency f has two stable segments (t f1 ~t f2 ,t f3 ~t f4 ), the power factor pf has two stable sections (t Pf1 ~t Pf2 ,t Pf3 ~t Pf4 ). Optionally, the stable segments of the key parameters are recorded in the memory. The stable segments of the key parameters are time periods, which means that the data is stable during the time period. f2 <t p4 , t p5 <t f3 .

[0053] In this embodiment, the number of key focus parameters n=4, then a progress identification array C is established, the size of the progress identification array C is 1*n, all element values ​​in the progress identification array C are 1, and each element value in the progress identification array C represents a progress record of a key focus parameter; therefore, the progress identification array C is [1,1,1,1], and each element value in the progress identification array C represents the number of the corresponding key focus parameter stable segment, and the four element values ​​represent the matching progress of the effective voltage U, active power P, frequency f and power factor pf in turn. For example, the first element value in the progress identification array C [1,1,1,1] indicates that the stable segment of the effective voltage U is t U1 ~t U2 The first element value in the progress indicator array C[2,1,1,1] represents the effective voltage U.

[0054] The stable period is t U3 ~t U4 .

[0056] At the same time, establish the stable segment array C end , the same size as C, where the value of each element is the number of total stable segments of the corresponding key parameter. In this example, C end That is [4,3,2,2].

[0057] S102: Based on the progress identification array and the stable segment array, the stable segments of all the key parameters identified in the progress identification array are compared.

[0058] In one embodiment, the stable segments of all the key parameters identified in the progress identification array are compared, specifically including:

[0059] S21: Compare the stable segment corresponding to the first key attention parameter identified in the progress identification array with the stable segment corresponding to the second key attention parameter.

[0060] The stable segment corresponding to the first key parameter is t 11 ~t 12 The second key parameter is the stable segment corresponding to t 21 ~t 22 For example, the method of comparing the stable segment corresponding to the first key focus parameter identified in the progress identification array with the stable segment corresponding to the second key focus parameter can be: if t 11 <t 22 And t 12 >t 21 , then the overlapping segment is max(t 11 ,t 21 )~min(t 12 ,t 22 ). If t 11 <t 22 And t 12 >t 21 If it is not true, it is determined that there is no overlapping segment between the first focus parameter and the second focus parameter.

[0061] Continuing to explain the key parameters including effective voltage U, active power P, frequency f and power factor pf, please refer to Figure 2 , the progress identification array C[1,1,1,1], compares the stable segment corresponding to the first key attention parameter identified in the progress identification array with the stable segment corresponding to the second key attention parameter, that is, the first stable segment t of the effective voltage U U1 ~t U2 The first stable period t of active power P P1 ~t P2 For comparison. Figure 2 In, satisfying t U1 <t P2 And t U2 >t P1 , then the overlap between the first stable segment of the effective voltage U and the first stable segment of the active power P is max(t U1 ,t P1 )~min(t U1 ,t P2 ), that is, t U1 ~t P2 , count this overlapping segment into memory.

[0062] S22: If there is no overlapping segment between the first key focus parameter and the second key focus parameter, determine that there is no stable overlapping segment for all the key focus parameters in the progress identification array; if there is an overlapping segment between the first key focus parameter and the second key focus parameter, compare the overlapping segment with the stable segment corresponding to the third key focus parameter identified in the progress identification array.

[0063] If there is no overlapping segment between the first key focus parameter and the second key focus parameter, it is determined that there is no stable overlapping segment for all key focus parameters in the progress identification array, that is, there is no overlapping time period for the stable segments of the key focus parameters corresponding to the current progress identification array. At the same time, it can also be determined that the second key focus parameter in the progress identification array does not match a stable overlapping segment.

[0064] The overlapping segments are compared with the stable segments corresponding to the third focused parameter in the same manner as the stable segments of the first focused parameter are compared with the stable segments of the second focused parameter.

[0065] That is, if the overlap between the first focus parameter and the second focus parameter is t 11 ~t 22 The third key parameter corresponds to the stable segment t 31 ~t 32 , if t 11 <t 32 And t 22 >t 31 , then the overlapping segment is max(t 11 ,t 31 )~min(t 22 ,t 32 ), otherwise, it is determined that the overlapping segment between the first focus parameter and the second focus parameter does not overlap with the stable segment corresponding to the third focus parameter, that is, there is no overlapping segment.

[0066] Taking the progress identification array C[1,1,1,1] as an example, if there is an overlapping segment between the first key attention parameter and the second key attention parameter, the overlapping segment is compared with the stable segment corresponding to the third key attention parameter identified in the progress identification array, which means that the first stable segment t of the effective voltage U U1 ~t U2 The first stable segment t of active power P P1 ~t P2 There are overlapping segments t U1 ~t P2 At this time, for frequency f, the element value corresponding to frequency f in the progress indicator array C[1,1,1,1] is 1, and the stable segment corresponding to frequency f is tf1 ~t f2 , then the overlapping segments t recorded in the memory U1 ~t P2 The stable segment corresponding to the frequency f is t f1 ~t f2 Compare.

[0067] S23, if there is an overlapping segment between the overlapping segment and the stable segment corresponding to the third key attention parameter identified in the progress identification array, then continue to compare the overlapping segment with the stable segment corresponding to the next key attention parameter in the progress identification array until all key attention parameters in the progress identification array are compared, and obtain the stable overlapping segments corresponding to all key attention parameters in the progress identification array.

[0068] If the overlapping segment has an overlapping segment with the stable segment corresponding to the third key attention parameter identified in the progress identification array, continue to compare the overlapping segment with the stable segment corresponding to the fourth key attention parameter in the progress identification array; if the overlapping segment has an overlapping segment with the stable segment corresponding to the fourth key attention parameter in the progress identification array, record the overlapping segment and compare the overlapping segment with the stable segment corresponding to the fifth key attention parameter in the progress identification array, until all key attention parameters in the progress identification array are compared, and the final overlapping segment is determined as the stable overlapping segment of all key attention parameters.

[0069] If the overlapping segment does not overlap with the stable segments corresponding to other key attention parameters identified in the progress identification array, it is determined that there is no stable overlapping segment for all corresponding key attention parameters in the progress identification array; the key attention parameters corresponding to the overlapping segment and the stable segments that do not overlap in the progress identification array are determined as key attention parameters that have not matched the stable overlapping segment.

[0070] If the overlapping segment does not overlap with the stable segments corresponding to other key attention parameters identified in the progress identification array, it is determined that all key attention parameters in the progress identification array do not have stable overlapping segments.

[0071] It should be noted that the key focus parameters in this application may be multiple, for example, including 3 or more, and this application is no longer limited here and can be set according to actual needs.

[0072] Continuing with the example of the progress identifier array [1,1,1,1], the corresponding stable segment is Figure 2 The example is used as an example to illustrate that due to t U1 <t f2 And t p2 >t f1 , then the overlapping segment recorded in the memory overlaps with the first stable segment of frequency f, and the overlapping segment is max(t U1,tf1)~min(tp2,tf2), that is, t U1 ~t P2 , record this in memory.

[0073] At this time, the overlapping segment obtained in S22 and the stable segment corresponding to the third key focus parameter identified in the progress identification array have an overlapping segment t U1 ~t P2 , the element value of the corresponding power factor pf in the progress indicator array C[1,1,1,1] is 1, then the overlapping segment t U1 ~t P2 The first stable section t with power factor pf Pf1 ~t Pf2 For comparison: Due to t U1 <t Pf2 And t p2 >t pf1 , then the overlapping segment recorded in the memory overlaps with the first stable segment of the power factor pf, and the overlapping segment is max(t U1 ,tpf1)~min(tp2,tpf2), that is, t pf1 ~t p2 , record this overlapping segment into memory.

[0074] At this point, the comparison of the stable segments corresponding to the progress identification array C[1,1,1,1] is completed, and the overlapping segment t pf1 ~t p2 , that is, the stable overlapping section t where all the key parameters are stable pf1 ~t p2 , this stable overlapping segment is recorded and can be stored in memory.

[0075] Optionally, if there is no overlapping segment in the above comparison, it can be determined that there is no stable overlapping segment for all the key focus parameters of the current progress identification array.

[0076] S103: Determine whether there is a stable overlapping segment between all the key attention parameters. If so, record the stable overlapping segment and add 1 to the value corresponding to the last element in the progress identification array. If not, add 1 to the value of the element in the progress identification array corresponding to the key attention parameter that does not match the stable overlapping segment.

[0077] If the comparison of the stable segments corresponding to all the key focus parameters in the progress identification array is completed and there are stable overlapping segments, the value corresponding to the last element in the progress identification array is increased by 1; if in the process of comparing the stable segments corresponding to the key focus parameters in the progress identification array, there are key focus parameters that do not match the stable overlapping segments, the corresponding element value in the progress identification array is increased by 1.

[0078] For example, after completing the comparison of all stable segments in the progress identification array C[1,1,1,1], we can obtain the stable overlapping segment t pf1 ~t p2 , then adjust the progress indicator array C to [1,1,1,2].

[0079] If during the comparison process, the stable segment corresponding to the third key focus parameter in the progress identification array does not overlap with the overlapping segment between the first key focus parameter and the second key focus parameter, the progress identification array C is adjusted to C[1,1,2,1].

[0080] S104: If there is an element in the progress identification array that is greater than the element value in the corresponding stable segment array, a carry operation is performed on the progress identification array.

[0081] After executing S103, each element value in the progress identification array needs to be compared with the corresponding element value in the stable segment array. If there is an element value in the progress identification array that is greater than the corresponding element value in the stable segment array, a carry operation needs to be performed on the progress identification array.

[0082] It should be noted that at this time, the progress identification array is the progress identification array updated after steps S102 and S103 have been executed.

[0083] Performing a carry operation on the progress identification array, specifically including: obtaining the position of the element in the progress identification array that is greater than the element value in the corresponding stable segment array; and setting the element value at the position to 1, and adding 1 to the corresponding element value at the previous position of the position.

[0084] Specifically, if the progress identification array is C[1,1,3,1] and the stable segment array is [4,3,2,2], then the position in the progress identification array that is greater than the element value in the corresponding stable segment array is determined to be the third position, then the element value corresponding to the third position in the progress identification array is set to 1, and the element value corresponding to the second position is increased by 1, and the progress identification array C[1,2,1,1] is obtained.

[0085] S105: If there is an element in the progress indicator array after the carry operation that is greater than the element value in the corresponding stable segment array, then all stable overlapping segments of all key focus parameters are output.

[0086] After performing a carry operation on the progress identification array, it is necessary to compare each element value in the progress identification array after the carry operation with the corresponding element value in the stable segment array.

[0087] If there is an element whose value in the progress identification array after the carry operation is greater than the corresponding element value in the stable segment array, it means that the comparison of all stable segments is completed, and all stable overlapping segments of all key focus parameters are output.

[0088] Preferably, the method also includes: when there is a change in the element value in the progress identification array, if each element value in the progress identification array is less than or equal to the element value in the corresponding stable segment array, then re-execute the step of comparing the stable segments of all key focus parameters identified in the progress identification array.

[0089] The case where the element value in the progress identification array changes is that in the above step S103, the value corresponding to the last element in the progress identification array and the value of the element in the progress identification array corresponding to the key attention parameter that does not match the stable overlapping segment are added by 1, and in step S104, a carry operation is performed on the progress identification array. Therefore, after adding 1 to the value corresponding to the last element in the progress identification array, adding 1 to the value of the element in the progress identification array corresponding to the key attention parameter that does not match the stable overlapping segment, or performing a carry operation on the progress identification array, it is determined whether there is an element in the progress identification array that is greater than the value of the element in the corresponding stable segment array. If not, step S102 can be re-executed.

[0090] For example, the progress identification array is updated to C[1,1,1,2], and each element value in the progress identification array C[1,1,1,2] is less than or equal to the corresponding element value in the stable segment array [4,3,2,2]. Therefore, step S102 is re-executed according to the updated progress identification array C[1,1,1,2].

[0091] like Figure 3 As shown, Figure 3 Another flow chart of the implementation method of stable overlapping segment search for test data,

[0092] S301: Analyze the test data to obtain a plurality of key focus parameters and stable segments corresponding to the plurality of key focus parameters; and obtain a progress indicator array and a stable segment array.

[0093] S302: Based on the progress identification array and the stable segment array, the stable segments of all the key parameters identified in the progress identification array are compared.

[0094] S303: Determine whether there is a stable overlapping segment between all the key focus parameters. If so, record the stable overlapping segment and add 1 to the value corresponding to the last element in the progress identification array. If not, add 1 to the value of the element in the progress identification array corresponding to the key focus parameter that does not match the stable overlapping segment.

[0095] S304: Determine whether the value of each element in the progress identification array is less than or equal to the corresponding element value in the stable segment array. If so, re-execute S302 and S303. If not, perform a carry operation on the progress identification array.

[0096] S305: Determine whether the value of each element of the progress identification array after the carry operation is less than or equal to the corresponding element value in the stable segment array. If so, re-execute S302-S304; if not, output all stable overlapping segments of all key focus parameters.

[0097] The parameters to be focused on include effective voltage U, active power P, frequency f and power factor pf, and the stable period of the parameters to be focused on is Figure 2 Taking the stable segment as an example, after executing S302-S304 on the progress identification array C[1,1,1,1], it is determined that the element values ​​in the progress identification array C[1,1,1,2] are not greater than the corresponding element values ​​in the stable segment array. At this time, S302-S304 are re-executed through the progress identification array C[1,1,1,2]. The specific process is:

[0098] S31: For the effective voltage U (the first key parameter) in the progress indicator array C[1,1,1,2], the corresponding element value is 1, and the first stable segment corresponding to the effective voltage U is t U1 ~t U2 , record this in memory; the element value corresponding to the active power P (the second key parameter) in the progress identification array C[1,1,1,2] is 1, and the first stable segment corresponding to the active power P is t P1 ~t P2 , and compare it with the time period t recorded in the memory U1 ~t U2 Compare; due to t U1 <t P2 And t U2 >t P1 , then the time period recorded in the memory overlaps with the first stable period of active power P, and the overlapping period is max(t U1 ,t P1 )~min(t U1 ,t P2 ), that is, t U1 ~t P2 , record this overlapping segment into memory.

[0099] S32: The element value corresponding to frequency f in the progress indicator array C[1,1,1,2] is 1, and the first stable segment of frequency f is t f1 ~t f2 , and compare it with the time period t recorded in the memory U1 ~t P2 Compare; due to t U1 <t f2 And t P2 >t f1, then the time period t recorded in the memory U1 ~t P2 There is an overlap with the first stable segment of frequency f, and the overlap is max(t U1 ,tf1)~min(tp2,tf2), that is, t U1 ~t P2 , record this overlapping segment into memory.

[0100] S33: The element value corresponding to the power factor pf in the progress indicator array C[1,1,1,2] is 2, and the second stable segment of the power factor pf is t Pf3 ~t Pf4 , and compare it with the time period t recorded in the memory U1 ~t P2 Compare; because it does not satisfy t U1 <t Pf4 And t p2 >t pf3 The condition indicates that the time period recorded in the memory does not overlap with the second stable segment of the power factor pf, which means that there is no stable overlapping segment for all the key parameters in the progress identification array C[1,1,1,2].

[0101] S34: At this time, the comparison of the stable segments corresponding to the progress identification array C[1,1,1,2] is completed, and it is determined that there are no stable overlapping segments for all the key focus parameters in the progress identification array C[1,1,1,2]; the element value corresponding to the position of the key parameter that does not match the stable segment in the progress identification array C is increased by 1. Since there is no overlapping segment for the comparison of the power factor pf in the progress identification array C[1,1,1,2], the element value corresponding to the power factor pf is increased by 1, that is, C changes from [1,1,1,2] to [1,1,1,3].

[0102] S35: The progress identification array C and the stable segment array C at this time end Compare the values ​​of each element at the corresponding position. Since the value of the last element of the progress indicator array C is 3, it is greater than the stable segment array C. end The corresponding element value 2 in needs to be carried out: that is, C is greater than the stable segment array C end The element value is changed to 1, and the value of the element before this element is increased by 1, that is, C changes from [1,1,1,3] to [1,1,2,1].

[0103] S36: At this time, continue to determine whether the element values ​​in the progress identification array C[1,1,2,1] are not greater than the stable segment array C end After judgment, it is determined that the element values ​​in the progress identification array C[1,1,2,1] are not greater than the stable segment array C end, then continue to execute steps S302-S304 according to the progress identification array C[1,1,2,1].

[0104] For the current progress identification array C[1,1,2,1], the operations of steps S302-S305 are performed as follows:

[0105] S41: For the effective voltage U (the first key parameter) in the progress indicator array C[1,1,2,1], the corresponding element value is 1, and the first stable segment corresponding to the effective voltage U is t U1 ~t U2 , record this in memory; the element value corresponding to the active power P (the second key parameter) in the progress identification array C[1,1,1,2] is 1, and the first stable segment corresponding to the active power P is t P1 ~t P2 , and compare it with the time period t recorded in the memory U1 ~t U2 Compare; due to t U1 <t P2 And t U2 >t P1 , then the time period recorded in the memory overlaps with the first stable period of active power P, and the overlapping period is max(t U1 ,t P1 )~min(t U1 ,t P2 ), that is, t U1 ~t P2 , record this overlapping segment into memory.

[0106] S42: The element value corresponding to frequency f in the progress indicator array C[1,1,2,1] is 2, and the second stable segment of frequency f is t f3 ~t f3 , and compare it with the time period t recorded in the memory U1 ~t P2 Compare; because it does not satisfy t U1 <t f4 And t P2 >t f3 The condition indicates that the time period recorded in the memory has no overlap with the second stable segment of frequency f.

[0107] S43, at this time, the comparison of the stable segments corresponding to the progress identification array C[1,1,2,1] is completed, and it is determined that there are no stable overlapping segments for all the key focus parameters in the progress identification array C[1,1,2,1]; the element value corresponding to the position of the key parameter that does not match the stable segment in the progress identification array C is increased by 1. Since there is no overlapping segment for the comparison of frequency f in the progress identification array C[1,1,2,1], the element value corresponding to frequency f is increased by 1, that is, C changes from [1,1,2,1] to [1,1,3,1].

[0108] S44, at this time, continue to judge the progress identification array C[1,1,3,1] and the stable segment array C end [4,3,2,2] Compare the values ​​of each element in the corresponding position. Since the value of the third element of C is 3, which is greater than C end The corresponding element value in C is 2, and a carry operation is required: end The element value of is changed to 1, and the value of the element before this number is increased by 1, that is, C changes from [1,1,3,1] to [1,2,1,1]. At this time, if the element values ​​in the progress identification array C[1,2,1,1] are not greater than the stable segment array C end , then continue to execute steps S302-S304 according to the progress identification array C[1,2,1,1].

[0109] Similarly, the stable segments of the key parameters are compared according to the above process until the carry operation is completed on the progress indicator array C and the value of each element of C is still not greater than the stable segment array C. end In this case, C changes from [4,3,2,2] to [4,3,2,3], and after the carry operation, it becomes [5,1,1,1], which still does not meet the conditions, that is, the comparison of all stable segments is completed. At this time, all overlapping segments that meet the conditions can be obtained, which is t in this case. pf1 ~t p2 ,t U3 ~t f2 ,t f3 ~t U4 and t U7 ~t U8 .

[0110] The above-described situations of executing S302-S304 are respectively the situation where the current stable segment combination meets the conditions, the situation where the current stable segment combination does not meet the conditions and is confirmed to be unsatisfactory only when the last key parameter is matched, the situation where the current stable segment combination does not meet the conditions and is confirmed to be unsatisfactory when a certain key parameter in the middle is matched, and the situation where all stable segment combinations are matched; that is, they correspond to several different typical situations.

[0111] It should be noted that this application mainly uses the four key focus parameters of effective voltage U, active power P, frequency f and power factor pf to illustrate the implementation method of the stable overlapping segment search of the test data provided by the present invention. However, in actual applications, the number of key focus parameters can be set according to actual needs, and the method in this application can be used to search for stable overlapping segments.

[0112] When applying the method for implementing the stable overlapping segment search of test data provided by the present invention, it is not necessary to Figure 1 The steps are executed in the order shown. The specific execution order of the steps can be determined according to needs, and the present invention does not limit this.

[0113] The above is a method for implementing the stable overlapping segment search of test data provided by one or more embodiments of the present invention. Based on the same idea, the present invention also provides a corresponding device for implementing the stable overlapping segment search of test data, such as Figure 4 shown.

[0114] Figure 4 A schematic diagram of a device for implementing a stable overlapping segment search of test data provided by the present invention, the device 400 comprises:

[0115] The acquisition module 401 is used to analyze the test data, obtain multiple key focus parameters and stable segments corresponding to the multiple key focus parameters; and obtain a progress identification array and a stable segment array; the array size of the progress identification array is the number of key focus parameters during equipment testing, each element in the progress identification array corresponds to a key focus parameter, the value of each element in the progress identification array is 1, and the value of the element in the progress identification array identifies the number of the stable segment corresponding to the key focus parameter; the array size of the stable segment array is the number of key focus parameters, and the value of each element in the stable segment array is the total number of stable segments of the key focus parameters.

[0116] The comparison module 402 is used to compare the stable segments of all the key focus parameters identified in the progress identification array based on the progress identification array and the stable segment array; determine whether there are stable overlapping segments between all the key focus parameters, if so, record the stable overlapping segments, and add 1 to the value corresponding to the last element in the progress identification array; if not, add 1 to the value of the element in the progress identification array corresponding to the key focus parameter that does not match the stable overlapping segment.

[0117] The first judgment module 403 is used to perform a carry operation on the progress identification array if there is an element in the progress identification array that is greater than the element value in the corresponding stable segment array.

[0118] The second judgment module 404 is used to output all stable overlapping segments of all key focus parameters if there is an element in the progress indicator array after the carry operation that is greater than the element value in the corresponding stable segment array.

[0119] Preferably, the comparison module 402 is specifically used to compare the stable segment corresponding to the first key focus parameter identified in the progress identification array with the stable segment corresponding to the second key focus parameter; if there is no overlapping segment between the first key focus parameter and the second key focus parameter, it is determined that there is no stable overlapping segment for all the key focus parameters in the progress identification array; if there is an overlapping segment between the first key focus parameter and the second key focus parameter, the overlapping segment is compared with the stable segment corresponding to the third key focus parameter identified in the progress identification array; if there is an overlapping segment between the overlapping segment and the stable segment corresponding to the third key focus parameter identified in the progress identification array, the overlapping segment is continued to be compared with the stable segment corresponding to the next key focus parameter in the progress identification array, until all the key focus parameters in the progress identification array are compared, and the stable overlapping segments of all the key focus parameters corresponding to the progress identification array are obtained.

[0120] If the overlapping segment does not overlap with the stable segment corresponding to other key attention parameters identified in the progress identification array, it is determined that all the corresponding key attention parameters in the progress identification array do not have a stable overlapping segment.

[0121] Preferably, the stable segment corresponding to the first key parameter is t 11 ~t 12 The second key parameter is the stable segment corresponding to t 21 ~t 22 , the comparison module 402 is also used to determine if t 11 <t 22 And t 12 >t 21 , then the overlapping segment is max(t 11 ,t 21 )~min(t 12 ,t 22 ); otherwise, it is determined that there are no overlapping segments between the first focus parameter and the second focus parameter.

[0122] Preferably, the device 400 is also specifically used to determine that if there is no overlapping segment between the first key focus parameter and the second key focus parameter, it is determined that the second key focus parameter in the progress identification array does not match the stable overlapping segment; the key focus parameter in the progress identification array corresponding to the overlapping segment and the stable segment without overlapping is determined as the key focus parameter that does not match the stable overlapping segment.

[0123] Preferably, the first judgment module 401 is specifically used to obtain the position of the element in the progress indicator array that is greater than the element value in the corresponding stable segment array; set the element value at this position to 1, and add 1 to the corresponding element value at the previous position of this position.

[0124] Preferably, the device 400 further specifically includes:

[0125] The execution module is used for re-executing the step of comparing the stable segments of all the key focus parameters identified in the progress identification array when there is a change in the element value in the progress identification array, if each element value in the progress identification array is less than or equal to the element value in the corresponding stable segment array.

[0126] The specific definition of the implementation device of the stable overlapping segment search of test data can be found in the definition of the implementation method of the stable overlapping segment search of test data in the above text, which will not be repeated here. Each module in the above-mentioned implementation device of the stable overlapping segment search of test data can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0127] The present invention also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 Provides an implementation method for stable overlapping segment search of test data.

[0128] The present invention also provides Figure 5 The structural diagram of the computer device shown in FIG. Figure 5 As shown in the figure, at the hardware level, the computer device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 Provides an implementation method for stable overlapping segment search of test data.

[0129] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0130] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of the present invention.

Claims

1. A method for implementing stable overlapping segment search of test data, characterized in that: include: Analyze the test data to obtain multiple key focus parameters and stable segments corresponding to the multiple key focus parameters; Get the progress identification array and the stable segment array; the array size of the progress identification array is the number of key focus parameters during device testing, the position of each element in the progress identification array corresponds to a key focus parameter, the value of each element in the progress identification array is 1, and the value of the element in the progress identification array identifies the number of the stable segment corresponding to the key focus parameter; the array size of the stable segment array is the number of key focus parameters, and the value of each element in the stable segment array is the total number of stable segments of the key focus parameter; Based on the progress identification array and the stable segment array, the stable segments of all the key parameters identified in the progress identification array are compared; Determine whether there is a stable overlapping segment between all the key attention parameters. If so, record the stable overlapping segment and add 1 to the value corresponding to the last element in the progress identification array. If not, add 1 to the value of the element in the progress identification array corresponding to the key attention parameter that does not match the stable overlapping segment. If there is an element in the progress identifier array that is greater than the element value in the corresponding stable segment array, a carry operation is performed on the progress identifier array; If there is an element in the progress identification array after the carry operation that is greater than the element value in the corresponding stable segment array, all stable overlapping segments of all key focus parameters are output.

2. The method according to claim 1, characterized in that The step of comparing the stable segments of all the key parameters identified in the progress identification array specifically includes: Compare the stable segment corresponding to the first key focus parameter identified in the progress identification array with the stable segment corresponding to the second key focus parameter; If there is no overlapping segment between the first key attention parameter and the second key attention parameter, it is determined that there is no stable overlapping segment for all key attention parameters in the progress identification array; if there is an overlapping segment between the first key attention parameter and the second key attention parameter, the overlapping segment is compared with the stable segment corresponding to the third key attention parameter identified in the progress identification array; If there is an overlapping segment between the overlapping segment and the stable segment corresponding to the third key attention parameter identified in the progress identification array, then continue to compare the overlapping segment with the stable segment corresponding to the next key attention parameter in the progress identification array until all key attention parameters in the progress identification array are compared, and obtain the stable overlapping segments corresponding to all key attention parameters in the progress identification array; If the overlapping segment does not overlap with the stable segment corresponding to other key attention parameters identified in the progress identification array, it is determined that all the corresponding key attention parameters in the progress identification array do not have a stable overlapping segment.

3. The method according to claim 2, characterized in that The first focus parameter corresponds to the stable segment t 11 ~t 12 The second key parameter is the stable segment corresponding to t 21 ~t 22 The step of comparing the stable segment corresponding to the first key concern parameter identified in the progress identification array with the stable segment corresponding to the second key concern parameter specifically includes: If 11 <t 22 And t 12 >t 21 , then the overlapping segment is max(t 11 ,t 21 )~min(t 12 ,t 22 ); Otherwise, it is determined that there is no overlapping segment between the first focused attention parameter and the second focused attention parameter.

4. The method according to claim 2, characterized in that The method further specifically comprises: If there is no overlapping segment between the first key focus parameter and the second key focus parameter, it is determined that the second key focus parameter in the progress identifier array does not match a stable overlapping segment; The key attention parameter corresponding to the stable segment that does not overlap with the overlapping segment is determined as the key attention parameter that does not match the stable overlapping segment.

5. The method according to any one of claims 1 to 4, characterized in that: The performing a carry operation on the progress indicator array specifically includes: Get the position of the element in the progress indicator array that is greater than the element value in the corresponding stable segment array; Set the value of the element at this position to 1, and add 1 to the value of the corresponding element at the previous position.

6. The method according to any one of claims 1 to 4, characterized in that: The method further specifically comprises: When there is a change in the element value in the progress identification array, if each element value in the progress identification array is less than or equal to the element value in the corresponding stable segment array, the step of comparing the stable segments of all key focus parameters identified in the progress identification array is re-executed.

7. A device for implementing a stable overlapping segment search of test data, characterized in that: include: The acquisition module is used to analyze the test data, obtain multiple key focus parameters and stable segments corresponding to the multiple key focus parameters; and obtain the initialization progress identification array and the stable segment array; the array size of the progress identification array is the number of key focus parameters during equipment testing, and the position of each element in the progress identification array corresponds to a key focus parameter. The value of each element in the progress identification array is 1, and the value of the element in the progress identification array identifies the number of the stable segment corresponding to the key focus parameter; the array size of the stable segment array is the number of key focus parameters, and the value of each element in the stable segment array is the total number of stable segments of the key focus parameters in turn; A comparison module is used to compare the stable segments of all the key attention parameters identified in the progress identification array based on the progress identification array and the stable segment array; determine whether there are stable overlapping segments between all the key attention parameters, if so, record the stable overlapping segments, and add 1 to the value corresponding to the last element in the progress identification array; if not, add 1 to the value of the element in the progress identification array corresponding to the key attention parameter that does not match the stable overlapping segment; The first judgment module is used to perform a carry operation on the progress identification array if there is an element in the progress identification array that is greater than the element value in the corresponding stable segment array; The second judgment module is used to output all stable overlapping segments of all key focus parameters if there is an element in the progress identification array after the carry operation that is greater than the element value in the corresponding stable segment array.

8. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

9. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 6 is implemented.