Disclosure of Invention
In view of this, the embodiments of the present application provide a method and related device for testing LCM response time, which can improve the testing accuracy of LCM response time.
The first aspect of the embodiments of the present application provides a method for testing LCM response time, which is applied to an electronic device, and the method includes:
acquiring a control instruction input by a user;
controlling the running state of a to-be-tested LCM in communication connection with the electronic equipment according to the control instruction, so that a first driving signal output by a first driving device of the to-be-tested LCM is in a first state between a first preset time and a second preset time, is in the second state between the second preset time and a third preset time, is in the first state between the third preset time and a fourth preset time, and is different from the first state and the second state;
acquiring a scanning signal between the first preset time and the fourth preset time, which is sent by a detector in communication connection with the electronic equipment, wherein the scanning signal is used for describing brightness information of the LCM to be tested;
and determining the response time of the LCM to be tested according to the scanning signals.
In a possible implementation manner of the first aspect, the determining a response time of the LCM to be tested according to the scan signal includes:
acquiring a scanning signal of a first time interval, a scanning signal of a second time interval and a scanning signal of a third time interval from the scanning signals;
determining a first signal intensity corresponding to a first time interval according to the scanning signal of the first time interval, determining a second signal intensity corresponding to a second time interval according to the scanning signal of the second time interval, and determining a third signal intensity corresponding to a third time interval according to the scanning signal of the third time interval;
determining a response time of the LCM to be tested according to the first signal strength, the second signal strength, the third signal strength and the scanning signal.
In a possible implementation manner of the first aspect, the determining the response time of the LCM to be tested according to the first signal strength, the second signal strength, the third signal strength and the scan signal includes:
determining the rise time and the fall time from the first signal strength, the second signal strength, the third signal strength, and the scan signal
In a possible implementation manner of the first aspect, the determining the rise time and the fall time according to the first signal strength, the second signal strength, the third signal strength, and the scanning signal, where the raw data of the scanning signal includes a signal measurement value corresponding to a preset detection time, and the preset detection time includes a first preset detection time, a second preset detection time, a third preset detection time, and a fourth preset detection time, includes:
determining a first predicted value, a second predicted value, a third predicted value and a fourth predicted value according to the first signal strength, the second signal strength and the third signal strength;
determining a first signal measurement value, a second signal measurement value, a third signal measurement value and a fourth signal measurement value from the signal measurement values, wherein the difference between the first signal measurement value and the first prediction value is within a first preset range, the difference between the second signal measurement value and the second prediction value is within a second preset range, the difference between the third signal measurement value and the third prediction value is within a third preset range, and the difference between the fourth signal measurement value and the fourth prediction value is within a fourth preset range;
determining a first preset detection time corresponding to the first signal measurement value, a second preset detection time corresponding to the second signal measurement value, a third preset detection time corresponding to the third signal measurement value and a fourth preset detection time corresponding to the fourth signal measurement value from the preset detection times;
and determining the rising time according to the first preset detection time and the second preset detection time, and determining the falling time according to the third preset detection time and the fourth preset detection time.
In a possible implementation manner of the first aspect, the determining the rise time according to the first preset detection time and the second preset detection time, and determining the fall time according to the third preset detection time and the fourth preset detection time includes:
acquiring a first correction coefficient, a second correction coefficient, a third correction coefficient and a fourth correction coefficient;
determining a first response time according to the first preset detection time and the first correction coefficient, determining a second response time according to the second preset detection time and the second correction coefficient, determining a third response time according to the third preset detection time and the third correction coefficient, and determining a fourth response time according to the fourth preset detection time and the fourth correction coefficient;
and determining the rising time according to the first response time and the second response time, and determining the falling time according to the third response time and the fourth response time.
In a possible implementation manner of the first aspect, the obtaining a first correction coefficient, a second correction coefficient, a third correction coefficient, and a fourth correction coefficient includes:
determining a first correction coefficient according to the first signal measurement value and the first preset detection time, determining a second correction coefficient according to the second signal measurement value and the second preset detection time, determining a third correction coefficient according to the third signal measurement value and the third preset detection time, and determining a fourth correction coefficient according to the fourth signal measurement value and the fourth preset detection time.
In a possible implementation manner of the first aspect, the determining a first predicted value, a second predicted value, a third predicted value, and a fourth predicted value according to the first signal strength, the second signal strength, and the third signal strength includes:
and determining a first predicted value and a second predicted value according to the difference value of the first signal strength and the second signal strength, and determining a third predicted value and a fourth predicted value according to the difference value of the second signal strength and the third signal strength.
In a possible implementation manner of the first aspect, after the obtaining of the control instruction input by the user, the method further includes:
instructing a second driving device in communication connection with the electronic device to output a second driving signal so that the first driving signal is synchronized with the second driving signal, wherein the second driving signal is used for outputting to the LCM to be tested.
A second aspect of embodiments of the present application provides an apparatus for testing LCM response time, including:
the acquisition module is used for acquiring a control instruction input by a user;
the control module is used for controlling the running state of a to-be-tested LCM in communication connection with the electronic equipment according to the control instruction, so that a first driving signal output by a first driving device of the to-be-tested LCM is in a first state between a first preset time and a second preset time, is in the second state between the second preset time and a third preset time, and is in the first state between the third preset time and a fourth preset time, wherein the first state is different from the second state;
the receiving module is used for acquiring scanning signals between the first preset time and the fourth preset time, which are sent by a detector in communication connection with the electronic equipment, and the scanning signals are used for describing brightness information of the LCM to be tested;
and the calculating module is used for determining the response time of the LCM to be tested according to the scanning signals.
In one possible implementation manner of the second aspect, the calculation module includes:
an extraction unit configured to acquire a scan signal of a first period, a scan signal of a second period, and a scan signal of a third period from the scan signals;
the first calculating unit is used for determining first signal intensity corresponding to a first time interval according to the scanning signals of the first time interval, determining second signal intensity corresponding to a second time interval according to the scanning signals of the second time interval, and determining third signal intensity corresponding to a third time interval according to the scanning signals of the third time interval;
and the second calculation unit is used for determining the response time of the LCM to be tested according to the first signal strength, the second signal strength, the third signal strength and the scanning signal.
In a possible implementation manner of the second aspect, the first state is a signal-off state, the second state is a signal-on state, the response time of the LCM includes a rise time and a fall time, and correspondingly, the second calculating unit is specifically configured to:
determining the rise time and the fall time from the first signal strength, the second signal strength, the third signal strength, and the scan signal.
In a possible implementation manner of the second aspect, the original data of the scanning signal includes a signal measurement value corresponding to a preset detection time, and the preset detection time includes a first preset detection time, a second preset detection time, a third preset detection time, and a fourth preset detection time, and the second calculating unit is specifically configured to:
determining a first predicted value, a second predicted value, a third predicted value and a fourth predicted value according to the first signal strength, the second signal strength and the third signal strength;
determining a first signal measurement value, a second signal measurement value, a third signal measurement value and a fourth signal measurement value from the signal measurement values, wherein the difference between the first signal measurement value and the first prediction value is within a first preset range, the difference between the second signal measurement value and the second prediction value is within a second preset range, the difference between the third signal measurement value and the third prediction value is within a third preset range, and the difference between the fourth signal measurement value and the fourth prediction value is within a fourth preset range;
determining a first preset detection time corresponding to the first signal measurement value, a second preset detection time corresponding to the second signal measurement value, a third preset detection time corresponding to the third signal measurement value and a fourth preset detection time corresponding to the fourth signal measurement value from the preset detection times;
and determining the rising time according to the first preset detection time and the second preset detection time, and determining the falling time according to the third preset detection time and the fourth preset detection time.
In a possible implementation manner of the second aspect, the determining the rise time according to the first preset detection time and a second preset detection time, and the second calculating unit is specifically configured to:
acquiring a first correction coefficient, a second correction coefficient, a third correction coefficient and a fourth correction coefficient;
determining a first response time according to the first preset detection time and the first correction coefficient, determining a second response time according to the second preset detection time and the second correction coefficient, determining a third response time according to the third preset detection time and the third correction coefficient, and determining a fourth response time according to the fourth preset detection time and the fourth correction coefficient;
and determining the rising time according to the first response time and the second response time, and determining the falling time according to the third response time and the fourth response time.
In a possible implementation manner of the second aspect, the second computing unit is specifically configured to:
determining a first correction coefficient according to the first signal measurement value and the first preset detection time, determining a second correction coefficient according to the second signal measurement value and the second preset detection time, determining a third correction coefficient according to the third signal measurement value and the third preset detection time, and determining a fourth correction coefficient according to the fourth signal measurement value and the fourth preset detection time.
In a possible implementation manner of the second aspect, the determining, by the second computing unit, a first predicted value, a second predicted value, a third predicted value, and a fourth predicted value according to the first signal strength, the second signal strength, and the third signal strength specifically includes:
and determining a first predicted value and a second predicted value according to the difference value of the first signal strength and the second signal strength, and determining a third predicted value and a fourth predicted value according to the difference value of the second signal strength and the third signal strength.
In a possible implementation manner of the second aspect, the control module is further configured to:
instructing a second driving device in communication connection with the electronic device to output a second driving signal so that the first driving signal is synchronized with the second driving signal, wherein the second driving signal is used for outputting to the LCM to be tested.
A third aspect of embodiments of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method according to the first aspect.
A fourth aspect of the embodiments of the present application provides a system for LCM response time, which includes an LCM to be tested, a detector, and an electronic device as described in the third aspect above.
In a possible implementation manner of the fourth aspect, the system further includes a second driving device, and the second driving device is connected in communication with both the electronic device and the LCM to be tested.
Compared with the prior art, the embodiment of the application has the advantages that: by acquiring a control instruction input by a user, controlling the running state of the LCM to be tested according to the control instruction, enabling a first driving signal output by a first driving device of the LCM to be tested to be in a first state between a first preset time and a second preset time, to be in a second state between the second preset time and a third preset time, and to be in the first state between the third preset time and a fourth preset time, so that the accurate time of the first driving signal in the first state and the second state can be obtained, the accurate time of the first driving signal input to the LCD in the LCM in each state can be determined, the interference factor of disordered self-running of an IC driving board is eliminated, and then a scanning signal between the first preset time and the fourth preset time and transmitted by a detector in communication connection with the electronic device is acquired, so that the scanning signal is matched with the first driving signal in time, and because the first driving signal comprises a first state and a second state which are different, a complete scanning signal can be obtained, and the response time of the LCM to be tested is determined according to the characteristics of the scanning signal and the response time, so that the test accuracy of the response time of the LCM is improved.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In addition, in the description of the present application, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic diagram of a system for testing response time of an LCM according to an embodiment of the present application, where the system includes an electronic device 100 and a detector 200, and the electronic device 100 is communicatively connected to an LCM300 to be tested. The LCM300 to be tested includes a first driving device and an LCD. The electronic device 100 is configured to control an operation state of the LCM300 to be tested according to a control instruction input by a user, where the operation state includes an on state and an off state, that is, the electronic device 100 controls the on and off states of the LCM to be tested according to the control instruction input by the user, so that a first driving signal output by a first driving device of the LCM300 to be tested is in the first state between a first preset time and a second preset time, is in the second state between the second preset time and a third preset time, and is in the first state between the third preset time and a fourth preset time, where the first state and the second state are different, and the first driving signal output by the first driving device is used for driving the LCD to display. The first driving signal electronic device 100 is further configured to control the detector 200 to detect brightness information of the LCM300 to be tested, where the brightness information of the LCM300 to be tested is brightness information of the LCD, the detector 300 generates a scanning signal according to the brightness information, and sends the scanning signal to the electronic device 100, and the electronic device 100 determines a response time of the LCM 400 to be tested according to the scanning signal. The electronic device 100 may further include a display screen for displaying the scan signal.
In a possible implementation manner, the system further includes a second driving device 400, and the second driving device 400 is in communication connection with the LCM300 to be tested and the electronic device 100. The electronic device 100 is further configured to instruct the second driving device 400 to output a first driving signal to the LCM300 to be tested, so that the first driving signals output by the first driving device and the second driving device 400 are synchronized, that is, the second driving signal is in a first state between a first preset time and a second preset time, is in a second state between the second preset time and a third preset time, and is in the first state between the third preset time and a fourth preset time, so that the LCD obtains the superimposed driving signal, and avoids interference of the first driving signal on the second driving signal, thereby obtaining an accurate test result.
The following describes a method for testing the response time of the LCM provided by the embodiment of the present application, according to the system shown in FIG. 1. As shown in fig. 2, the method for testing LCM response time provided by the embodiment of the present application includes:
s101: and acquiring a control instruction input by a user.
Specifically, the user may input the control command through a keyboard or a voice input.
S102: and controlling the running state of a to-be-tested LCM in communication connection with the electronic equipment according to the control instruction, so that a first driving signal output by a first driving device of the to-be-tested LCM is in a first state between a first preset time and a second preset time, is in a second state between the second preset time and a third preset time, is in the first state between the third preset time and a fourth preset time, and is different from the second state.
The operation state comprises an opening state and a closing state. The first driving signal comprises a signal on state and a signal off state, the second state is the signal off state when the first state is the signal on state, and the second state is the signal on state when the first state is the signal off state.
In one possible implementation, the first state is a signal-off state and the second state is a signal-on state. After receiving the control instruction, the electronic equipment starts timing and controls the LCM to be tested to be in a closed state, the first driving signal is in the closed state, and the timing starting moment is a first preset moment; when the second preset time is reached, the electronic equipment controls the LCM to be tested to be in the open state, the first driving signal is switched from the closed state to the open state, when the third preset time is reached, the electronic equipment controls the LCM to be tested to be in the closed state, the first driving signal is switched from the open state to the closed state, and when the fourth preset time is reached, timing is finished. And the total duration from the first preset time to the fourth preset time is 3 seconds to 20 seconds. The duration of the first state and the duration of the second state are both greater than 1 second, so that the problem of inaccurate test caused by delay of the response time of the equipment or the response time of the program is prevented
It should be noted that the switching between the first state and the second state is not completed immediately, and the switching time is different according to different samples to be tested, where the time required for switching the first state to the second state corresponds to the response time.
S103: and acquiring a scanning signal between the first preset time and the fourth preset time, which is sent by a detector in communication connection with the electronic equipment, wherein the scanning signal is used for describing brightness information of the LCM to be tested.
The LCM to be tested displays different brightness in different states, when the LCM to be tested is in a closed state, the display interface displays a black picture in a mode (A) in the mode 3, and when the LCM to be tested is in an open state, the display interface displays a white picture in a mode (B) in the mode 3.
Taking the first state as the signal off state and the second state as the signal on state as an example, from the first preset time to the fourth preset time, the display interface of the LCM to be tested changes from a black picture to a white picture and then changes from the white picture to the black picture, that is, the brightness of the display interface of the LCM to be tested changes from dark to bright and then from bright to dark. Correspondingly, the signal intensity of the scanning signal obtained by detecting the LCM is from small to large and then from large to small from the first preset time to the fourth preset time. For example, as shown in fig. 4, a curve h is a schematic diagram of a scanning signal under a test condition, wherein the abscissa represents the detection time and the ordinate represents the signal measurement value.
If the scanning start time of the detector is inconsistent with the first time and the difference time is not more than 1 second, the scanning signal measured by the detector is still a valid scanning signal from the second time, and if the scanning start time of the detector is more than 1 second, the scanning signal measured by the detector is incomplete and the scanning signal is invalid.
S104: and determining the response time of the LCM to be tested according to the scanning signals.
First, the principle of testing the response time of the LCM is described, as shown in fig. 5, 51 is a driving signal input to the LCM, the driving signal is a square wave, and 52 is a corresponding schematic diagram of the scanning signal in an ideal case. For T in the scanning signal10The transmission of the LCM is 10% of the maximum transmission, for T in the scanning signal90The LCM has a transmittance of 90% of the maximum transmittance, and is represented by T 'in the scanning signal'90The LCM has a transmittance of 90% of the maximum transmittance, and is represented by T 'in the scanning signal'10The LCM has a transmission of 10% of the maximum transmission. Then T10The corresponding time and T90The time length between the corresponding moments is the rising time T 'in the response time'90The corresponding time point is T'10The time length between the corresponding moments is the fall time in the response time.
According to the ideal calculation method of the rise time and the fall time, the calculation method of the response time of the present application is as follows. As shown in fig. 6, a scan signal of a first period a, which is a period in which the signal intensity is within a first intensity range, a scan signal of a second period b, which is a period in which the signal intensity is within a second intensity range, and a scan signal of a third period c, which is a period in which the signal intensity is within a third intensity range, are acquired from the scan signals. Determining T according to the change of the signal strength of the first time period a10Point of signal intensity according to the second period bDetermining T90Point and T'90Determining T 'according to the change condition of the signal intensity of the third period c'10Point, again according to T10Dot, T90Point, T'90Point and T'10And determining the rising time and the falling time at the corresponding time.
Specifically, the average of the signal strengths of the first period a is taken as the first signal strength, the average of the signal strengths of the second period b is taken as the second signal strength, and the average of the signal strengths of the third period c is taken as the third signal strength. After the first signal strength, the second signal strength and the third signal strength are calculated, a first predicted value and a second predicted value are determined according to the difference value of the first signal strength and the second signal strength, and a third predicted value and a fourth predicted value are determined according to the difference value of the second signal strength and the third signal strength.
In one possible implementation, the formula T is used10=T1Determining a first predicted value according to the formula T90=T1Determining a second predicted value according to a formula T'90=T2Determining a third predicted value according to a formula T 'from 90% + C'10=T2Determining a fourth predicted value of 10% + C, wherein T10Denotes the first predicted value, T90Denotes a second predicted value, T'90Represents a third predicted value, T'10Denotes the fourth predicted value, T1Representing the difference, T, between the first and second signal strengths2A difference representing the second signal strength and a difference representing the third signal strength, a representing the first signal strength, and C representing the third signal strength.
For example, in the scanning signal shown in fig. 6, the average value of the signal intensity of the first period a, i.e., the first signal intensity a, is 80.3688, the average value of the signal intensity of the second period B, i.e., the second signal intensity B, is 100.49557, and the average value of the signal intensity of the third period C, i.e., the third signal intensity C, is 80.0131.
The difference T1 between the first signal strength and the second signal strength is 20.1268, the difference T2 between the second signal strength and the third signal strength is 20.4825, and the first signal strength and the second signal strength are calculated according to the formulaFormula T10=T1Determining a first predicted value T by 10% + A1082.381477 according to the formula T90=T1Determining a second predicted value T by 90% + A9098.482893, according to formula T'90=T 290% + C determines a third predicted value T'9098.447323, according to formula T'10=T 210% + C determines a fourth predicted value T'10Is 82.061347.
And after the first predicted value, the second predicted value, the third predicted value and the fourth predicted value are calculated, acquiring the original data of the scanning signals, wherein the original data of the scanning signals comprise signal measured values corresponding to preset detection time. Determining a first signal measurement value, a second signal measurement value, a third signal measurement value and a fourth signal measurement value from the signal measurement values, wherein a difference between the first signal measurement value and the first prediction value is within a first preset range, a difference between the second signal measurement value and the second prediction value is within a second preset range, a difference between the third signal measurement value and the third prediction value is within a third preset range, and a difference between the fourth signal measurement value and the fourth prediction value is within a fourth preset range.
The first preset range, the second preset range, the third preset range and the fourth preset range are set according to the performance of the LCM to be tested and the performance of the detector, the signal measurement value closest to the first predicted value can be determined according to the first preset range, the signal measurement value closest to the second predicted value can be determined according to the second preset range, the signal measurement value closest to the third predicted value can be determined according to the third preset range, and the signal measurement value closest to the fourth predicted value can be determined according to the fourth preset range.
In one possible implementation, in the raw data of the scanning signal, the signal measurement value closest to the first prediction value is a first signal measurement value, the signal measurement value closest to the second prediction value is a second signal measurement value, the signal measurement value closest to the third prediction value is a third signal measurement value, and the signal measurement value closest to the fourth prediction value is a fourth signal measurement value.
After the first signal measurement value, the second signal measurement value, the third signal measurement value and the fourth signal measurement value are determined, a first preset detection time corresponding to the first signal measurement value, a second preset detection time corresponding to the second signal measurement value, a third preset detection time corresponding to the third signal measurement value and a fourth preset detection time corresponding to the fourth signal measurement value in the scanning signal are determined.
After the first detection time, the second detection time, the third detection time and the fourth detection time are calculated, the time length between the first preset detection time and the second preset detection time is the rise time, and the time length between the third preset detection time and the fourth preset detection time is the fall time.
For example, table 1 shows the partial raw data of the scan signal, the signal measurement value closest to the first predictor is 82.539, i.e., the first signal measurement value is 82.539, and the signal measurement value closest to the second predictor is 98.523, i.e., the second signal measurement value is 98.523. If the first detection time corresponding to the first signal measurement value is 1530.3 ms and the second detection time corresponding to the second signal measurement value is 1543.6 ms, the rise time is 13.3 ms according to the difference between the first detection time and the second detection time. Similarly, the fall time can be calculated according to the third predicted value and the fourth predicted value.
TABLE 1
In the above embodiment, by obtaining a control instruction input by a user, controlling the operating state of the LCM to be tested according to the control instruction, so that the first driving signal output by the first driving device of the LCM to be tested is in the first state between the first preset time and the second preset time, is in the second state between the second preset time and the third preset time, and is in the first state between the third preset time and the fourth preset time, thereby obtaining the accurate time when the first driving signal is in the first state and the second state, that is, the accurate time when the first driving signal input to the LCD in the LCM is in each state can be determined, eliminating the interference factor of the self-disordered operation of the IC, and then obtaining the scanning signal between the first preset time and the fourth preset time sent by the detector in communication connection with the electronic device, so that the scanning signal is matched with the first driving signal in time, and because the first driving signal comprises a first state and a second state which are different, a complete scanning signal can be obtained, and the response time of the LCM to be tested is determined according to the characteristics of the scanning signal and the response time, so that the test accuracy of the response time of the LCM is improved. Even if in some cases, each actual operation time of the device has a slight deviation (such as an advance or a delay) from the preset time, the detector can still scan a complete second-state scanning signal diagram between the second actual operation time and the third actual operation time as long as the error is within the allowable range, and the accurate response time can still be calculated according to the scanning signal diagram.
In another embodiment, after the first, second, third and fourth prediction values are calculated, the two signal measurement values closest to the first prediction value are the first signal measurement value, the two signal measurement values closest to the second prediction value are the second signal measurement value, the two signal measurement values closest to the third prediction value are the third signal measurement value, and the two signal measurement values closest to the fourth prediction value are the fourth signal measurement value in the original data of the scanning signals. After the first signal measurement value, the second signal measurement value, the third signal measurement value and the fourth signal measurement value are determined, a first preset detection time corresponding to the first signal measurement value, a second preset detection time corresponding to the second signal measurement value, a third preset detection time corresponding to the third signal measurement value and a fourth preset detection time corresponding to the fourth signal measurement value in the scanning signal are determined.
After the first detection time, the second detection time, the third detection time and the fourth detection time are determined, a first correction coefficient, a second correction coefficient, a third correction coefficient and a fourth correction coefficient are obtained, the first response time is determined according to the first preset detection time and the first correction coefficient, the second response time is determined according to the second preset detection time and the second correction coefficient, the third response time is determined according to the third preset detection time and the third correction coefficient, and the fourth response time is determined according to the fourth preset detection time and the fourth correction coefficient.
In one possible implementation, a first correction coefficient is determined according to a first signal measurement value and a first preset detection time, a second correction coefficient is determined according to a second signal measurement value and a second preset detection time, a third correction coefficient is determined according to a third signal measurement value and a third preset detection time, and a fourth correction coefficient is determined according to a fourth signal measurement value and a fourth preset detection time.
In particular, according to the formula
Determining a first correction factor, where α represents the first correction factor, T
10Representing a first predicted value, R and S representing two first signal measurements closest to the first predicted value, R>S, P denotes a first preset probing time corresponding to the first signal measurement value R, and Q denotes a first preset probing time corresponding to the first signal measurement value S. For example, the first predicted value T
1082.381477, the two first signal measurements R and S in the raw data that are closest to the first predicted values are 82.539 and 81.359, respectively, and the corresponding first predetermined probing times P and Q are 1530.3 and 1528.6, respectively, according to the formula
The first correction coefficient is obtained as 0.226907. Similarly, a second correction coefficient, a third correction coefficient, and a fourth correction coefficient may be determined.
After the first correction coefficient, the second correction coefficient, the third correction coefficient and the fourth correction coefficient are determined, the first response time is determined according to the first preset detection time and the first correction coefficient, the second response time is determined according to the second preset detection time and the second correction coefficient, the third response time is determined according to the third preset detection time and the third correction coefficient, and the fourth response time is determined according to the fourth preset detection time and the fourth correction coefficient. Specifically, a first response time is determined according to a difference between a first preset detection time and a first correction coefficient, a second response time is determined according to a difference between a second preset detection time and a second correction coefficient, a third response time is determined according to a difference between a third preset detection time and a third correction coefficient, and a fourth response time is determined according to a difference between a fourth preset detection time and a fourth correction coefficient.
Wherein the difference between any one of the first predetermined detection times and the first correction factor may be selected to determine the first response time. For example, if the first preset probing time P is 1530.3 and the first correction factor is 0.226907, the first response time is 1530.073. Similarly, the difference between any second preset detection time and the second correction coefficient is selected to determine a second response time, the difference between any third preset detection time and the third correction coefficient is selected to determine a third response time, and the difference between any fourth preset detection time and the fourth correction coefficient is selected to determine a fourth response time.
And after the first response time, the second response time, the third response time and the fourth response time are determined, the time length between the first response time and the second response time is taken as the rise time, and the time length between the third response time and the fourth response time is taken as the fall time.
In the above embodiment, after the first predicted value, the second predicted value, the third predicted value and the fourth predicted value are determined to be calculated, the first response time, the second response time, the third response time and the fourth response time are determined according to the first correction coefficient, the second correction coefficient, the third correction coefficient and the fourth correction coefficient, and then the rise time and the fall time are calculated according to the first response time, the second response time, the third response time and the fourth response time, so that the accuracy of calculating the response time is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 7 is a schematic diagram of an electronic device provided in an embodiment of the present application. As shown in fig. 7, the electronic apparatus of this embodiment includes: a processor 11, a memory 12 and a computer program 13 stored in said memory 12 and executable on said processor 11. The processor 11 executes the computer program 13 to implement the steps of the method embodiment for testing the LCM response time, such as steps S101 to S104 shown in fig. 2.
Illustratively, the computer program 13 may be partitioned into one or more modules/units, which are stored in the memory 12 and executed by the processor 11 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 13 in the electronic device.
The electronic device may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing device. The electronic device may include, but is not limited to, a processor 11, a memory 12. Those skilled in the art will appreciate that fig. 7 is merely an example of an electronic device and is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 11 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 12 may be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. The memory 12 may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device. Further, the memory 12 may also include both an internal storage unit and an external storage device of the electronic device. The memory 12 is used for storing the computer program and other programs and data required by the electronic device. The memory 12 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described apparatus/electronic device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.