Signal measurement device and method
Technical Field
The invention relates to the technical field of oscilloscopes, in particular to a signal measuring device and method
Background
At present, an oscilloscope probe is an indispensable part in the use process of an oscilloscope, and is mainly used as a link for bearing signal transmission to transmit a signal to be detected to the oscilloscope completely and reliably so as to facilitate the oscilloscope to further perform measurement and analysis. At present, an oscilloscope probe can be divided into a passive probe and an active probe according to a power supply mode. The passive probes are divided into passive low-voltage probes, passive high-voltage probes, low-resistance transmission line probes and the like, and the active probes are divided into active single-ended probes, active differential probes, high-voltage differential probes and the like. In addition, current probes, near field probes, logic probes, and various types of sensor (e.g., light, temperature, vibration) probes are also used in some specific applications.
In order to meet the requirements of the oscilloscope under various conditions, and different oscilloscope probes have influence on the measurement result of the oscilloscope. Therefore, the identification of the oscilloscope probe and the selection of a proper probe to control the oscilloscope are particularly important. Currently, most of the types of probes are identified by connecting a resistor Rp with a specific resistance value to the ground terminal of a coaxial cable connector (BNC for short) connected to an oscilloscope by using a pogo pin, and when the probe is connected to the oscilloscope, the resistor Rp with the specific resistance value and an identification circuit inside the oscilloscope form a voltage division circuit, and the types of probes corresponding to different voltage values can be determined by measuring the voltage values after voltage division.
In the prior art, the probe type is identified after the elastic terminal is connected with the oscilloscope, so that the contact reliability of the probe becomes a key for the accurate identification of the probe, and particularly, when a probe of the probe starts to contact, an error voltage value is read by an internal probe identification circuit of the oscilloscope due to the elastic contact of a pogo pin, so that the error in reading the probe type can be possibly caused, and the error in the obtained measurement result can be further caused. In addition, a Printed Circuit Board (PCB) is generally used as a probe tip identification part of the oscilloscope, and after long-term use, sliding abrasion of a spring contact part of the probe also adversely affects the identification of the probe. Therefore, if the oscilloscope uses a probe which is not matched, the measurement result of the oscilloscope is easy to be wrong, and the oscilloscope cannot be effectively controlled.
Disclosure of Invention
The embodiment of the invention provides a signal measuring device and a signal measuring method, and aims to solve the problems that in the prior art, the type detection of a probe is inaccurate, the probe applied by an oscilloscope is not matched with the probe, the measurement result of the oscilloscope is easily inaccurate, and the oscilloscope cannot be controlled through a probe circuit.
In order to achieve the purpose, the invention adopts the following technical scheme:
a signal measurement device, comprising: the device comprises a probe circuit, a signal generator circuit, a measuring circuit and an oscilloscope control circuit;
the probe circuit comprises a first coupling coil and a probe end coil circuit, and the first coupling coil is connected with the probe end coil circuit;
the signal generator circuit comprises a signal generator, a resistor Rs and a second coupling coil; one end of the signal generator is grounded, and the other end of the signal generator is connected with one end of the resistor Rs; the other end of the resistor Rs is connected with one end of the second coupling coil; the other end of the second coupling coil is grounded;
the first coupling coil and the second coupling coil are matched with each other for coupling;
the voltage monitoring end of the measuring circuit is connected with the other end of the resistor Rs and one end of the second coupling coil;
and the output end of the measuring circuit is connected with the oscilloscope control circuit.
Furthermore, the probe end coil circuit comprises a load resistor, and two ends of the load resistor are connected with two ends of the first coupling coil.
Further, the probe end coil circuit comprises a variable resistor, and one end of the variable resistor is connected with one end of the first coupling coil; and the sliding end of the variable resistor is connected with the other end of the first coupling coil.
Specifically, the probe end coil circuit comprises a load resistor and an adjustable capacitor; and the load resistor and the adjustable capacitor are connected in parallel at two ends of the first coupling coil.
Specifically, the probe end coil circuit comprises a load resistor and a key switch; the key switch and the load resistor are connected in parallel at two ends of the first coupling coil.
Specifically, the probe end coil circuit comprises a multi-way switch structure; the fixed end of the multi-way switch structure is connected with one end of the first coupling coil; the movable end of the multi-way switch structure comprises a plurality of load resistors; one ends of the load resistors are used as moving ends of the multi-way switch structure, and the other ends of the load resistors are connected with the other end of the first coupling coil.
A signal measuring method, which is applied to the signal measuring device; the method comprises the following steps:
the control signal generator circuit sends out a preset signal;
controlling a first coupling coil in the probe circuit to be coupled with a second coupling coil in the signal generator circuit;
acquiring a voltage signal detected by a voltage monitoring end in real time according to the voltage monitoring end of the measuring circuit;
judging the type of the probe to which the probe circuit belongs according to the voltage signal;
controlling a probe end coil circuit in a probe circuit to perform a preset action so as to change a voltage signal detected by the voltage monitoring end and generate voltage signal change information;
and controlling the oscilloscope according to the voltage signal change information.
Specifically, the probe end coil circuit comprises a load resistor, and two ends of the load resistor are connected with two ends of the first coupling coil;
the judging the type of the probe to which the probe circuit belongs according to the voltage signal comprises the following steps:
acquiring a preset probe type list; various probe types and voltage values of voltage signals corresponding to the probe types are recorded in the probe type list;
and acquiring a voltage value of the voltage signal, and inquiring a probe type corresponding to the voltage value in the probe type list according to the voltage value.
Specifically, the probe end coil circuit comprises a variable resistor, and one end of the variable resistor is connected with one end of the first coupling coil; the sliding end of the variable resistor is connected with the other end of the first coupling coil;
control probe end coil circuit among the probe circuit and predetermine the action to make the voltage signal that voltage monitoring end detected changes, generates voltage signal change information, includes:
controlling the sliding end of the variable resistor to slide so that the voltage signal detected by the voltage monitoring end changes and generates a voltage signal change signal;
controlling the oscilloscope according to the voltage signal change information, comprising the following steps:
acquiring a preset oscilloscope control strategy; the preset oscilloscope control strategy comprises oscilloscope control actions and voltage signal change information corresponding to the oscilloscope control actions;
acquiring oscilloscope control actions corresponding to the voltage signal change information in the oscilloscope control strategy according to the voltage signal change information;
and performing the oscilloscope control action on the oscilloscope.
Specifically, the probe end coil circuit comprises a load resistor and an adjustable capacitor; the load resistor and the adjustable capacitor are connected in parallel at two ends of the first coupling coil
Control probe end coil circuit among the probe circuit and predetermine the action to make the voltage signal that voltage monitoring end detected changes, generates voltage signal change information, includes:
adjusting the variable capacitor to enable the voltage signal detected by the voltage monitoring end to change and generate a voltage signal change signal;
controlling the oscilloscope according to the voltage signal change information, comprising the following steps:
acquiring a preset oscilloscope control strategy; the preset oscilloscope control strategy comprises oscilloscope control actions and voltage signal change information corresponding to the oscilloscope control actions;
acquiring oscilloscope control actions corresponding to the voltage signal change information in the oscilloscope control strategy according to the voltage signal change information;
and performing the oscilloscope control action on the oscilloscope.
Specifically, the probe end coil circuit comprises a load resistor and a key switch; the key switch and the load resistor are connected to two ends of the first coupling coil in parallel;
control probe end coil circuit among the probe circuit and predetermine the action to make the voltage signal that voltage monitoring end detected changes, generates voltage signal change information, includes:
closing the key switch to enable the voltage signal detected by the voltage monitoring end to change and generate a voltage signal change signal;
controlling the oscilloscope according to the voltage signal change information, comprising the following steps:
acquiring a preset oscilloscope control strategy; the preset oscilloscope control strategy comprises oscilloscope control actions and voltage signal change information corresponding to the oscilloscope control actions;
acquiring oscilloscope control actions corresponding to the voltage signal change information in the oscilloscope control strategy according to the voltage signal change information;
and performing the oscilloscope control action on the oscilloscope.
Specifically, the probe end coil circuit comprises a multi-way switch structure; the fixed end of the multi-way switch structure is connected with one end of the first coupling coil; the movable end of the multi-way switch structure comprises a plurality of load resistors; one ends of the load resistors are used as the moving ends of the multi-way switch structure, and the other ends of the load resistors are connected with the other end of the first coupling coil together;
control probe end coil circuit among the probe circuit and predetermine the action to make the voltage signal that voltage monitoring end detected changes, generates voltage signal change information, includes:
controlling the movable end to be connected with different resistors in a plurality of load resistors so as to change the voltage signal detected by the voltage monitoring end and generate a voltage signal change signal;
controlling the oscilloscope according to the voltage signal change information, comprising the following steps:
acquiring a preset oscilloscope control strategy; the preset oscilloscope control strategy comprises oscilloscope control actions and voltage signal change information corresponding to the oscilloscope control actions;
acquiring oscilloscope control actions corresponding to the voltage signal change information in the oscilloscope control strategy according to the voltage signal change information;
and performing the oscilloscope control action on the oscilloscope.
The embodiment of the invention provides a signal measuring device and a method, wherein the signal measuring device comprises: the device comprises a probe circuit, a signal generator circuit, a measuring circuit and an oscilloscope control circuit; the probe circuit comprises a first coupling coil and a probe end coil circuit, and the first coupling coil is connected with the probe end coil circuit; the signal generator circuit comprises a signal generator, a resistor Rs and a second coupling coil; the first coupling coil and the second coupling coil are matched with each other for coupling; the voltage monitoring end of the measuring circuit is connected with the other end of the resistor Rs and one end of the second coupling coil; and the output end of the measuring circuit is connected with the oscilloscope control circuit. Through the signal measuring device, a preset signal can be sent out through the control signal generator circuit; further controlling the coupling of a first coupling coil in the probe circuit and a second coupling coil in the signal generator circuit; therefore, according to the voltage monitoring end of the measuring circuit, the voltage signal detected by the voltage monitoring end is obtained in real time; judging the type of the probe to which the probe circuit belongs according to the voltage signal; a probe end coil circuit in the probe circuit is controlled to perform preset action, so that the voltage signal detected by the voltage monitoring end changes, and voltage signal change information is generated; and controlling the oscilloscope according to the voltage signal change information. Therefore, when the type of the probe is determined, the probe is not required to be connected with the oscilloscope through the elastic terminal, but a coil coupling mode is adopted, so that the problem that the probe identification is inaccurate due to the fact that the terminal is easily contacted with the oscilloscope to generate an error voltage value is solved. Meanwhile, the control of the oscilloscope can be realized through the signal measuring device.
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, and 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 these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a signal measurement apparatus according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a signal measurement apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a signal measurement apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a signal measurement apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a signal measurement apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram six of a signal measurement apparatus according to an embodiment of the present invention;
fig. 7 is a flowchart of a signal measurement method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a signal measurement apparatus, as shown in fig. 1, the signal measurement apparatus 10 includes: a probe circuit 101, a signal generator circuit 102, a measurement circuit 103, and an oscilloscope control circuit 104.
The probe circuit 101 includes a first coupling coil 105 and a probe end coil circuit 106, and the first coupling coil 105 is connected to the probe end coil circuit 106.
The signal generator circuit 102 includes a signal generator 107, a resistor Rs108, and a second coupling coil 109; one end of the signal generator 102 is grounded, and the other end is connected with one end of a resistor Rs 108; the other end of the resistor Rs108 is connected to one end of the second coupling coil 109; the other end of the second coupling coil 109 is grounded.
The first coupling coil 105 and the second coupling coil 109 cooperate with each other to perform coupling.
A voltage monitor terminal 1031 of the measurement circuit 103 is connected to the other end of the resistor Rs108 and one end of the second coupling coil 109.
The output 1032 of the measurement circuit 103 is connected to the oscilloscope control circuit 104. The measurement circuit here may include an operational amplifier or a Root Mean Square (RMS) measurement chip or the like.
Further, as shown in fig. 2, the probe end coil circuit 106 may include a load resistor 110, and two ends of the load resistor 110 are connected to two ends of the first coupling coil 105.
In addition, as shown in fig. 3, the probe end coil circuit 106 may include a variable resistor 111, and one end of the variable resistor 111 is connected to one end of the first coupling coil 105; the sliding end of the variable resistor 111 is connected to the other end of the first coupling coil 105.
In addition, as shown in FIG. 4, the probe end coil circuit 106 may include a load resistor 112 and an adjustable capacitor 113. A load resistor 112 is connected across the first coupling coil 105 in parallel with an adjustable capacitor 113.
In addition, as shown in FIG. 5, the probe end coil circuit 106 may include a load resistor 114 and a key switch 115; a push switch 115 is connected across the first coupling coil 105 in parallel with the load resistor 114.
Additionally, as shown in FIG. 6, the probe end coil circuit 106 may include a multi-way switch structure 116. The stationary end of the multi-way switch structure 116 is connected to one end of the first coupling coil 105. The moving end of the multiplexing switch structure 116 includes a plurality of load resistors 117. One end of the plurality of load resistors 117 serves as a moving end of the multi-way switch structure 116, and the other ends of the plurality of load resistors 117 are commonly connected to the other end of the first coupling coil 105.
The embodiment of the invention provides a signal measuring device, which comprises: the device comprises a probe circuit, a signal generator circuit, a measuring circuit and an oscilloscope control circuit; the probe circuit comprises a first coupling coil and a probe end coil circuit, and the first coupling coil is connected with the probe end coil circuit; the signal generator circuit comprises a signal generator, a resistor Rs and a second coupling coil; the first coupling coil and the second coupling coil are matched with each other for coupling; the voltage monitoring end of the measuring circuit is connected with the other end of the resistor Rs and one end of the second coupling coil; the output end of the measuring circuit is connected with the oscilloscope control circuit. Through the signal measuring device, a preset signal can be sent out through the control signal generator circuit; further controlling the coupling of a first coupling coil in the probe circuit and a second coupling coil in the signal generator circuit; therefore, according to the voltage monitoring end of the measuring circuit, the voltage signal detected by the voltage monitoring end is obtained in real time; judging the type of the probe to which the probe circuit belongs according to the voltage signal; a probe end coil circuit in the probe circuit is controlled to perform preset action, so that a voltage signal detected by a voltage monitoring end changes, and voltage signal change information is generated; thereby controlling the oscilloscope according to the voltage signal change information. Therefore, when the type of the probe is determined, the probe is not required to be connected with the oscilloscope through the elastic terminal, but a coil coupling mode is adopted, so that the problem that the probe identification is inaccurate due to the fact that the terminal is easily contacted with the oscilloscope to generate an error voltage value is solved. Meanwhile, the control of the oscilloscope can be realized through the signal measuring device.
Corresponding to the signal measuring device, the invention also provides a signal measuring method applied to the signal measuring device. As shown in fig. 7, the signal measuring method includes:
step 201, the signal generator circuit is controlled to send out a preset signal.
The preset signal here can be a sine wave, a square wave or a pulse signal emitted by a signal generator. Here, in order to make the result measured by the measuring circuit more accurate, it is necessary to select an appropriate signal frequency according to different structures at the probe end coil circuit.
Step 202, controlling a first coupling coil in the probe circuit to be coupled with a second coupling coil in the signal generator circuit.
And 203, acquiring a voltage signal detected by the voltage monitoring end in real time according to the voltage monitoring end of the measuring circuit.
And step 204, judging the type of the probe to which the probe circuit belongs according to the voltage signal.
Here, as shown in fig. 2, when the probe end coil circuit includes a load resistor, and both ends of the load resistor are connected to both ends of the first coupling coil, a preset probe type list may be obtained; various probe types and voltage values of corresponding voltage signals are recorded in the probe type list; and then, acquiring the voltage value of the voltage signal, and inquiring the probe type corresponding to the voltage value in the probe type list according to the voltage value.
For example, the probe type list records the probe types of type one, type two and type three; the three types of probes may respectively correspond to voltage values of the voltage signals of 1V to 2V, 2V to 3V, and 3V to 4V. The list of probe types may be configured by means of parameters of configuration registers.
And step 205, controlling a probe end coil circuit in the probe circuit to perform a preset action so as to change the voltage signal detected by the voltage monitoring end and generate voltage signal change information.
The preset operation may be to control the sliding end of the variable resistor to slide as shown in fig. 3. It is also possible to adjust the variable capacitance as shown in fig. 4. Or it may be that the key switch is closed as shown in fig. 5. Or as shown in fig. 6, the moving end of the multi-way switch structure is controlled to be connected with different resistors in a plurality of load resistors. Because the resistance value in the coil circuit at the probe end is changed due to the preset action and is coupled to the signal generator circuit through the coupling coil, the voltage signal detected by the voltage monitoring end is changed.
And step 206, controlling the oscilloscope according to the voltage signal change information.
Here, the oscilloscope is controlled according to the voltage signal change information, so that a preset oscilloscope control strategy can be obtained; the preset oscilloscope control strategy comprises the oscilloscope control actions and the voltage signal change information corresponding to the oscilloscope control actions; then acquiring oscilloscope control actions corresponding to the voltage signal change information in an oscilloscope control strategy according to the voltage signal change information; and carrying out oscilloscope control action on the oscilloscope.
For example, the vertical gear of the oscilloscope can be adjusted to continuously adjust from-5V/DIV to +5V/DIV when the voltage is continuously increased from 1V to 2V. In addition, there are many oscilloscope control actions, such as, but not limited to, auto-zeroing, auto-measuring, and the like.
According to the signal measuring method provided by the embodiment of the invention, the preset signal can be sent out by controlling the signal generator circuit; further controlling the coupling of a first coupling coil in the probe circuit and a second coupling coil in the signal generator circuit; therefore, according to the voltage monitoring end of the measuring circuit, the voltage signal detected by the voltage monitoring end is obtained in real time; judging the type of the probe to which the probe circuit belongs according to the voltage signal; a probe end coil circuit in the probe circuit is controlled to perform preset action, so that a voltage signal detected by a voltage monitoring end changes, and voltage signal change information is generated; thereby controlling the oscilloscope according to the voltage signal change information. Therefore, when the type of the probe is determined, the probe is not required to be connected with the oscilloscope through the elastic terminal, but a coil coupling mode is adopted, so that the problem that the probe identification is inaccurate due to the fact that the terminal is easily contacted with the oscilloscope to generate an error voltage value is solved. Meanwhile, the control of the oscilloscope can be realized through the signal measuring device.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.