Cursor measurement method, system, terminal device and medium
By determining the angle and horizontal parameters of the oscilloscope markers, and combining them with the horizontal parameters of the cursor and reference lines, and using preset parameter calculation rules, the problem of inaccurate measurement of the oscilloscope cursor position parameters was solved, achieving accurate measurement of the cursor position and improving the efficiency and user experience of the oscilloscope.
Patent Information
- Application Number
- CN202210237903.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-10
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2042-03-10
AI Technical Summary
Existing technologies cannot accurately measure the parameters at the cursor position on an oscilloscope, especially physical parameters such as the angle and period at a specific position within a period.
By determining the angle of each mark and its horizontal parameter relative to the reference line on the display screen, and combining the horizontal parameter between the cursor and the reference line, the parameter measurement value of the cursor at the target position is obtained using a preset parameter calculation rule.
It enables accurate measurement of physical parameters at any cursor position, improving the efficiency of oscilloscope use and user experience.
Smart Images

Figure CN115060945B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of oscilloscope, and in particular to a cursor measurement method, system, terminal device and computer readable storage medium. BACKGROUND
[0002] The oscilloscope can display the curve of voltage or current changing with time, wherein the horizontal direction is time and the vertical direction is voltage or current.
[0003] There is cursor measurement on the oscilloscope, and the cursor is divided into vertical cursor and horizontal cursor. The horizontal cursor measures the voltage, current and other numerical values in the vertical direction, and the vertical cursor measures the time in the horizontal direction. For some waveforms, there may be some special meanings, such as, one cycle representing a circle of 360 degrees. In the prior art, the angle and the period of the physical parameters at the specific position in a cycle cannot be accurately measured. SUMMARY
[0004] The main purpose of the present application is to provide a cursor measurement method, system, terminal device and computer readable storage medium, which aims to accurately measure the parameters at the position of the cursor on the oscilloscope.
[0005] To achieve the above purpose, the present application provides a cursor measurement method, which comprises:
[0006] determining the angles corresponding to each mark, and obtaining the horizontal parameters of each mark on the horizontal direction of the oscilloscope relative to the reference line in the display screen;
[0007] obtaining the horizontal parameter between the cursor in the display screen and the reference line;
[0008] obtaining the parameter measurement value of the cursor at the preset target position based on the horizontal parameters of each mark relative to the reference line in the display screen, the angles corresponding to the plurality of marks, and the horizontal parameter between the cursor and the reference line.
[0009] Optionally, each mark comprises a first mark and a second mark.
[0010] The step of determining the angles corresponding to each mark and obtaining the horizontal parameters of each mark on the horizontal direction of the oscilloscope relative to the reference line in the display screen comprises:
[0011] determining the first angle corresponding to the first mark and the second angle corresponding to the second mark, and determining the first horizontal parameter and the second horizontal parameter of the first mark and the second mark relative to the reference line, respectively.
[0012] Optionally, the reference line comprises a vertical line based on the first mark, a vertical line based on the second mark, a screen edge of the display screen, a vertical center line of the display screen, and a vertical line at any position on the display screen, and the horizontal parameter comprises a pixel, a distance, a time, and a scale.
[0013] Optionally, the step of obtaining the horizontal parameter of each of the marks in the horizontal direction of the oscilloscope relative to the reference line in the display screen comprises:
[0014] When the mark is not in the display screen, the mark is moved into the display screen, and a horizontal parameter of the translated mark relative to the reference line is determined, so as to obtain a parameter measurement value of the cursor at the preset target position according to the horizontal parameter, the angle, the horizontal parameter between the cursor and the reference line, and the horizontal parameter.
[0015] Optionally, the step of obtaining the horizontal parameter of each of the marks in the horizontal direction of the oscilloscope relative to the reference line in the display screen comprises:
[0016] After scaling the waveform in the display screen, a horizontal parameter of the scaled mark relative to the reference line is determined based on a scale relationship of the waveforms of the oscilloscope before and after scaling, so as to obtain a parameter measurement value of the cursor at the preset target position according to the horizontal parameter, the angle, the horizontal parameter between the cursor and the reference line, and the horizontal parameter, wherein the scale relationship is determined according to a first time base position before scaling and a second time base position after scaling of the oscilloscope.
[0017] Optionally, after the waveform in the display screen is zoomed in, if the first mark is not in the display screen at this time, the first mark is translated into the display screen by moving the waveform, and a first translation parameter is determined.
[0018] Based on the first translation parameter, the first horizontal parameter, the second horizontal parameter, the first time base position, and the second time base position, a third horizontal parameter and a fourth horizontal parameter of the first mark and the second mark in the screen relative to the reference line are determined, respectively.
[0019] The step of obtaining the parameter measurement value of the cursor at the preset target position based on the horizontal parameter of each of the marks relative to the reference line in the display screen, the angles corresponding to the plurality of marks, and the horizontal parameter between the cursor and the reference line comprises:
[0020] acquire a first relative parameter between the first mark and the second mark after the translation, and obtain the parameter measurement value of the cursor at the preset target position according to the first relative parameter, a horizontal parameter between the cursor and the reference line, the third horizontal parameter, and the angle.
[0021] Optionally, after the step of determining the third horizontal parameter and the fourth horizontal parameter of the first mark and the second mark in the screen relative to the reference line, the method further comprises:
[0022] acquire a first adjustment parameter, and finely adjust the first mark in the screen according to the first adjustment parameter to obtain a fifth horizontal parameter;
[0023] The step of obtaining the parameter measurement value of the cursor at the preset target position according to the horizontal parameter of each mark relative to the reference line in the display screen, the angle corresponding to the plurality of marks, and the horizontal parameter between the cursor and the reference line further comprises:
[0024] acquire a second relative parameter between the finely adjusted first mark and the second mark based on the fifth horizontal parameter and the fourth horizontal parameter, and obtain the parameter measurement value of the cursor at the preset target position according to the second relative parameter, a horizontal parameter between the cursor and the reference line, the fifth horizontal parameter, and the angle.
[0025] Optionally, the cursor measurement method further comprises:
[0026] After the waveform in the display screen is enlarged, if the second mark is not in the display screen at this time, the second mark is translated to the display screen by moving the waveform, and a second translation parameter is determined;
[0027] determine a sixth horizontal parameter of the finely adjusted first mark relative to the reference line in the display screen based on the fifth horizontal parameter and the second translation parameter, and determine a seventh horizontal parameter of the second mark in the screen relative to the reference line based on the fourth horizontal parameter and the second translation parameter;
[0028] The step of obtaining the parameter measurement value of the cursor at the preset target position according to the horizontal parameter of each mark relative to the reference line in the display screen, the angle corresponding to the plurality of marks, and the horizontal parameter between the cursor and the reference line further comprises:
[0029] acquire a third relative parameter between the fine-adjusted first mark and a second mark in the screen based on the sixth horizontal parameter and the seventh horizontal parameter, and obtain a parameter measurement value of the cursor at the preset target position according to the third relative parameter, a horizontal parameter between the cursor and the reference line, the sixth horizontal parameter and the angle.
[0030] Optionally, after the step of determining a seventh horizontal parameter of a second mark in the screen relative to the reference line based on the fourth horizontal parameter and the second translation parameter, the method further comprises:
[0031] acquire a second adjustment parameter, and fine-adjust the translated second mark according to the second adjustment parameter to obtain an eighth horizontal parameter;
[0032] The step of obtaining a parameter measurement value of the cursor at the preset target position based on the horizontal parameter of each mark relative to the reference line in the display screen, the angles corresponding to the plurality of marks and the horizontal parameter between the cursor and the reference line further comprises:
[0033] acquire a fourth relative parameter between the fine-adjusted first mark and the fine-adjusted second mark based on the eighth horizontal parameter and the sixth horizontal parameter, and obtain a parameter measurement value of the cursor at the preset target position according to the fourth relative parameter, a horizontal parameter between the cursor and the reference line, the sixth horizontal parameter and the angle.
[0034] Optionally, the time corresponding to the cursor and the parameter measurement value are simultaneously displayed in the display screen.
[0035] To achieve the above object, the application further provides a cursor measurement system, which comprises:
[0036] a first acquisition module for determining angles corresponding to each mark and acquiring horizontal parameters of each mark in the horizontal direction of the oscilloscope relative to a reference line in the display screen;
[0037] a second acquisition module for acquiring a horizontal parameter between a cursor in the display screen and the reference line;
[0038] a parameter measurement value determination module for obtaining a parameter measurement value of the cursor at a preset target position based on the horizontal parameter of each mark relative to the reference line in the display screen, the angles corresponding to the plurality of marks and the horizontal parameter between the cursor and the reference line.
[0039] In the application, each functional module of the cursor measurement system realizes the steps of the cursor measurement method as described above when running.
[0040] To achieve the above object, the application further provides a terminal device, comprising a memory, a processor and a cursor measurement program stored on the memory and executable on the processor, wherein the cursor measurement program realizes the steps of the cursor measurement method as described above when executed by the processor.
[0041] In addition, to achieve the above object, the application further provides a computer readable storage medium, wherein the computer readable storage medium stores a cursor measurement program, and the cursor measurement program realizes the steps of the cursor measurement method as described above when executed by a processor.
[0042] In addition, to achieve the above object, the application further provides a computer program product, comprising a computer program, wherein the computer program realizes the steps of the cursor measurement method as described above when executed by a processor.
[0043] The application provides a cursor measurement method, system, terminal device, computer readable storage medium and computer program product, wherein the horizontal parameters of each mark relative to a reference line in the display screen are obtained by determining the angles corresponding to each mark, the horizontal parameter between the cursor and the reference line in the display screen is obtained, and the parameter measurement value of the cursor at a preset target position is obtained based on the horizontal parameters of each mark relative to the reference line in the display screen, the angles corresponding to the plurality of marks and the horizontal parameter between the cursor and the reference line.
[0044] Compared with the prior art which cannot accurately measure the angles and physical parameters such as periods at specific positions in a period, the application firstly presets each mark, then obtains the corresponding horizontal parameters and angles of each mark, and then obtains the parameters of the target position of the cursor according to the pre-set parameter calculation rule. Therefore, the application can accurately measure the physical parameters at any position of the cursor, which improves the use efficiency of the oscilloscope and improves the user experience. BRIEF DESCRIPTION OF DRAWINGS
[0045] Figure 1 The structure schematic diagram of the hardware running environment related to the embodiment of the application;
[0046] Figure 2 The flowchart of the cursor measurement method of the embodiment of the application;
[0047] Figure 3 The first schematic diagram of each parameter in the display screen of the oscilloscope related to the embodiment of the cursor measurement method of the application;
[0048] Figure 4This is a second schematic diagram of the parameters displayed on an oscilloscope screen in an embodiment of the cursor measurement method of the present invention;
[0049] Figure 5 This is a third schematic diagram of the parameters displayed on an oscilloscope screen in an embodiment of the cursor measurement method of the present invention;
[0050] Figure 6 This is a fourth schematic diagram of the parameters displayed on an oscilloscope screen in an embodiment of the cursor measurement method of the present invention;
[0051] Figure 7 This is a fifth schematic diagram of the parameters displayed on an oscilloscope screen in an embodiment of the cursor measurement method of the present invention;
[0052] Figure 8 This is a sixth schematic diagram of the parameters displayed on an oscilloscope screen in an embodiment of the cursor measurement method of the present invention;
[0053] Figure 9 This is a schematic diagram of the functional modules of an embodiment of the cursor measurement system of the present invention.
[0054] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0055] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0056] like Figure 1 As shown, Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of the present invention.
[0057] It should be noted that the terminal device in this embodiment of the invention can be a terminal device used to extract data from multiple types of data sources, and the terminal device can specifically be an oscilloscope, etc.
[0058] like Figure 1As shown, the device can include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection communication between the components. The user interface 1003 can include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 can be a high-speed RAM memory, or a stable memory (non-volatile memory) such as a magnetic disk memory. The memory 1005 can also be an independent storage device from the aforementioned processor 1001.
[0059] Those skilled in the art can understand that Figure 1 The device structure shown in the foregoing embodiments is not a limitation on the device, and the device can include more or fewer components than those shown in the drawings, or combine certain components, or different component arrangements.
[0060] As Figure 1 As shown, the memory 1005 as a computer storage medium can include an operating system, a network communication module, a user interface module, and a cursor measurement program. The operating system is a program that manages and controls the hardware and software resources of the device, supports the running of the cursor measurement program and other software or programs. In Figure 1 In the device shown, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing a communication connection with the server; and the processor 1001 can be used to call the cursor measurement program stored in the memory 1005 and perform the following operations:
[0061] Determine the angle corresponding to each mark, and obtain the horizontal parameter of each mark in the oscilloscope horizontal direction relative to the reference line in the display screen;
[0062] Obtain the horizontal parameter between the cursor in the display screen and the reference line;
[0063] Based on the horizontal parameter of each mark relative to the reference line in the display screen, the angles corresponding to the plurality of marks, and the horizontal parameter between the cursor and the reference line, the parameter measurement value of the cursor at the preset target position is obtained.
[0064] Further, each of the marks includes a first mark and a second mark.
[0065] The processor 1001 can also be used to call the cursor measurement program stored in the memory 1005, and further perform the following operations:
[0066] determining a first angle corresponding to the first marker and a second angle corresponding to the second marker, and determining a first horizontal parameter and a second horizontal parameter of the first marker and the second marker relative to the reference line, respectively.
[0067] Further, the reference line comprises a vertical line based on the first marker, a vertical line based on the second marker, a screen edge of the display screen, a vertical center line of the display screen, and a vertical line at any position on the display screen, and the horizontal parameter comprises a pixel, a distance, a time, and a scale.
[0068] Further, the processor 1001 can be further configured to invoke a cursor measurement program stored in the memory 1005, and perform the following operations:
[0069] When the marker is not in the display screen, moving the marker into the display screen, and determining a horizontal parameter of the translated marker relative to the reference line, so as to obtain a parameter measurement value of the cursor at a preset target position according to the horizontal parameter, the angle, the cursor, and the horizontal parameter between the cursor and the reference line.
[0070] Further, the processor 1001 can be further configured to invoke a cursor measurement program stored in the memory 1005, and perform the following operations:
[0071] After scaling the waveform in the display screen, determining a horizontal parameter of the scaled marker relative to the reference line based on a scale relationship of the waveform of the oscilloscope before and after scaling, so as to obtain a parameter measurement value of the cursor at a preset target position according to the horizontal parameter, the angle, the cursor, and the horizontal parameter between the cursor and the reference line, wherein the scale relationship is determined according to a first time base position before scaling and a second time base position after scaling of the oscilloscope.
[0072] Further, the processor 1001 can be further configured to invoke a cursor measurement program stored in the memory 1005, and perform the following operations:
[0073] After zooming in the waveform in the display screen, if the first marker is not in the display screen at this time, translating the first marker into the display screen by moving the waveform, and determining a first translation parameter;
[0074] Based on the first translation parameter, the first horizontal parameter, the second horizontal parameter, the first time base position, and the second time base position, determining a third horizontal parameter and a fourth horizontal parameter of the first marker and the second marker in the screen relative to the reference line, respectively;
[0075] The processor 1001 can also be configured to invoke the cursor measurement program stored in the memory 1005, and further perform the following operations:
[0076] The first relative parameter between the translated first mark and the second mark is obtained based on the third horizontal parameter and the fourth horizontal parameter, and the parameter measurement value of the cursor at the preset target position is obtained based on the first relative parameter, the horizontal parameter between the cursor and the reference line, the third horizontal parameter, and the angle.
[0077] Further, after the step of determining the third horizontal parameter and the fourth horizontal parameter of the first mark and the second mark in the screen relative to the reference line, the processor 1001 can also be configured to invoke the cursor measurement program stored in the memory 1005, and further perform the following operations:
[0078] The first adjustment parameter is obtained, and the fine adjustment of the translated first mark is performed based on the first adjustment parameter to obtain a fifth horizontal parameter;
[0079] The processor 1001 can also be configured to invoke the cursor measurement program stored in the memory 1005, and further perform the following operations:
[0080] The second relative parameter between the fine-adjusted first mark and the second mark is obtained based on the fifth horizontal parameter and the fourth horizontal parameter, and the parameter measurement value of the cursor at the preset target position is obtained based on the second relative parameter, the horizontal parameter between the cursor and the reference line, the fifth horizontal parameter, and the angle.
[0081] Further, the processor 1001 can also be configured to invoke the cursor measurement program stored in the memory 1005, and further perform the following operations:
[0082] After the waveform in the display screen is enlarged, if the second mark is not in the display screen at this time, the second mark is translated to the display screen by moving the waveform, and a second translation parameter is determined;
[0083] The sixth horizontal parameter of the fine-adjusted first mark relative to the reference line of the display screen is determined based on the fifth horizontal parameter and the second translation parameter, and the seventh horizontal parameter of the second mark in the screen relative to the reference line is determined based on the fourth horizontal parameter and the second translation parameter;
[0084] The processor 1001 can also be configured to invoke the cursor measurement program stored in the memory 1005, and further perform the following operations:
[0085] acquire a third relative parameter between the fine-adjusted first marker and the translated second marker based on the sixth horizontal parameter and the seventh horizontal parameter, and acquire a parameter measurement value of the cursor at the preset target position according to the third relative parameter, a horizontal parameter between the cursor and the reference line, the sixth horizontal parameter, and the angle.
[0086] Further, after the step of determining a seventh horizontal parameter of the second marker in the screen relative to the reference line based on the fourth horizontal parameter and the second translation parameter, the processor 1001 can also be configured to invoke the cursor measurement program stored in the memory 1005, and further perform the following operations:
[0087] acquire a second adjustment parameter, and finely adjust the translated second marker according to the second adjustment parameter to obtain an eighth horizontal parameter;
[0088] The processor 1001 can also be configured to invoke the cursor measurement program stored in the memory 1005, and further perform the following operations:
[0089] acquire a fourth relative parameter between the fine-adjusted first marker and the fine-adjusted second marker based on the eighth horizontal parameter and the sixth horizontal parameter, and acquire a parameter measurement value of the cursor at the preset target position according to the fourth relative parameter, a horizontal parameter between the cursor and the reference line, the sixth horizontal parameter, and the angle.
[0090] Further, the time corresponding to the cursor and the parameter measurement value are displayed simultaneously in the screen.
[0091] Reference Figure 2 , Figure 2 The flowchart of the first embodiment of the cursor measurement method of the present application.
[0092] In the present embodiment, an embodiment of the cursor measurement method is provided. It should be noted that although a logical sequence is shown in the flowchart, in some cases, the steps shown or described herein can be performed in a sequence different from that shown herein.
[0093] In step S10, the angle corresponding to each marker is determined, and a horizontal parameter of each marker in the horizontal direction of the oscilloscope relative to the reference line in the screen is acquired.
[0094] In step S20, a horizontal parameter between the cursor in the screen and the reference line is acquired.
[0095] It should be noted that in the present embodiment, the oscilloscope includes a screen, and each horizontal grid in the screen represents a time base. When the time base decreases, the waveform will be enlarged.
[0096] Specifically, for example, the time base position of the oscilloscope display screen is preset, and a plurality of marks are determined in the horizontal direction of the oscilloscope, and the horizontal parameters of each mark and the reference line of the display screen are determined, and the angles corresponding to each mark are obtained. In addition, the horizontal parameter between the cursor and the reference line is determined after the cursor is opened.
[0097] It should be noted that in the present embodiment, the number of marks is preset to be 2, and in the present embodiment, each mark is not specifically limited, and the mark can be a straight line, a triangular symbol, a line segment, a figure, and a point, etc.
[0098] Step S30, based on the horizontal parameter of each mark relative to the reference line in the display screen, the angles corresponding to the plurality of marks, and the horizontal parameter between the cursor and the reference line, the parameter measurement value of the cursor at the preset target position is obtained.
[0099] It should be noted that in the present embodiment, when the parameter of a specific position needs to be measured, the cursor can be moved to the position, and the parameter at the position is measured according to the preset calculation rule.
[0100] Specifically, for example, as shown in the oscilloscope display screen of Figure 3 After obtaining the horizontal parameter of each mark relative to the reference line of the display screen, the angles corresponding to the plurality of marks, and the horizontal parameter between the cursor and the reference line, the parameter at the target position of the cursor is measured based on the above parameters according to the preset parameter calculation rule.
[0101] It should be noted that in the present embodiment, if the parameter to be measured is an angle, then the parameter calculation rule at this time is:
[0102] ρ=(c-a)*(β-α) / ΔM+α
[0103] Wherein, ρ is the angle at the position of the cursor, c is the horizontal parameter between the cursor and the reference line, a is the horizontal parameter of the mark relative to the reference line of the display screen, α and β are the angles corresponding to the cursor, and ΔM is the relative parameter between each mark. In addition, the parameter to be measured can be other physical quantities besides the angle, such as the period, etc.
[0104] Further, the step of "determining the angle corresponding to each mark, and obtaining the horizontal parameter of each mark relative to the reference line in the display screen in the horizontal direction of the oscilloscope" in the above step S10 comprises:
[0105] In step S101, the first angle corresponding to the first marker and the second angle corresponding to the second marker are determined, and the first horizontal parameter and the second horizontal parameter of the first marker and the second marker relative to the reference line are determined.
[0106] It should be noted that in the present embodiment, two markers are pre-set, including a first marker and a second marker.
[0107] Specifically, for example, the first marker is determined, and the first horizontal parameter of the first marker relative to the reference line of the display screen is obtained; at the same time, the second marker is determined, and the second horizontal parameter of the second marker relative to the reference line of the display screen is obtained, so as to determine the relative parameter between the first marker and the second marker based on the first horizontal parameter and the second horizontal parameter.
[0108] Further, the reference line includes a vertical line based on the first marker, a vertical line based on the second marker, a screen edge of the display screen, a vertical center line of the display screen, and a vertical line at any position on the display screen, and the horizontal parameter includes pixels, distance, time, and proportion.
[0109] In the present embodiment, the reference line is not specifically limited, and the reference line can be a vertical line of the marker, a screen boundary of the display screen of the oscilloscope, a vertical center line in the display screen, and a vertical line at any position on the display screen. In the present embodiment, the horizontal parameter of the reference line is also not specifically limited, and the horizontal parameter is not limited to distance, but can also be pixel, time, and proportion.
[0110] Further, in the above step S10, "obtaining the horizontal parameter of each of the markers in the horizontal direction of the oscilloscope relative to the reference line in the display screen" can further include:
[0111] In step S102, when the marker is not in the display screen, the marker is moved into the display screen, and the horizontal parameter of the translated marker relative to the reference line is determined, so as to obtain the parameter measurement value of the cursor at the preset target position according to the horizontal parameter, the angle, the horizontal parameter between the cursor and the reference line.
[0112] It should be noted that in the present embodiment, when the marker is not in the display screen, the user can translate the marker into the screen by translating the waveform, in which case the horizontal parameter of the translated marker relative to the reference line can be further determined, and then according to the horizontal parameter, the angle of each marker, and the horizontal parameter between the opened cursor and the reference line, the parameter calculation rule
[0113] p = (c-a)*(β-α) / ΔM+α
[0114] Determine the parameter measurement value at the position of the cursor.
[0115] Further, in the step S10, the "obtaining the horizontal parameter of each mark in the horizontal direction of the oscilloscope relative to the reference line in the display screen" can include:
[0116] In step S103, the waveform in the display screen is scaled, the horizontal parameter of the scaled mark relative to the reference line is determined based on the proportional relationship of the waveform of the oscilloscope before and after scaling, and the parameter measurement value of the cursor at the preset target position is obtained according to the horizontal parameter, the angle, and the horizontal parameter between the cursor and the reference line, wherein the proportional relationship is determined according to the first time base position before scaling and the second time base position after scaling of the oscilloscope.
[0117] After the user scales up or down the waveform in the oscilloscope, the horizontal parameter of the scaled mark relative to the reference line can be further determined to determine the parameter measurement value at the position of the cursor according to the horizontal parameter, the angle corresponding to each mark, and the horizontal parameter between the opened cursor and the reference line.
[0118] It should be noted that in the present embodiment, regardless of whether the user performs a translation mark operation, a scaling waveform operation, or various combination operations such as translation scaling and scaling translation, the calculation rule of the parameter measurement value at the position of the cursor follows the following principles:
[0119] ρ=(c-a)*(β-α) / ΔM+α
[0120] In the present embodiment, the time base position of the oscilloscope display screen is preset, the first mark and the second mark are determined in the horizontal direction of the oscilloscope, and the first horizontal parameter of the first mark relative to the reference line of the display screen and the second horizontal parameter of the second mark relative to the reference line of the display screen are obtained, and the angle corresponding to each mark is obtained. In addition, the reference line of the display screen is determined, the first distance between the opened cursor and the reference line is determined, and then the parameter at the target position of the cursor is measured based on the above-mentioned parameters according to the preset parameter calculation rule.
[0121] Compared with the prior art which cannot accurately measure the angle and physical parameters such as period at a specific position in a period, in the present application, two marks are first preset, and then the corresponding horizontal parameters of each mark and the angle corresponding to each mark are obtained, and then the parameter at the target position of the cursor is measured according to the preset parameter calculation rule. Therefore, the present application can accurately measure the physical parameters at any position of the cursor, which not only improves the use efficiency of the oscilloscope, but also improves the user experience.
[0122] Further, based on the first embodiment of the cursor measurement method of the present application, a second embodiment of the cursor measurement method of the present application is provided.
[0123] The main difference between the present embodiment and the first embodiment is that, in the present embodiment, the cursor measurement method of the present application further comprises:
[0124] Step S40, after the waveform in the display screen is enlarged, if the first marker is not in the display screen at this time, the first marker is translated into the display screen by moving the waveform, and a first translation parameter is determined;
[0125] Step S50, based on the first translation parameter, the first horizontal parameter, the second horizontal parameter, the first time base position and the second time base position, a third horizontal parameter and a fourth horizontal parameter of the first marker and the second marker in the screen relative to the reference line are determined;
[0126] Further, the step S30 can comprise:
[0127] Step S301, based on the third horizontal parameter and the fourth horizontal parameter, a first relative parameter between the first marker and the second marker in the screen is obtained, and a parameter measurement value of the cursor at the preset target position is obtained according to the first relative parameter, the horizontal parameter between the cursor and the reference line, the third horizontal parameter and the angle.
[0128] It should be noted that, in the present embodiment, as shown in the oscilloscope display screen of each parameter, Figure 4 the user can enlarge or reduce the waveform by adjusting the time base position of the oscilloscope. In the embodiment, the time base position includes S1 and S2, when the time base position is S1, the first marker and the second marker are both in the display screen, and when the time base position is S2, the first marker and the second marker are not in the display screen.
[0129] Specifically, for example, as shown in the oscilloscope display screen of each parameter, Figure 5 when the first marker M1 is not in the display screen, the time base position at this time is S2, the first marker is translated into the display screen to obtain the first translation parameter x1, as shown in the oscilloscope display screen of each parameter, Figure 5 at this time, the third horizontal parameter a' of the first marker in the screen relative to the reference line is:
[0130] a' = a * S1 / S2 + x1
[0131] wherein a is the first horizontal parameter of the first marker relative to the reference line of the display screen before translation when the time base position is S1. At this time, the fourth horizontal parameter b' of the second marker relative to the reference line is:
[0132] b' = b * S1 / S2 + x1
[0133] wherein b is a second horizontal parameter of the second marker relative to a reference line of the display screen when the time base position is S1. At this time, a first relative parameter AM1 between the first marker and the second marker after the translation is:
[0134] AM1 = b' - a' = S1 * (b - a) / S2
[0135] At this time, a first distance between the cursor and the reference line is c, and a parameter measurement value p1 of the cursor at the preset target position is:
[0136] p1 = (c - a') * (b - a) / AM1 + a
[0137] wherein a is an angle corresponding to the first marker, and b is an angle corresponding to the second marker.
[0138] Further, after the step S50 of "determining third and fourth horizontal parameters of the first marker and the second marker in the screen relative to the reference line, respectively", the method further comprises:
[0139] a step S60 of obtaining a first adjustment parameter and finely adjusting the first marker in the screen according to the first adjustment parameter to obtain a fifth horizontal parameter;
[0140] Further, the step S30 further comprises:
[0141] a step S302 of obtaining a second relative parameter between the first marker after the fine adjustment and the second marker based on the fifth horizontal parameter and the fourth horizontal parameter, and obtaining a parameter measurement value of the cursor at the preset target position according to the second relative parameter, a horizontal parameter between the cursor and the reference line, the fifth horizontal parameter, and the angle.
[0142] It should be noted that in the embodiment, the first marker M1 is translated into the display screen, and the position of the first marker M1 can be further finely adjusted.
[0143] Specifically, for example, as shown in the oscilloscope display screen, Figure 5 the third horizontal parameter a' of the first marker M1 is adjusted according to the first adjustment parameter a to obtain a fifth horizontal parameter a' + a after the fine adjustment, and at this time, a second relative parameter AM2 between the second marker M2 and the first marker M1 after the fine adjustment is:
[0144] AM2 = S1 * (b - a) / S2 - a
[0145] At this time, the angle measurement value of the cursor at the preset target position is ρ2:
[0146] ρ2=(c-a'-Δa)*(β-α) / ΔM2+α
[0147] It should be noted that in the present embodiment, when the user actually uses the oscilloscope, the following situations may occur: all the marks are in the display screen, only one is in the display screen, all the marks are not in the display screen, or the user does not finely adjust the position of the marks but directly calculates the parameters at the position of the cursor. In any case, the parameter calculation rule at the target position of the cursor is universally applicable.
[0148] In the present embodiment, when the first mark deviates from the display screen, the deviated first mark can be translated back to the display screen, and the parameters at the position of the cursor are calculated based on the translation parameters of the first mark, or the cursor is finely adjusted, and the parameters at the position of the cursor are calculated again based on the finely adjusted cursor. The parameter calculation rule at the target position of the cursor is universally applicable. Therefore, the present application realizes flexible calculation of the parameters at the target position of the cursor, thereby improving the efficiency of the user when operating through the oscilloscope and improving the user experience.
[0149] Further, based on the first and second embodiments of the present application, a third embodiment of the present application is proposed.
[0150] The difference between the present embodiment and the above-mentioned second embodiment is that in the present embodiment, the present application further comprises:
[0151] Step S70, after the waveform in the display screen is amplified, if the second mark is not in the display screen at this time, the second mark is translated to the display screen by moving the waveform, and a second translation parameter is determined;
[0152] Step S80, based on the fifth horizontal parameter and the second translation parameter, a sixth horizontal parameter of the finely adjusted first mark relative to the reference line of the display screen is determined, and based on the fourth horizontal parameter and the second translation parameter, a seventh horizontal parameter of the second mark in the screen relative to the reference line is determined;
[0153] Further, the above-mentioned step S30 further comprises:
[0154] Step S303, obtaining a third relative parameter between the fine-adjusted first mark and the translated second mark based on the sixth horizontal parameter and the seventh horizontal parameter, and obtaining a parameter measurement value of the cursor at the preset target position according to the third relative parameter, a horizontal parameter between the cursor and the reference line, the sixth horizontal parameter, and the angle.
[0155] It should be noted that in the present embodiment, the first mark M1 deviating from the display screen has been translated into the display screen by the first adjustment parameter Δa mentioned in the second embodiment, but at this time the second mark M2 is still outside the display screen, so the second mark M2 can also be translated into the display screen by the second adjustment parameter Δb.
[0156] Specifically, for example, as shown in the oscilloscope display screen of each parameter, when the second mark M2 is not in the display screen, the time base position at this time is S2, the second mark is translated into the display screen to obtain a second translation parameter x2, and the seventh horizontal parameter b" of the translated second mark relative to the reference line at this time is: Figure 6
[0157] b″=b′+x2=b*S1 / S2+x1+x2
[0158] At this time, the sixth horizontal parameter a" of the fine-adjusted first mark relative to the reference line is:
[0159] a″=a′+Δa+x2=a*S1 / S2+Δa+x1+x2
[0160] Further, the third relative parameter ΔM3 between the translated second mark and the fine-adjusted first mark is:
[0161] ΔM3=b″-a″=S1*(b-a) / S2-Δa
[0162] At this time, the first distance between the cursor and the reference line is c, and then the angle measurement value ρ1 of the cursor at the preset target position is:
[0163] ρ3=(c-a″)*(β-α) / ΔM3+α
[0164] Further, after the step S80 of "determining the seventh horizontal parameter of the second mark in the screen relative to the reference line based on the fourth horizontal parameter and the second translation parameter", it further includes:
[0165] Step S90, obtaining a second adjustment parameter, and fine-adjusting the second mark in the screen according to the second adjustment parameter to obtain an eighth horizontal parameter;
[0166] Further, the above step S30 further includes:
[0167] Step S304: Based on the eighth level parameter and the sixth level parameter, obtain the fourth relative parameter between the finely adjusted first mark and the finely adjusted second mark, and obtain the parameter measurement value of the cursor at the preset target position according to the fourth relative parameter, the horizontal parameter between the cursor and the reference line, the sixth level parameter, and the angle.
[0168] It should be noted that, in this embodiment, after the second mark M2 is moved onto the display screen, the position of the second mark M2 can be further finely adjusted.
[0169] Specifically, for example, such as Figure 6 The parameters shown on the oscilloscope display are adjusted according to the second adjustment parameter Δb. The sixth level parameter b” of the second mark M2 is adjusted to obtain the eighth level parameter b”+Δb. At this time, the fourth relative parameter ΔM4 between the first mark M1 and the second mark M2 after fine adjustment is:
[0170] ΔM4=S1*(ba) / S2+Δb-Δa
[0171] It should be noted that, in this embodiment, as Figure 7 After fine-tuning the second marker after translation, the parameters displayed on the oscilloscope screen can be moved to the desired measurement position to measure the relevant physical quantities. At this time, the angle measurement value ρ4 of the cursor at the preset target position is:
[0172] ρ4=(ca″)*(β-α) / ΔM4+α
[0173] Furthermore, the time corresponding to the cursor and the parameter measurement value are simultaneously displayed on the display screen.
[0174] Specifically, for example, such as Figure 8 The oscilloscope display shows the time corresponding to the cursor's position, as well as the specific parameters at the target position obtained according to the parameter calculation rules. This allows users to observe the measurement results on the oscilloscope at any time when measuring parameters at any position on the waveform, thus improving the user experience.
[0175] In the embodiment, when the second mark is offset from the display screen, the offset second mark can be retranslated back to the display screen, and the parameter at the position of the cursor is calculated based on the translation parameter of the second mark, or the second mark after translation is finely adjusted, and the parameter at the position of the cursor is calculated again based on the finely adjusted mark. The parameter calculation rule at the target position of the cursor is also universally applicable. Therefore, the application realizes flexible calculation of the parameter at the target position of the cursor, and simultaneously displays the corresponding time and parameter measurement value at the position of the cursor on the display screen, improves the efficiency of the user when operating the oscilloscope, and improves the user experience.
[0176] In addition, the embodiment of the application also provides a cursor measurement system, which refers to Figure 9 , Figure 9 The figure is a functional module schematic diagram of an embodiment of the cursor measurement of the application. As shown in the figure, Figure 9 The cursor measurement system of the application comprises:
[0177] The first acquisition module 10 is used for determining the angles corresponding to the marks, and acquiring the horizontal parameters of the marks in the horizontal direction of the oscilloscope relative to the reference line in the display screen;
[0178] The second acquisition module 20 is used for acquiring the horizontal parameter between the cursor in the display screen and the reference line;
[0179] The parameter measurement value determination module 30 is used for obtaining the parameter measurement value of the cursor at the preset target position based on the horizontal parameters of the marks relative to the reference line in the display screen, the angles corresponding to the marks, and the horizontal parameter between the cursor and the reference line.
[0180] Further, each of the marks comprises a first mark and a second mark.
[0181] The first acquisition module 10 comprises:
[0182] The first determination horizontal parameter unit is used for determining the first angle corresponding to the first mark and the second angle corresponding to the second mark, and determining the first horizontal parameter and the second horizontal parameter of the first mark and the second mark relative to the reference line respectively.
[0183] Further, the reference line comprises a vertical line based on the first mark, a vertical line based on the second mark, a screen edge of the display screen, a vertical center line of the display screen, and a vertical line at any position on the display screen, and the horizontal parameter comprises a pixel, a distance, a time, and a proportion.
[0184] Further, the first acquisition module 10 further comprises:
[0185] The second determining horizontal parameter unit is configured to move the mark into the display screen when the mark is not in the display screen, and determine a horizontal parameter of the moved mark relative to the reference line, so as to obtain the parameter measurement value of the cursor at the preset target position according to the horizontal parameter, the angle, and the horizontal parameter between the cursor and the reference line.
[0186] Further, the first obtaining module 10 further comprises:
[0187] The third determining horizontal parameter unit is configured to determine a horizontal parameter of the scaled mark relative to the reference line based on a proportional relationship between the waveforms before and after scaling of the oscilloscope, so as to obtain the parameter measurement value of the cursor at the preset target position according to the horizontal parameter, the angle, and the horizontal parameter between the cursor and the reference line, wherein the proportional relationship is determined according to the first time base position before scaling and the second time base position after scaling of the oscilloscope.
[0188] Further, the cursor measurement system further comprises:
[0189] The first translating module is configured to, after the waveform in the display screen is scaled, if the first mark is not in the display screen at this time, translate the first mark into the display screen by moving the waveform, and determine a first translation parameter.
[0190] The third obtaining module is configured to determine a third horizontal parameter and a fourth horizontal parameter of the first mark and the second mark in the screen relative to the reference line based on the first translation parameter, the first horizontal parameter, the second horizontal parameter, the first time base position, and the second time base position.
[0191] The parameter measurement value determining module 30 comprises:
[0192] The first obtaining unit is configured to obtain a first relative parameter between the translated first mark and the second mark based on the third horizontal parameter and the fourth horizontal parameter, and obtain the parameter measurement value of the cursor at the preset target position according to the first relative parameter, the horizontal parameter between the cursor and the reference line, the third horizontal parameter, and the angle.
[0193] Further, the cursor measurement system further comprises:
[0194] The first fine adjustment module is configured to obtain a first adjustment parameter, and finely adjust the translated first mark according to the first adjustment parameter to obtain a fifth horizontal parameter.
[0195] The parameter measurement value determination module 30 further comprises:
[0196] The second obtaining unit is configured to obtain a second relative parameter between the first mark after fine adjustment and the second mark based on the fifth horizontal parameter and the fourth horizontal parameter, and obtain the parameter measurement value of the cursor at the preset target position based on the second relative parameter, the horizontal parameter between the cursor and the reference line, the fifth horizontal parameter, and the angle.
[0197] Further, the cursor measurement system further comprises:
[0198] The scaling unit is configured to, after zooming in the waveform in the display screen, if the second mark is also not in the display screen at this time, translate the second mark to the display screen by moving the waveform, and determine a second translation parameter;
[0199] The fourth obtaining unit is configured to determine a sixth horizontal parameter of the first mark after fine adjustment relative to a reference line of the display screen based on the fifth horizontal parameter and the second translation parameter, and determine a seventh horizontal parameter of the second mark in the display screen relative to the reference line based on the fourth horizontal parameter and the second translation parameter;
[0200] The parameter measurement value determination module 30 further comprises:
[0201] The third obtaining unit is configured to obtain a third relative parameter between the first mark after fine adjustment and the second mark after translation based on the sixth horizontal parameter and the seventh horizontal parameter, and obtain the parameter measurement value of the cursor at the preset target position based on the third relative parameter, the horizontal parameter between the cursor and the reference line, the sixth horizontal parameter, and the angle.
[0202] Further, the cursor measurement system further comprises:
[0203] The second fine adjustment module is configured to obtain a second adjustment parameter, and fine adjust the second mark after translation based on the second adjustment parameter to obtain an eighth horizontal parameter;
[0204] The parameter measurement value determination module 30 further comprises:
[0205] The fourth obtaining unit is configured to obtain a fourth relative parameter between the first mark after fine adjustment and the second mark after fine adjustment based on the eighth horizontal parameter and the sixth horizontal parameter, and obtain the parameter measurement value of the cursor at the preset target position based on the fourth relative parameter, the horizontal parameter between the cursor and the reference line, the sixth horizontal parameter, and the angle.
[0206] Further, the time corresponding to the cursor and the parameter measurement value are simultaneously displayed in the display screen.
[0207] The specific implementation of each functional module of the cursor measurement system of the present application is basically the same as that of the above-mentioned cursor measurement method, and will not be described here.
[0208] In addition, an embodiment of the present application also provides a computer readable storage medium, and the computer readable storage medium stores a cursor measurement program. When the cursor measurement program is executed by a processor, the steps of the cursor measurement method described above are implemented.
[0209] Each embodiment of the cursor measurement system and the computer readable storage medium of the present application can refer to each embodiment of the cursor measurement method of the present application, and will not be described here.
[0210] In addition, an embodiment of the present application also provides a computer program product, and the computer program product includes a computer program. When the computer program is executed by a processor, the steps of the cursor measurement method described in any one of the above embodiments of the cursor measurement method are implemented.
[0211] The specific embodiment of the computer program product of the present application is basically the same as the above-mentioned cursor measurement method, and will not be described here.
[0212] It should be noted that in this paper, the term "including", "containing" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element.
[0213] The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.
[0214] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for making a terminal device (which can be an oscilloscope) execute the method described in each embodiment of the present application.
[0215] The above merely describes the preferred embodiments of the present application, and is not intended to limit the patent scope of the present application, and any equivalent structure or equivalent process conversion, or direct or indirect application in other related technical fields, which are made by using the content of the present application specification and drawings, are also included in the patent protection scope of the present application.
Claims
1. A method for measuring a cursor, characterized in that, The cursor measurement method is applied to an oscilloscope, which includes a display screen, and the cursor measurement method includes the following steps: Determine the angle corresponding to each mark, and obtain the horizontal parameters of each mark in the horizontal direction of the oscilloscope relative to the reference line in the display screen; Obtain the horizontal parameter between the cursor on the display screen and the reference line; The parameter measurement value of the cursor at the preset target position is obtained based on the horizontal parameters of each of the marks relative to the reference line in the display screen, the angles corresponding to the multiple marks, and the horizontal parameters between the cursor and the reference line. Each of the marks includes a first mark and a second mark. The reference line refers to the vertical line based on the first mark, the vertical line based on the second mark, the screen edge of the display screen, the vertical center line of the display screen, and the vertical line at any position on the display screen. The horizontal parameters refer to pixels, distance, time, and scale.
2. The cursor measurement method as described in claim 1, characterized in that, The step of determining the angle corresponding to each mark and obtaining the horizontal parameters of each mark in the horizontal direction of the oscilloscope relative to the reference line in the display screen includes: Determine the first angle corresponding to the first mark and the second angle corresponding to the second mark, and determine the first horizontal parameter and the second horizontal parameter of the first mark and the second mark relative to the reference line, respectively.
3. The cursor measurement method as described in claim 1, characterized in that, The step of obtaining the horizontal parameters of each of the marks on the oscilloscope in the horizontal direction relative to the reference lines in the display screen includes: When the mark is not on the display screen, the mark is moved to the display screen, and the horizontal parameter of the translated mark relative to the reference line is determined, so as to obtain the parameter measurement value of the cursor at the preset target position based on the horizontal parameter, the angle, the horizontal parameter between the cursor and the reference line.
4. The cursor measurement method as described in claim 1 or 2, characterized in that, The step of obtaining the horizontal parameters of each of the marks on the oscilloscope in the horizontal direction relative to the reference lines in the display screen includes: After scaling the waveform on the display screen, the horizontal parameter of the scaled mark relative to the reference line is determined based on the proportional relationship between the waveform before and after scaling on the oscilloscope. The parameter measurement value of the cursor at the preset target position is obtained according to the horizontal parameter, the angle, the horizontal parameter between the cursor and the reference line, wherein the proportional relationship is determined based on the first time base setting of the oscilloscope before scaling and the second time base setting after scaling.
5. The cursor measurement method as described in claim 4, characterized in that, The cursor measurement method further includes: After magnifying the waveform on the display screen, if the first mark is not on the display screen at this time, the first mark is translated into the display screen by moving the waveform, and the first translation parameter is determined. Based on the first translation parameter, the first horizontal parameter, the second horizontal parameter, the first time base level, and the second time base level, the third horizontal parameter and the fourth horizontal parameter of the first mark and the second mark on the screen relative to the reference line are determined, respectively. The step of obtaining the parameter measurement value of the cursor at the preset target position based on the horizontal parameters of each of the marks relative to the reference line in the display screen, the angles corresponding to the multiple marks, and the horizontal parameters between the cursor and the reference line includes: Based on the third horizontal parameter and the fourth horizontal parameter, a first relative parameter between the first mark and the second mark on the screen is obtained, and the parameter measurement value of the cursor at the preset target position is obtained according to the first relative parameter, the horizontal parameter between the cursor and the reference line, the third horizontal parameter, and the angle.
6. The cursor measurement method as described in claim 5, characterized in that, After the step of determining the third and fourth horizontal parameters of the reference line for the first and second marks on the screen, respectively, the method further includes: Obtain the first adjustment parameter, and perform fine adjustment on the first mark in the screen according to the first adjustment parameter to obtain the fifth level parameter; The step of obtaining the parameter measurement value of the cursor at the preset target position based on the horizontal parameters of each of the marks relative to the reference line in the display screen, the angles corresponding to the multiple marks, and the horizontal parameters between the cursor and the reference line, further includes: Based on the fifth level parameter and the fourth level parameter, a second relative parameter between the finely adjusted first mark and the second mark is obtained, and the parameter measurement value of the cursor at the preset target position is obtained according to the second relative parameter, the horizontal parameter between the cursor and the reference line, the fifth level parameter, and the angle.
7. The cursor measurement method as described in claim 6, characterized in that, The cursor measurement method further includes: After magnifying the waveform on the display screen, if the second mark is not on the display screen at this time, the second mark is translated to the display screen by moving the waveform, and the second translation parameter is determined. Based on the fifth level parameter and the second translation parameter, a sixth level parameter is determined for the finely adjusted first mark relative to the reference line of the display screen, and based on the fourth level parameter and the second translation parameter, a seventh level parameter is determined for the second mark in the screen relative to the reference line. The step of obtaining the parameter measurement value of the cursor at the preset target position based on the horizontal parameters of each of the marks relative to the reference line in the display screen, the angles corresponding to the multiple marks, and the horizontal parameters between the cursor and the reference line, further includes: Based on the sixth and seventh level parameters, the third relative parameters of the finely adjusted first mark and the second mark on the screen are obtained, and the parameter measurement value of the cursor at the preset target position is obtained according to the third relative parameters, the horizontal parameter between the cursor and the reference line, the sixth level parameter, and the angle.
8. The cursor measurement method as described in claim 7, characterized in that, After the step of determining the seventh level parameter of the second mark in the screen relative to the reference line based on the fourth level parameter and the second translation parameter, the method further includes: Obtain the second adjustment parameter, and perform fine adjustment on the second mark in the screen according to the second adjustment parameter to obtain the eighth level parameter; The step of obtaining the parameter measurement value of the cursor at the preset target position based on the horizontal parameters of each of the marks relative to the reference line in the display screen, the angles corresponding to the multiple marks, and the horizontal parameters between the cursor and the reference line, further includes: Based on the eighth level parameter and the sixth level parameter, a fourth relative parameter is obtained between the finely adjusted first mark and the finely adjusted second mark. The parameter measurement value of the cursor at the preset target position is obtained according to the fourth relative parameter, the horizontal parameter between the cursor and the reference line, the sixth level parameter, and the angle.
9. The cursor measurement method as described in claim 1, characterized in that, The time corresponding to the cursor and the parameter measurement value are simultaneously displayed on the screen.
10. A cursor measurement system, characterized in that, The cursor measurement system includes: The first acquisition module is used to determine the angle corresponding to each mark and acquire the horizontal parameters of each mark in the horizontal direction of the oscilloscope relative to the reference line in the display screen. The second acquisition module is used to acquire the horizontal parameter between the cursor in the display screen and the reference line; The parameter measurement value determination module is used to obtain the parameter measurement value of the cursor at a preset target position based on the horizontal parameters of each of the marks relative to the reference line in the display screen, the angles corresponding to the multiple marks, and the horizontal parameters between the cursor and the reference line. The marks include a first mark and a second mark. The reference line refers to a vertical line based on the first mark, a vertical line based on the second mark, the screen edge of the display screen, the vertical center line of the display screen, and a vertical line at any position on the display screen. The horizontal parameters refer to pixels, distance, time, and scale.
11. A terminal device, characterized in that, The terminal device includes a memory, a processor, and a cursor measurement program stored in the memory and executable on the processor, wherein the cursor measurement program, when executed by the processor, implements the steps of the cursor measurement method as described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a cursor measurement program, which, when executed by a processor, implements the steps of the cursor measurement method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Oscilloscope capable of defining measuring range by user and achieving method thereof
CN103176013A
Cursor touch control method and cursor touch control device, digital oscilloscope
CN109144387A