CN110598310A - Signal conditioning method, circuit system, conditioning apparatus and storage medium - Google Patents

Signal conditioning method, circuit system, conditioning apparatus and storage medium Download PDF

Info

Publication number
CN110598310A
CN110598310A CN201910846249.7A CN201910846249A CN110598310A CN 110598310 A CN110598310 A CN 110598310A CN 201910846249 A CN201910846249 A CN 201910846249A CN 110598310 A CN110598310 A CN 110598310A
Authority
CN
China
Prior art keywords
circuit
value
signal
actual
output value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910846249.7A
Other languages
Chinese (zh)
Inventor
王少帅
黄炳南
陈剑丰
王帆
郭坚文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910846249.7A priority Critical patent/CN110598310A/en
Publication of CN110598310A publication Critical patent/CN110598310A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to a circuit signal conditioning method, a circuit system, a conditioning device and a storage medium, the method comprising: the first circuit outputs a circuit signal according to a set value of the first circuit, and the circuit signal is used as an input signal of the second circuit; the first circuit obtains an actual output value of a circuit signal; when the actual output value and the preset target output value do not meet the preset relationship, the first circuit adjusts the set value so as to output the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value meet the preset relationship. The adjusted actual output value of the circuit signal is closer to the target output value, the control precision of the circuit operated by the actual output value is improved, and the operation load of the circuit is reduced.

Description

Signal conditioning method, circuit system, conditioning apparatus and storage medium
Technical Field
The invention relates to the technical field of circuit signal processing, in particular to a circuit signal adjusting method, a circuit system, adjusting equipment and a storage medium.
Background
For a conventional simulation circuit, the simulation circuit generally includes a plurality of circuit boards, an output signal of a previous circuit board is used as an input signal of a next circuit board, and the next circuit board performs control, signal processing, and the like according to the input signal. Due to mutual interference of components in the circuit board, interference of surrounding environment and difference of control modes, signals output by the board A are inconsistent with target signals, and the target circuit signals are input signals which enable the board B to operate according to normal logic. Therefore, when the output signal of the board a is inaccurate, the normal operation of the board B is affected, and the board B cannot meet the requirement of control precision.
In the practical application process, the precision requirement of some products on input and output signals in the circuit board is very high, so that the simulation circuit board is usually tested before the products are put on line to ensure the normal operation of the simulation circuit board. In the related art, when the signal from the a board is inconsistent with the target signal required by the B board, the B board usually corrects the output signal from the a board, and the corrected signal is used as the input signal of the B board, for example, by using a function fitting method. However, this kind of correction method is generally low in accuracy, the B board cannot obtain an accurate input signal faster and more efficiently, and the operation load of the B board is increased, which affects the operation of the actual function of the B board.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a circuit signal adjusting method, a circuit system, an adjusting device, and a storage medium, so as to solve the problems in the related art that, when a circuit signal deviating from a target output value of the circuit signal is calibrated, calibration accuracy is low and load on a subsequent circuit is large due to calibration performed by a circuit to which the circuit signal is subsequently applied.
The invention adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides a circuit signal conditioning method, where the method includes:
the first circuit outputs a circuit signal according to a set value of the first circuit, wherein the circuit signal is used as an input signal of the second circuit;
the first circuit obtains an actual output value of the circuit signal;
and when the actual output value and the preset target output value do not meet the preset relationship, the first circuit adjusts the set value so as to output the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value meet the preset relationship.
In a second aspect, an embodiment of the present application provides a circuit, which is a first circuit, including:
the signal output module is used for outputting a circuit signal according to a set value in the first circuit, and the circuit signal is used as an input signal of a second circuit;
the acquisition module is used for acquiring an actual output value of the circuit signal;
and the adjusting module is used for adjusting the set value when the actual output value and the preset target output value do not meet the preset relationship, so that the signal output module outputs the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value obtained by the obtaining module meet the preset relationship.
In a third aspect, an embodiment of the present application provides a circuit system, including:
a first circuit as described in the second aspect of the embodiments of the present application; and the number of the first and second groups,
and the second circuit is connected with the first circuit and is used for inputting the circuit signal.
In a fourth aspect, an embodiment of the present application provides an adjusting apparatus, including:
a processor, and a memory coupled to the processor;
the memory is configured to store a computer program, the computer program being at least configured to execute the circuit signal conditioning method according to the first aspect of the embodiments of the present application;
the processor is used for calling and executing the computer program in the memory.
In a fifth aspect, the present application provides a storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method implements the steps of the circuit signal conditioning method according to the first aspect.
According to the technical scheme, the circuit signal is output through the first circuit according to the set value of the first circuit and serves as the input signal of the second circuit, and then the second circuit controls the work of each component in the second circuit by applying the circuit signal; the first circuit obtains the actual output value of the circuit signal and compares the actual output value with a preset target output value, and when the actual output value and the preset target output value do not meet the preset relationship, the set value is adjusted, so that the first circuit outputs the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value meet the preset relationship. Therefore, the circuit signal of the adjusted actual output value which meets the preset relation is used as the input signal of the second circuit, so that the problems of second circuit load increase and low accuracy rate caused by the execution of the second circuit in the adjusting process are solved, and the control accuracy of the second circuit is improved by improving the accuracy of the input signal of the second circuit.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a circuit signal conditioning method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for circuit signal conditioning according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for circuit signal conditioning according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a first circuit according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another first circuit according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a structure for cyclically detecting an actual value of each circuit signal according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a circuit system according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an adjusting apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
First, an example of an applicable scenario in the embodiment of the present invention is described: taking a simulation system as an example, a simulation circuit generally includes a plurality of circuit boards, an output signal of a previous circuit board is used as an input signal of a next circuit board, and the next circuit board performs operation of each module according to the input signal. The circuit in the former circuit board is referred to as a first circuit and the circuit in the latter circuit board is referred to as a second circuit, and the number of the first circuit and the second circuit is not limited.
Fig. 1 is a flowchart of a circuit signal conditioning method according to an embodiment of the present invention, where the method may be performed by a first circuit according to an embodiment of the present invention, and the first circuit may be implemented in software or hardware. Referring to fig. 1, the method may specifically include the following steps:
s101, the first circuit outputs a circuit signal according to a set value of the first circuit, and the circuit signal serves as an input signal of the second circuit.
Taking the above two circuit boards as an example, since the input signal of the second circuit is derived from the output signal of the first circuit, a target output value is usually set, and if the input signal of the second circuit is the same as the target output value or sufficiently close to the target output value, the second circuit can operate normally according to its own control logic. The first circuit is caused to output as an input signal to the second circuit at a target output value by adjusting a parameter in the first circuit, the adjustable parameter being referred to as a set value.
Specifically, the first circuit includes a plurality of components, each of which constitutes a plurality of functional blocks, and during the simulation, the first circuit operates according to its own control logic based on the set value, thereby outputting a circuit signal. The circuit signals output are usually different depending on the setting values. The output circuit signal is used as the input signal of the second circuit, so whether the output circuit signal accurately and directly influences whether the second circuit can normally operate or not. In a specific example, the initial value of the setting value may be a target output value, which reduces the amount of computation compared to a random value of the initial value of the setting value, and enables the output circuit signal to approach the target output value more quickly.
Optionally, the circuit signal includes: a voltage signal, or, a current signal. When the input signal required by the second circuit is a voltage signal, the first circuit can be controlled to output the voltage signal, or a current signal output by the first circuit is converted into the voltage signal; when the input signal required by the second circuit is a current signal, the first circuit can be controlled to output the current signal, or a voltage signal output by the first circuit is converted into the current signal.
S102, the first circuit obtains an actual output value of the circuit signal.
Specifically, after the first circuit outputs the circuit signal according to the set value, the first circuit obtains an actual output value of the circuit signal, and the detection module in the first circuit may be used to obtain the actual output value in general. For example, the target output value is 3V, the initial value of the set value is 3V, and the actual output value of the first circuit detection circuit signal is 2.5V. In an actual operation process, after each adjustment of the setting value, an adjusted circuit signal is usually obtained, where one of the adjusted circuit signals is used for example and is not specifically limited.
S103, when the actual output value and the preset target output value do not meet the preset relation, the first circuit adjusts the set value so as to output the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value meet the preset relation.
Optionally, the preset relationship may be set in a manner that an actual output value of a circuit signal output by the first circuit is used as an input signal of the second circuit, and the second circuit can normally operate.
Specifically, each time the first circuit obtains an output value, the first circuit compares the magnitude relationship between the actual output value and a preset target output value, and when the comparison result does not satisfy the preset relationship, it indicates that the actual output value of the first circuit cannot enable the second circuit to normally operate if the actual output value is used as the input value of the second circuit. In this case, the setting value may be adjusted specifically according to the comparison result, for example, if the actual output value is smaller than the target output value, the setting value is increased, and if the actual output value is larger than the target output value, the setting value is decreased. And then the first circuit outputs the adjusted circuit signal according to the adjusted set value, and if the adjusted circuit signal still does not meet the preset relation, the adjustment is continued until the actual output value and the target output value meet the preset relation. The actual output value obtained at this time can be used as the input signal of the second circuit to control the second circuit to normally operate.
Optionally, the preset relationship includes: the ratio of the actual output value to the target output value is within a preset range, or the absolute value of the difference between the actual output value and the target output value is within a preset range.
In one specific example, the actual output value is denoted as MFruit of Chinese wolfberryLet the target output value be MEyes of a userThe set value is recorded as MIs provided withThe initial value of the set value is the initial set value. Wherein the ratio of the actual output value to the output value is within a preset range, and the preset range can be95% to 100%; the absolute value of the difference between the actual output value and the target output value is within a predetermined range, which may be 0.05MEyes of a user. The preset relationship can be adjusted according to the actual operation condition of the second circuit, for example, when some components are added to the second circuit, the control logic of the whole circuit changes, which also results in the need of adjusting the preset range.
According to the technical scheme, the circuit signal is output through the first circuit according to the set value of the first circuit and serves as the input signal of the second circuit, and then the second circuit controls the work of each component in the second circuit by applying the circuit signal; the first circuit obtains the actual output value of the circuit signal and compares the actual output value with a preset target output value, and when the actual output value and the preset target output value do not meet the preset relationship, the set value is adjusted, so that the first circuit outputs the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value meet the preset relationship. Therefore, the circuit signal of the adjusted actual output value which meets the preset relation is used as the input signal of the second circuit, so that the problems of second circuit load increase and low accuracy rate caused by the execution of the second circuit in the adjusting process are solved, and the control accuracy of the second circuit is improved by improving the accuracy of the input signal of the second circuit.
Fig. 2 is a flowchart of another circuit signal adjusting method according to an embodiment of the present invention, which is implemented on the basis of the above embodiments. Referring to fig. 2, the method may specifically include the following steps:
s201, the first circuit outputs a circuit signal according to a set value of the first circuit, and the circuit signal is used as an input signal of the second circuit.
Optionally, the number of the second circuits is at least one, and each second circuit corresponds to one circuit signal. When one second circuit is used, one circuit of circuit signals output by the first circuit corresponds to the second circuit; when the second circuit is multiple, there are multiple paths in the circuit signal output by the first circuit corresponding to the second circuit. In a specific example, the second circuits are multiple circuits, and each second circuit may implement a different function, so that its internal control logic may also be different, and thus a plurality of second circuits need to be provided, and multiple circuit signals corresponding to the second circuits need to be output from the first circuit.
And S202, if one second circuit is provided, the first circuit detects the actual value of one circuit signal corresponding to the second circuit, and takes the detected actual value as the actual output value of the circuit signal.
Specifically, if one second circuit is used, it indicates that a certain circuit signal in the first circuit corresponds to the second circuit, the first circuit detects an actual value of the circuit signal corresponding to the second circuit, the detected actual value can be used as an actual output value of the circuit signal, and the first circuit does not need to detect actual values of other circuit signals.
And S203, if the number of the second circuits is multiple, the first circuit respectively detects the actual value of one circuit signal corresponding to each second circuit to obtain multiple actual values, and calculates the actual output value of the circuit signal according to the multiple actual values.
Specifically, if a plurality of second circuits are provided, which indicates that some circuit signals in the first circuit correspond to the second circuits, the first circuit detects actual values of the circuit signals corresponding to the second circuits, that is, the first circuit detects actual values of one circuit signal corresponding to each second circuit, so as to obtain a plurality of actual values. And then, calculating the plurality of actual values to obtain the actual output value of the circuit signal. The operation process can avoid errors caused by accidental factors, and further, an actual output value closer to a real situation is obtained by calculating a plurality of actual values.
It should be noted that, in the two different cases where one or more second circuits are used in S202 and S203, the first circuit respectively performs different operations, and there is no obvious precedence relationship between these two steps, which is only used for illustration in fig. 2.
And S204, when the actual output value and the preset target output value do not meet the preset relation, the first circuit calculates the difference value between the target output value and the actual output value, and takes the difference value as a compensation value.
When the actual output value of the first circuit and the preset target output value do not meet the preset relationship, it is indicated that the actual output value cannot be directly applied as an input signal of the second circuit, but needs to be adjusted. Therefore, the actual output value of the first circuit is to be adjusted by adjusting the set value. Specifically, the difference between the target output value and the actual output value is calculated, and the difference is used as a compensation value which is recorded as deltaSupplement deviceThen ΔSupplement device=MEyes of a user-MFruit of Chinese wolfberry. The compensation value is used to compensate the set value so that the actual output value is closer to the target output value.
S205, adjusting the set value according to the target output value and the compensation value so as to output the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value meet the preset relation.
In a specific example, a ratio coefficient between the target output value and the actual output value is called a control coefficient, and the compensation value is multiplied by the control coefficient, and the target output value is added to the control coefficient, so that the adjusted set value is obtained. The adjusted set value is recorded as MSetting tone=MEyes of a user+△Supplement device*MEyes of a user/MFruit of Chinese wolfberry. And then outputting the adjusted circuit signal according to the adjusted set value, and if the adjusted circuit signal cannot meet the preset relationship after once adjustment, continuing to adjust according to the principle until the actual output value and the target output value meet the preset relationship.
And S206, when the actual output value and the target output value meet the preset relation, the first circuit outputs a circuit signal to the second circuit.
Specifically, the first circuit outputs a circuit signal to the second circuit when the actual output value and the target output value satisfy a preset relationship. The condition that the preset relationship is satisfied can include two conditions, the first condition can be that the actual output value of the first circuit satisfies the preset relationship with the target output value without any adjustment, and the circuit signal can be directly output to the second circuit; in the second case, the actual output value is output by the adjusted set value, and the circuit signal of the adjusted actual output value is output to the second circuit.
In a specific example, the first circuit may include an output selection switch, the output selection switch is in a normally-closed state, that is, the first circuit and the second circuit are not connected, when the actual output value and the target output value satisfy a preset relationship, the output selection switch is turned on, the first circuit and the second circuit are connected, and the first circuit outputs a circuit signal of the actual output value to the second circuit.
In addition, in the technical solution of the present application, the method may further include: when the first circuit generates a circuit signal, the first circuit outputs the circuit signal to the second circuit.
For example, the embodiment of the present application may further include another case where the first circuit and the second circuit are in a connected state, so that when the first circuit generates a circuit signal, the first circuit outputs the circuit signal to the second circuit in real time. Thus, the second circuit can determine whether the circuit signal can be used as the input signal of the second circuit.
In this embodiment of the application, when there is one second circuit, the first circuit may directly use an actual value of a detected one-way circuit signal corresponding to the second circuit as an actual output value of the circuit signal; when a plurality of second circuits are provided, in order to reduce errors caused by accidental factors, the actual output value of the circuit signal can be obtained by calculating the actual value of one circuit signal corresponding to each second circuit detected by the first circuit, so that the accuracy of the actual output value can be improved; when the actual output value and the target output value do not meet the preset relationship, the difference value of the actual output value and the target output value is calculated to serve as a compensation value to compensate the set value, and then the adjusted signal is output according to the adjusted set value, so that the actual output value is closer to the target output value; and when the actual output value and the target output value meet the preset relation, the circuit signal is output to the second circuit as an input signal, so that the second circuit can normally operate by applying the adjusted actual output value.
Fig. 3 is a flowchart of another circuit signal conditioning method according to an embodiment of the present invention, which is implemented on the basis of the above embodiments. Referring to fig. 3, the method may specifically include the following steps:
and S301, the first circuit outputs a circuit signal according to a set value of the first circuit, and the circuit signal is used as an input signal of the second circuit.
And S302, if the number of the second circuits is one, the first circuit detects the actual value of one circuit signal corresponding to the second circuit, and takes the detected actual value as the actual output value of the circuit signal.
And S303, if the number of the second circuits is multiple, the first circuit circularly detects the actual value of one circuit signal corresponding to each second circuit by adopting the same detection module, wherein only one circuit signal is detected each time during circular detection to obtain multiple actual values.
Specifically, the detection module may be configured to detect an actual output value of the first circuit, and if there are a plurality of second circuits, the same detection module is used to cyclically detect an actual value of one circuit signal corresponding to each second circuit, and only one circuit signal is detected each time in a cyclic detection process. A cycle detection number or cycle detection period may be provided, for example, the cycle detection number may be the same as or different from the number of the second circuits, and the cycle detection number is usually greater than or equal to the number of the second circuits. Illustratively, the number of times of the loop detection is set to 11, so that the same detection module can be applied to detect 11 times to obtain an actual value of one circuit signal corresponding to each second circuit.
Optionally, a specific implementation manner of loop detection may include: and controlling one circuit signal corresponding to each second circuit to be circularly communicated through the multi-path selection switch, and detecting the actual value of the currently communicated circuit signal, wherein only one circuit signal is communicated when the circuits are circularly communicated each time.
The multiple-path selection switch takes the optical coupling switch as an example, each path of circuit signal corresponds to one optical coupling switch, and the optical coupling switches on and off to control one path of circuit signal corresponding to each second circuit to be circularly communicated, namely, which path of circuit signal is selected. In a specific example, for example, there are 5 second circuits, 5 output channels in the first circuit output 5 circuit signals, the circuit signals are exemplified by analog quantities, 1 represents that the optical coupler is closed, and 0 represents that the optical coupler is opened, so that the optical coupler can be controlled by 00001, 00010, 00100, 01000 and 10000 in the multi-way selector switch, and the circuit signal output by each channel is cyclically detected.
Illustratively, S303 may be replaced by the following steps as an alternative embodiment: if the number of the second circuits is multiple, the first circuit respectively adopts different detection modules to detect the actual value of one circuit signal corresponding to each second circuit, so as to obtain multiple actual values. Specifically, if there are a plurality of second circuits, the first circuit may use different detection modules to detect an actual value of one path of signal corresponding to each second circuit, in this case, the number of the detection modules may be the same as or different from the number of the second circuits; one detection module may detect an actual value of only one circuit signal corresponding to one second circuit, and one detection module may also detect actual values of two circuit signals corresponding to two second circuits, which are used as examples and do not form specific limitations, so that a plurality of actual values may be obtained.
S304, calculating the average value of the actual values, and taking the average value of the actual values as the actual output value of the circuit signal.
When there are a plurality of second circuits, the first circuit detects a plurality of actual values, so that an average value of the plurality of actual values can be calculated, for example, when 11 actual values are obtained, the 11 actual values are summed, and then the sum is divided by 11 to obtain an average value of the 11 actual values. This average value is taken as the actual output value of the circuit signal.
Illustratively, S304 may also be replaced by the following steps as an optional implementation: the maximum value and the minimum value are removed from the plurality of actual values, an average value of the remaining actual values is calculated, and the average value of the remaining actual values is used as an actual output value of the circuit signal. Specifically, in calculating the actual output value, in order to avoid an error due to an accidental factor, the maximum value and the minimum value may be removed from the actual values, and an average value of the remaining actual values may be calculated. In a specific example, the target output value is 3V, and the 11 actual values are 2.51V, 2.63V, 2.75V, 2.84V, 2.95V, 2.81V, 3.12V, 3.74V, 3.25V, 3.05V and 3.27V, respectively, then the maximum value of 3.74V and the minimum value of 2.51V are likely to be errors due to accidental factors, so that the two values are removed, and the average value of the remaining actual values is used as the actual output value of the circuit signal, thereby improving the accuracy in the actual output value correction process.
S305, when the actual output value and the preset target output value do not meet the preset relation, the first circuit calculates the difference value between the target output value and the actual output value, and takes the difference value as a compensation value.
S306, adjusting the set value according to the target output value and the compensation value so as to output the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value meet the preset relation.
And S307, when the actual output value and the target output value meet the preset relation, the first circuit outputs a circuit signal to the second circuit.
In the embodiment of the application, when a plurality of second circuits are provided, the first circuit can detect the actual value of the circuit signal of the first circuit in different modes, one mode is to adopt the same detection module for circular detection, the detection method has lower requirements on the detection module, the use of related pins in the detection module can be reduced, and the detection speed is improved; the other mode is that different detection modules are adopted to respectively detect the actual value of one circuit signal corresponding to each second circuit, so that the detection method has simple detection logic and is not easy to make mistakes; in addition, the operation of averaging a plurality of actual values is used as an actual output value, so that errors caused by accidental factors can be avoided, and the accuracy of detection of the actual output value is further improved.
Fig. 4 is a schematic structural diagram of a first circuit according to an embodiment of the present invention, where the first circuit is suitable for implementing a circuit signal conditioning method according to an embodiment of the present invention. As shown in fig. 4, the first circuit 40 may specifically include: a signal output module 401, an acquisition module 402 and an adjustment module 403.
The signal output module 401 is configured to output a circuit signal according to a set value in a first circuit, where the circuit signal is used as an input signal of a second circuit; an obtaining module 402, configured to obtain an actual output value of the circuit signal; an adjusting module 403, configured to adjust the set value when the actual output value and the preset target output value do not satisfy the preset relationship, so that the signal output module outputs the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value acquired by the acquiring module satisfy the preset relationship.
According to the technical scheme, the circuit signal is output through the first circuit according to the set value of the first circuit and serves as the input signal of the second circuit, and then the second circuit controls the work of each component in the second circuit by applying the circuit signal; the first circuit obtains the actual output value of the circuit signal and compares the actual output value with a preset target output value, and when the actual output value and the preset target output value do not meet the preset relationship, the set value is adjusted, so that the first circuit outputs the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value meet the preset relationship. Therefore, the circuit signal of the adjusted actual output value which meets the preset relation is used as the input signal of the second circuit, so that the problems of second circuit load increase and low accuracy rate caused by the execution of the second circuit in the adjusting process are solved, and the control accuracy of the second circuit is improved by improving the accuracy of the input signal of the second circuit.
For example, fig. 5 shows a schematic structure of another first circuit. As shown in fig. 5, the first circuit may specifically include: the device comprises a signal output module 401, an acquisition module 402, an adjustment module 403, an output selection switch 404, a detection module 405 and a multi-way selection switch 406. Fig. 5 shows only one case where the circuit signals are multiplexed and the detection module is one for illustration, and other cases are not shown, which is described in detail with reference to the embodiments.
The output selection switch 404 is connected to the signal output module 401 and the second circuit 50, and configured to connect the signal output module 401 and the second circuit to output a circuit signal from the first circuit to the second circuit when the actual output value and the target output value satisfy a preset condition.
Specifically, the first circuit in the embodiment of the present application may further include an output selection switch 404. The output selection switch 404 is connected to the signal output module 402 and the second circuit 50, and controls the signal output module 401 to be connected to the second circuit when the actual output value and the target output value satisfy a predetermined condition, and after the actual output value and the target output value are connected to each other, the first circuit outputs a circuit signal from the first circuit to the second circuit.
In addition, the signal output module 401 can be directly connected to the second circuit 50, so that the first circuit outputs the circuit signal to the second circuit in real time without waiting for the output selection switch to be turned on when the first circuit generates the circuit signal. Thus, the second circuit can determine whether the circuit signal can be used as the input signal of the second circuit.
Optionally, the circuit signal is one or more paths, and the first circuit further includes: a detecting module 405, configured to detect an actual value of each circuit signal, so that the obtaining module 402 obtains an actual output value of the circuit signal according to the actual value.
Optionally, if the circuit signals are multiple paths, the number of the detection modules 405 is multiple, and each detection module 405 corresponds to one path of circuit signal to detect an actual value of the corresponding circuit signal; alternatively, the number of the detection modules 405 is one, and the first circuit further includes: a multiplexer 406, the multiplexer 406 being configured to select the circuit signal communicated to the detection module 405 to cyclically detect the actual value of each circuit signal through the detection module 405.
Specifically, when the circuit signals are multiplexed and the detection modules 405 are multiple, each detection module 405 may be applied to detect an actual value of the corresponding circuit signal; when the circuit signals are multiple paths and the detection module 405 is one, the selection and detection module 405 can be controlled to communicate with which circuit signal at each moment through the multiple-path selection switch 406, so that the actual value of each circuit signal can be detected circularly.
Optionally, the multiple-way selection switch 406 is an optical coupler switch, and each circuit signal corresponds to one optical coupler switch. The multiple-path selection switch 406 may be an optical coupler switch, each path of circuit signal corresponds to one optical coupler switch, and which paths of circuit signals are controlled and selected by opening and closing the optical couplers. In a specific example, for example, there are 5 second circuits, 5 output channels in the first circuit output 5 circuit signals, and the circuit signals are exemplified by analog quantities, where 1 represents that the optical coupler is closed, and 0 represents that the optical coupler is opened, so that the optical coupler can be controlled by 00001, 00010, 00100, 01000 and 10000 in a multiplex switch. Therefore, the detection module is controlled to detect one circuit signal every time, and each output circuit signal is detected circularly.
Optionally, if the circuit signal is an analog signal, the detecting module 405 includes: an A/D converter. If the circuit signal is an Analog signal, the detection module may further include an Analog-to-digital converter (a/D converter), so that the Analog signal output by the first circuit may be converted into a digital signal for detection, and the detected digital signal is the digital signal.
In a specific example, fig. 6 shows a schematic diagram of a structure for cyclically detecting an actual value of each circuit signal, that is, one detection module, which may be an a/D converter, for example, is indicated by 602; the circuit signals communicated with the detection module are selected by a multi-way selector switch, such as an opto-coupler switch, designated 601, to cyclically detect the actual value of each circuit signal by the detection module. In this specific example, three optocouplers 601 and three second circuits are shown, so that the circuit signals are three, and only one circuit signal is connected when the circuit signals are connected in each cycle.
Fig. 7 is a schematic structural diagram of a circuit system according to an embodiment of the present invention, and referring to fig. 7, the circuit system may specifically include the first circuit 40 and the second circuit 50 in this embodiment. Illustrated in fig. 7 by three second circuits.
A second circuit 50 is connected to the first circuit 40 for inputting the circuit signal. Optionally, the circuit system is a simulation system. The circuit system in the embodiment of the application can be a simulation system, so that multiple adjustments can be performed in the simulation process, and the set value is adjusted to obtain an actual output value which accords with the preset relationship and is input to the second circuit as an input signal. And then in the actual circuit system, the adjusted set value is directly applied to adjust the model or the parameter and the like of each component in the circuit board, so that the control precision of the circuit board is improved.
An embodiment of the present invention further provides an adjusting apparatus, which may be disposed in the first circuit 40, please refer to fig. 8, where fig. 8 is a schematic structural diagram of the adjusting apparatus, as shown in fig. 8, the adjusting apparatus includes: a processor 81, and a memory 82 connected to the processor 81; the memory 82 is used for storing a computer program for executing at least the circuit signal adjusting method in the embodiment of the present invention; the processor 81 is used for calling and executing the computer program in the memory, and the circuit signal adjusting method at least comprises the following steps: the first circuit outputs a circuit signal according to a set value of the first circuit, and the circuit signal is used as an input signal of the second circuit; the first circuit obtains an actual output value of a circuit signal; when the actual output value and the preset target output value do not meet the preset relationship, the first circuit adjusts the set value so as to output the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value meet the preset relationship.
The embodiment of the present invention further provides a storage medium, where the storage medium stores a computer program, and when the computer program is executed by a processor, the method implements the steps of: the first circuit outputs a circuit signal according to a set value of the first circuit, and the circuit signal is used as an input signal of the second circuit; the first circuit obtains an actual output value of a circuit signal; when the actual output value and the preset target output value do not meet the preset relationship, the first circuit adjusts the set value so as to output the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value meet the preset relationship.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present invention, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (19)

1. A method of circuit signal conditioning, comprising:
the first circuit outputs a circuit signal according to a set value of the first circuit, wherein the circuit signal is used as an input signal of the second circuit;
the first circuit obtains an actual output value of the circuit signal;
and when the actual output value and the preset target output value do not meet the preset relationship, the first circuit adjusts the set value so as to output the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value meet the preset relationship.
2. The method of claim 1, further comprising:
the first circuit outputs the circuit signal to the second circuit when generating the circuit signal; alternatively, the first and second electrodes may be,
and the first circuit outputs the circuit signal to the second circuit when the actual output value and the target output value meet a preset relation.
3. The method of claim 1, wherein the number of the second circuits is at least one, each second circuit corresponds to one of the circuit signals, and the obtaining the actual output value of the circuit signal comprises:
if the number of the second circuits is one, detecting an actual value of one circuit signal corresponding to the second circuit, and taking the detected actual value as an actual output value of the circuit signal; alternatively, the first and second electrodes may be,
if the number of the second circuits is multiple, the actual value of one path of the circuit signal corresponding to each second circuit is detected respectively to obtain multiple actual values, and the actual output value of the circuit signal is calculated according to the multiple actual values.
4. The method of claim 3, wherein calculating an actual output value of the circuit signal from the plurality of actual values comprises:
calculating an average value of the plurality of actual values, and taking the average value of the plurality of actual values as an actual output value of the circuit signal; alternatively, the first and second electrodes may be,
and removing the maximum value and the minimum value from the plurality of actual values, calculating the average value of the residual actual values, and taking the average value of the residual actual values as the actual output value of the circuit signal.
5. The method according to claim 3, wherein the detecting the actual value of the one of the circuit signals corresponding to each of the second circuits respectively comprises:
respectively adopting different detection modules to detect the actual value of one circuit signal corresponding to each second circuit; alternatively, the first and second electrodes may be,
and circularly detecting the actual value of one circuit signal corresponding to each second circuit by adopting the same detection module, wherein only one circuit signal is detected each time during circular detection.
6. The method according to claim 5, wherein said cyclically detecting an actual value of a path of said circuit signal corresponding to each second circuit comprises:
and controlling one path of circuit signal corresponding to each second circuit to be circularly communicated through a multi-path selection switch, and detecting the actual value of the currently communicated path of circuit signal, wherein only one path of circuit signal is communicated when the circuit signals are circularly communicated each time.
7. The method of claim 1, wherein the preset relationship comprises:
the ratio of the actual output value to the target output value is within a preset range, or,
and the absolute value of the difference value between the actual output value and the target output value is within a preset range.
8. The method of claim 1, wherein said adjusting said set point comprises:
calculating a difference value between the target output value and the actual output value, and taking the difference value as a compensation value;
and adjusting a set value according to the target output value and the compensation value.
9. The method of any of claims 1-8, wherein the circuit signal comprises: a voltage signal, or, a current signal.
10. A circuit, wherein the circuit is a first circuit, the first circuit comprising:
the signal output module is used for outputting a circuit signal according to a set value in the first circuit, and the circuit signal is used as an input signal of a second circuit;
the acquisition module is used for acquiring an actual output value of the circuit signal;
and the adjusting module is used for adjusting the set value when the actual output value and the preset target output value do not meet the preset relationship, so that the signal output module outputs the adjusted circuit signal according to the adjusted set value until the actual output value and the target output value obtained by the obtaining module meet the preset relationship.
11. The circuit of claim 10, further comprising:
and the output selection switch is connected with the signal output module and the second circuit and is used for communicating the signal output module and the second circuit to output the circuit signal from the first circuit to the second circuit when the actual output value and the target output value meet preset conditions.
12. The circuit of claim 10, wherein the circuit signal is one or more paths, the circuit further comprising:
and the detection module is used for detecting the actual value of each circuit signal, so that the acquisition module acquires the actual output value of the circuit signal according to the actual value.
13. The circuit of claim 12, wherein if the circuit signals are multiplexed,
the detection modules are multiple, and each detection module corresponds to one circuit signal to detect the actual value of the corresponding circuit signal; alternatively, the first and second electrodes may be,
the detection module is one, and the circuit further comprises: and the multi-path selection switch is used for selecting the circuit signals communicated with the detection module so as to circularly detect the actual value of each circuit signal through the detection module.
14. The circuit of claim 13, wherein the multiple selection switches are optocoupler switches, and each circuit signal corresponds to one optocoupler switch.
15. The circuit of claim 12, wherein if the circuit signal is an analog signal, the detection module comprises: an A/D converter.
16. A circuit system, comprising:
a first circuit as claimed in any one of claims 10 to 15; and the number of the first and second groups,
and the second circuit is connected with the first circuit and is used for inputting the circuit signal.
17. The circuitry of claim 16, wherein the circuitry is an emulation system.
18. An adjustment device, comprising:
a processor, and a memory coupled to the processor;
the memory is configured to store a computer program for performing at least the circuit signal conditioning method of any of claims 1-9;
the processor is used for calling and executing the computer program in the memory.
19. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the steps of the circuit signal conditioning method according to any one of claims 1-9.
CN201910846249.7A 2019-09-09 2019-09-09 Signal conditioning method, circuit system, conditioning apparatus and storage medium Pending CN110598310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910846249.7A CN110598310A (en) 2019-09-09 2019-09-09 Signal conditioning method, circuit system, conditioning apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910846249.7A CN110598310A (en) 2019-09-09 2019-09-09 Signal conditioning method, circuit system, conditioning apparatus and storage medium

Publications (1)

Publication Number Publication Date
CN110598310A true CN110598310A (en) 2019-12-20

Family

ID=68858062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910846249.7A Pending CN110598310A (en) 2019-09-09 2019-09-09 Signal conditioning method, circuit system, conditioning apparatus and storage medium

Country Status (1)

Country Link
CN (1) CN110598310A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101846712A (en) * 2010-04-01 2010-09-29 苏州崴展电子科技有限公司 ITO (Indium Tin Oxide) electrical characteristic detecting method and detecting system of capacitance type touch screen
CN201754171U (en) * 2010-04-01 2011-03-02 苏州崴展电子科技有限公司 ITO electrical characteristics detecting system of capacitive touch screen
CN203422916U (en) * 2013-09-17 2014-02-05 京东方科技集团股份有限公司 Control signal generation circuit and circuit system
CN104821809A (en) * 2014-02-05 2015-08-05 罗伯特·博世有限公司 Digital circuit for generating a pulse-width modulated signal
CN105096834A (en) * 2015-08-26 2015-11-25 京东方科技集团股份有限公司 Active-matrix organic light-emitting diode (AMOLED) display apparatus and brightness compensation method thereof
CN105353812A (en) * 2015-09-30 2016-02-24 宁波南车时代传感技术有限公司 Current sensor zero point automatic adjusting apparatus
CN105824000A (en) * 2015-01-04 2016-08-03 上海恩艾仪器有限公司 Method for calibrating output board card
US20170272055A1 (en) * 2014-12-10 2017-09-21 Murata Manufacturing Co., Ltd. Variable filter circuit
CN107347222A (en) * 2016-05-04 2017-11-14 台达电子企业管理(上海)有限公司 Dimming driving circuit and its control method
CN109510621A (en) * 2017-09-15 2019-03-22 福州瑞芯微电子股份有限公司 A kind of adaptive voltage frequency adjustment method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101846712A (en) * 2010-04-01 2010-09-29 苏州崴展电子科技有限公司 ITO (Indium Tin Oxide) electrical characteristic detecting method and detecting system of capacitance type touch screen
CN201754171U (en) * 2010-04-01 2011-03-02 苏州崴展电子科技有限公司 ITO electrical characteristics detecting system of capacitive touch screen
CN203422916U (en) * 2013-09-17 2014-02-05 京东方科技集团股份有限公司 Control signal generation circuit and circuit system
CN104821809A (en) * 2014-02-05 2015-08-05 罗伯特·博世有限公司 Digital circuit for generating a pulse-width modulated signal
US20170272055A1 (en) * 2014-12-10 2017-09-21 Murata Manufacturing Co., Ltd. Variable filter circuit
CN105824000A (en) * 2015-01-04 2016-08-03 上海恩艾仪器有限公司 Method for calibrating output board card
CN105096834A (en) * 2015-08-26 2015-11-25 京东方科技集团股份有限公司 Active-matrix organic light-emitting diode (AMOLED) display apparatus and brightness compensation method thereof
CN105353812A (en) * 2015-09-30 2016-02-24 宁波南车时代传感技术有限公司 Current sensor zero point automatic adjusting apparatus
CN107347222A (en) * 2016-05-04 2017-11-14 台达电子企业管理(上海)有限公司 Dimming driving circuit and its control method
CN109510621A (en) * 2017-09-15 2019-03-22 福州瑞芯微电子股份有限公司 A kind of adaptive voltage frequency adjustment method and device

Similar Documents

Publication Publication Date Title
US8558615B2 (en) Apparatus for and method of controlling a predistorter, and method of detecting power control state
CN108432142A (en) Time-based delay line A/D converter with variable-resolution
US11519993B2 (en) Current sensor configuration and calibration
CN104678343A (en) Frequency response characteristic calibration method, device and system of waveform generator
JP2007166847A (en) Capacity regulator of battery pack
CN108254608A (en) The method for self-calibrating of digital oscilloscope and digital oscilloscope
CN101010888A (en) Method and apparatus for dual mode power control
JP2010011639A (en) Power converter
WO2005076021A1 (en) Measurement instrument, measurement method, and test instrument
CN110598310A (en) Signal conditioning method, circuit system, conditioning apparatus and storage medium
US9893671B2 (en) Electric-motor control device, system and method
CN105790249B (en) A kind of voltage of extra-high voltage DC transmission system, current control method and system
JP2006017658A (en) Method for measuring frequency converter, program for measuring frequency converter and system for measuring frequency converter
JP4475027B2 (en) Turbine control device, control method thereof, and turbine system
WO2020155068A1 (en) Current measuring device, method, and apparatus
CN108021025B (en) Method and apparatus for controlling injection for frequency response measurement
JP7415643B2 (en) Simulation system, simulation method, and program
CN110647177B (en) Method and device for enhancing linearity of mass flow controller
US9729156B2 (en) Supply device for supplying an electronic circuit
CN114460441A (en) Chip correction method, device and storage medium
JP6280960B2 (en) Simulation apparatus and simulation system
JP6701802B2 (en) Power system simulator, interface, and program
JPS63276604A (en) Process controller
JP4839279B2 (en) Turbine control device and turbine control method
CN108540171A (en) A kind of radiofrequency signal segment equalization circuit and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191220