CN108318723B - Waveform scaling method, device and system - Google Patents

Waveform scaling method, device and system Download PDF

Info

Publication number
CN108318723B
CN108318723B CN201710030772.3A CN201710030772A CN108318723B CN 108318723 B CN108318723 B CN 108318723B CN 201710030772 A CN201710030772 A CN 201710030772A CN 108318723 B CN108318723 B CN 108318723B
Authority
CN
China
Prior art keywords
gear position
position information
vertical
horizontal
oscilloscope
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710030772.3A
Other languages
Chinese (zh)
Other versions
CN108318723A (en
Inventor
李东明
王悦
王铁军
李维森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Puyuan Jingdian Technology Co ltd
Original Assignee
Puyuan Jingdian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Puyuan Jingdian Technology Co ltd filed Critical Puyuan Jingdian Technology Co ltd
Priority to CN201710030772.3A priority Critical patent/CN108318723B/en
Publication of CN108318723A publication Critical patent/CN108318723A/en
Application granted granted Critical
Publication of CN108318723B publication Critical patent/CN108318723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R13/00Arrangements for displaying electric variables or waveforms

Abstract

The invention provides a waveform scaling method, a device and a system, wherein the method comprises the following steps: obtaining the range information of the upper computer zooming area according to a user instruction; acquiring the horizontal grid number and the vertical grid number of a current activated channel; determining the scaled vertical gear position information and horizontal gear position information according to the range information, the number of vertical grids and the number of horizontal grids of the current activation channel; and the oscilloscope updates the waveform data according to the zoomed gear position information. The invention automatically carries out zooming operation on the waveform in the vertical and horizontal directions according to the selected area, the whole operation process is simple and visual, and the user does not need to adjust the waveform through a knob for many times.

Description

Waveform scaling method, device and system
Technical Field
The invention relates to a waveform display technology, in particular to a waveform scaling method, a device and a system.
Background
At present, oscilloscope products in the industry are generally provided with a color display screen, so that a user can conveniently observe the waveform of a measured electric signal. Meanwhile, the oscilloscope is also provided with a gear and position adjusting knob, and the waveform can be vertically and horizontally zoomed and displaced by rotating the adjusting knob, so that the detail information of the waveform can be conveniently observed. Generally, the gear and position adjusting knobs are divided into a vertical type and a horizontal type, the vertical type is composed of a plurality of channels, and the vertical gear and position of each channel can be independently adjusted. The horizontal adjustment is synchronous for all channels, all sharing one horizontal adjustment.
In the prior art, when a user observes a waveform displayed by an oscilloscope, if a certain area of the waveform is interested, the user wants to further check detail information, the user generally needs to respectively adjust the vertical gear, the position, the horizontal gear and the position setting of a channel where the waveform is located to check the detail information of the waveform, and due to the lack of a waveform positioning tool, the adjustment process generally needs to be carried out for multiple times to adjust the interested waveform area to a proper size and position, and the zooming process is complicated and is not intuitive.
In addition, in the prior art, because the gear position and position information before zooming are not reserved, after the waveform zooming operation is performed by the user, the setting before zooming is difficult to recover, that is, the user cannot cancel the waveform zooming operation, and after the waveform detail information is checked, if the gear position and position setting of the waveform before zooming are desired to recover, the method is generally difficult to implement unless the user memorizes the current vertical gear position and horizontal gear position and position setting information before adjusting.
Disclosure of Invention
In order to overcome the defects of waveform scaling in the prior art and simplify user operation, an embodiment of the present invention provides a waveform scaling method, including:
obtaining the range information of the upper computer zooming area according to a user instruction;
acquiring the horizontal grid number and the vertical grid number of a current activated channel;
determining the zoomed vertical gear position information and the zoomed horizontal gear position information according to the range information, the horizontal grid number and the vertical grid number of the current activation channel;
and the oscilloscope updates waveform data according to the zoomed gear position information.
In an embodiment of the present invention, the vertical gear position information includes: a vertical range value and a vertical offset, the horizontal range information including: the determining scaled vertical and horizontal gear position information according to the range information and the number of horizontal and vertical grids of the currently activated channel includes:
determining the vertical range and the horizontal range of the zooming area according to the range information of the zooming area;
determining a vertical gear value and a vertical offset after zooming according to the number of vertical grids and the vertical range of the zooming area;
and determining a horizontal gear value and a horizontal offset after zooming according to the horizontal grid number and the horizontal range of the zooming area.
In the embodiment of the present invention, the waveform data updated by the oscilloscope according to the scaled gear position information includes:
the oscilloscope receives the zoomed vertical gear position information and the zoomed horizontal gear position information;
the oscilloscope adjusts the current vertical gear position information and the current horizontal gear position information of the oscilloscope according to the vertical gear position information and the horizontal gear position information;
the oscilloscope updates waveform data according to the current gear position information;
the oscilloscope displays the updated waveform data.
In the embodiment of the present invention, the adjusting, by the oscilloscope, the current vertical gear position information and the current horizontal gear position information of the oscilloscope according to the vertical gear position information and the horizontal gear position information includes:
and the oscilloscope adjusts the received zoomed vertical gear position information and the zoomed horizontal gear position information nearby into the vertical gear position information and the horizontal gear position information allowed by the oscilloscope.
In the embodiment of the invention, the upper computer also inquires the vertical gear position information and the horizontal gear position information which are adjusted nearby, and updates the vertical gear position information and the horizontal gear position information which are adjusted nearby into the current vertical gear position information and the current horizontal gear position information of the upper computer.
In the embodiment of the present invention, the method further includes:
acquiring vertical gear position information and horizontal gear position information of a current activation channel;
and storing the acquired gear position information of the current activated channel.
In the embodiment of the present invention, the method further includes:
acquiring stored gear position information according to a user instruction;
and displaying the waveform data updated by the oscilloscope according to the stored gear position information.
Meanwhile, the invention also provides a waveform scaling device, which comprises:
the positioning module is used for acquiring the range information of the upper computer zooming area according to a user instruction;
the grid number acquisition module is used for acquiring the vertical gear position information and the horizontal gear position information of the current activated channel;
the gear position determining module is used for determining the scaled vertical gear position information and the scaled horizontal gear position information according to the range information, the number of vertical grids and the number of horizontal grids of the current activation channel;
and the display module is used for displaying the waveform data updated by the oscilloscope according to the zoomed gear position information.
In an embodiment of the present invention, the vertical gear position information includes: a vertical range value and a vertical offset, the horizontal range information including: a horizontal gear value and a horizontal offset, said gear position determination module comprising:
the range determining unit is used for determining the vertical range and the horizontal range of the zooming area according to the range information of the zooming area;
a vertical gear position determining unit for determining a vertical gear value and a vertical offset after zooming according to the number of vertical grids and the vertical range of the zooming area;
the horizontal gear position determining unit determines a horizontal gear value and a horizontal offset after zooming according to the horizontal grid number and the horizontal range of the zooming area.
In an embodiment of the present invention, the display module further includes:
the oscilloscope data acquisition unit is used for acquiring the vertical gear information and the horizontal gear information of the oscilloscope after the oscilloscope is adjusted nearby, and the vertical gear information and the horizontal gear information after the oscilloscope is adjusted nearby are as follows: the oscilloscope is adjusted to the vertical gear position information and the horizontal gear position information allowed by the oscilloscope nearby according to the zoomed vertical gear position information and zoomed horizontal gear position information; (ii) a
And the gear information updating unit is used for updating the vertical gear information and the horizontal gear information which are adjusted nearby into the current vertical gear position information and the current horizontal gear position information of the upper computer.
In the embodiment of the present invention, the apparatus further includes:
the gear acquisition module is used for acquiring the vertical gear position information and the horizontal gear position information of the current activation channel;
and the storage module is used for storing the acquired gear position information of the current activated channel.
In the embodiment of the present invention, the apparatus further includes:
the storage gear acquisition module is used for acquiring stored gear position information according to a user instruction;
and the display module displays the updated waveform data according to the acquired stored gear position information.
Meanwhile, the invention also provides a waveform zooming system which comprises the waveform zooming device and an oscilloscope.
The waveform zooming method, the waveform zooming device and the waveform zooming system provided by the invention solve the defects of complexity and non-intuition in the zooming process in the prior art, and the invention stores and calls the gear position information before zooming, so that a user can cancel the waveform zooming operation. The method comprises the steps of selecting a waveform area to be zoomed on a waveform by using a positioning tool such as a mouse, automatically zooming the waveform in the vertical and horizontal directions according to the area selected by the mouse, and enabling the whole operation process to be simple and visual without the need of multiple times of adjustment through a knob by a user.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a waveform scaling method according to the present invention;
FIG. 2 is a flow chart of determining scaled gear position information in an embodiment of the present invention;
FIG. 3 is a block diagram of a waveform scaling apparatus according to the present invention;
FIG. 4 is a block diagram of an embodiment of the present invention;
FIG. 5 is a block diagram of an embodiment of the present invention;
FIG. 6 is a block diagram of a waveform scaling apparatus according to an embodiment of the present invention;
FIG. 7 is a screenshot of a host interface of a host computer with a Zoom menu in an embodiment of the present invention;
FIG. 8 is a screenshot of a host computer interface with a zoom cursor according to an embodiment of the present invention;
FIG. 9 is a screenshot of a host interface of a host computer having a Return menu according to an embodiment of the present invention;
FIG. 10 is a flow chart of 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.
As shown in fig. 1, an embodiment of the present invention provides a waveform scaling method, where the method includes:
step S101, obtaining range information of an upper computer zooming area according to a user instruction;
step S102, acquiring the number of vertical grids and the number of horizontal grids of a current activated channel;
step S103, determining the position information of the zoomed vertical gear and the position information of the zoomed horizontal gear according to the range information, the number of vertical grids and the number of horizontal grids of the current activated channel;
and step S104, the oscilloscope updates waveform data according to the zoomed gear position information.
In the embodiment of the present invention, the vertical gear position information includes: a vertical range value and a vertical offset, the horizontal range information including: the step S103 of determining the scaled shift position information based on the range information and the shift position information of the currently activated lane, as shown in fig. 2, includes:
step S1031, determining the vertical range and the horizontal range of the zoom area according to the range information of the zoom area;
step S1032, determining a vertical gear value and a vertical offset after zooming according to the number of vertical grids and the vertical range of the zooming area;
in step S1033, a zoom level gear value and a horizontal offset are determined according to the number of horizontal grids and the horizontal range of the zoom area.
Step S104, the oscilloscope updating waveform data according to the zoomed gear position information comprises the following steps:
the oscilloscope receives the zoomed vertical gear position information and the zoomed horizontal gear position information;
the oscilloscope adjusts the current vertical gear position information and the current horizontal gear position information of the oscilloscope according to the vertical gear position information and the horizontal gear position information;
the oscilloscope updates waveform data according to the current gear position information;
the oscilloscope displays the updated waveform data.
In the embodiment of the present invention, the adjusting, by the oscilloscope, the current vertical gear position information and the current horizontal gear position information of the oscilloscope according to the vertical gear position information and the horizontal gear position information includes:
and the oscilloscope adjusts the received zoomed vertical gear position information and the zoomed horizontal gear position information nearby into the vertical gear position information and the horizontal gear position information allowed by the oscilloscope.
And the upper computer also inquires the vertical gear position information and the horizontal gear position information which are adjusted nearby, and updates the vertical gear position information and the horizontal gear position information which are adjusted nearby into the current vertical gear position information and the current horizontal gear position information of the upper computer.
The waveform scaling method of the present invention further includes: and storing the acquired gear position information of the current activated channel.
Acquiring stored gear position information according to a user instruction;
and displaying the waveform data updated by the oscilloscope according to the stored gear position information.
In the embodiment of the present invention, acquiring the range information of the zoom area according to the user instruction includes:
and selecting a zooming area through a mouse, and acquiring range information of the selected zooming area.
Meanwhile, the present invention also provides a waveform scaling apparatus, as shown in fig. 3, the apparatus comprising:
the positioning module 301 is configured to obtain range information of a scaling region of the upper computer according to a user instruction;
a grid number obtaining module 302, configured to obtain a vertical grid number and a horizontal grid number of a currently activated channel;
a gear position determining module 303, configured to determine scaled vertical gear position information and scaled horizontal gear position information according to the range information, the vertical gear position information and the horizontal gear position information of the current activation channel;
and the display module 304 is configured to display waveform data updated by the oscilloscope according to the scaled gear position information.
As shown in fig. 4, the gear position determining module 303 includes:
a range determining unit 3031, configured to determine a vertical range and a horizontal range of the zoom region according to the range information of the zoom region;
a vertical gear position determination unit 3032, which determines the vertical gear position value and the vertical offset after zooming according to the determined vertical grid number and the vertical range of the zooming area;
horizontal range position determining section 3033 determines the scaled horizontal range value and horizontal offset from the determined number of horizontal grids and the horizontal range of the scaling region.
The display module 304 further includes:
the oscilloscope data acquisition unit is used for acquiring the vertical gear information and the horizontal gear information of the oscilloscope after the oscilloscope is adjusted nearby, and the vertical gear information and the horizontal gear information after the oscilloscope is adjusted nearby are as follows: the oscilloscope is adjusted to the vertical gear position information and the horizontal gear position information allowed by the oscilloscope nearby according to the zoomed vertical gear position information and zoomed horizontal gear position information;
and the gear information updating unit is used for updating the vertical gear information and the horizontal gear information which are adjusted nearby into the current vertical gear position information and the current horizontal gear position information of the upper computer.
Meanwhile, as shown in fig. 5, the waveform scaling apparatus of the present invention further includes:
a current gear acquisition module 305 for acquiring the vertical gear position information and the horizontal gear position information of the current activation channel;
and the storage module 306 is configured to store the acquired gear position information of the currently activated channel.
And the stored gear acquiring module 307 acquires the stored gear position information according to the instruction of the user and sends the stored gear position information to the oscilloscope.
Meanwhile, the invention also provides a waveform zooming system, which comprises the waveform zooming device and an oscilloscope
The invention provides a waveform scaling method, a waveform scaling device and a waveform scaling system, which are used for overcoming the defects of the existing scheme and simplifying user operation.
Firstly, the invention uses a positioning tool such as a mouse and the like to select a waveform area to be zoomed on a waveform, and automatically zoom the waveform in the vertical and horizontal directions according to the area selected by the mouse, the whole operation process is simple and visual, and a user does not need to adjust the waveform through a knob for many times.
The invention can store the current gear and position information before zooming operation, and can quickly restore the previous setting after the waveform zooming operation of a user without memorizing the previous setting information.
The technical solution of the present invention will be described in further detail with reference to specific embodiments.
The waveform scaling device of the present embodiment is composed of the following units and devices (as shown in fig. 6): a waveform operation positioner 1 (e.g., a mouse pointer) for positioning an area of a waveform scaling operation; the waveform operation detection unit 2 judges the waveform operation selected by the user; a locator position acquisition unit 3 for acquiring range information of a zoom area, which is a position of the locator; the positioner position conversion unit 4 is used for converting the range information acquired by the positioner position acquisition unit 3 into gear and position values of the oscilloscope, and storing the gear and position values into a gear position cache 5 for return operation, or converting the gear position value of the oscilloscope acquired by the gear position inquiry unit 8 into a waveform region display range; a gear position cache 5 for storing gear position values; the gear position sending unit 6 is used for sending a gear position value to the oscilloscope; a shift position setting unit 7 (oscilloscope), which is a shift position setting function unit of the oscilloscope; the gear position query unit 8 is used for querying a gear position value of the oscilloscope; and a waveform data display unit 9 for displaying the waveform data acquired from the oscilloscope by the upper computer in the waveform display area.
The following describes a specific embodiment of the present invention by taking the upper computer software as an example, and the embodiment is also applicable to embedded software in an oscilloscope.
Fig. 7 is a screenshot of the main interface of the upper computer software, in which a waveform display area is provided with a grid background, and a mouse pointer is displayed in the waveform display area according to the scheme of the invention, and the pointer is an operation tool (operation positioner) for zooming in and zooming out the waveform subsequently.
Fig. 10 is a main flow diagram of an embodiment of the present invention.
Step S1, initializing the mouse locator; for upper computer software running on a PC, a system mouse pointer provided by a PC operating system is directly adopted; for embedded software, mouse pointer display may be implemented by the developer himself.
Step S2, detecting waveform operation, and popping up a waveform operation selection menu through a mouse pointer or a button and the like;
step S3 judges the operation type, and if the Zoom menu item is selected as in block 801 of fig. 8, the mouse pointer changes to the Zoom-in state, and the Zoom operation flow is executed.
At this time, the user can select the waveform area to be zoomed through the mouse pointer, and step S4.1, the mouse locator is moved to select the Zoom area, which specifically comprises the following steps:
1. moving a mouse pointer to any corner of the waveform zooming area, and clicking a mouse (or double-clicking and other operations);
2. and keeping the clicking state, dragging the mouse pointer, and simultaneously displaying a zooming frame formed by the mouse pointer track in the waveform area, wherein the zooming frame is shown by a dotted line in the figure 8.
3. And moving the mouse pointer to the position designated by the user, releasing the mouse (or clicking and other operations), and completing the selection of the waveform zooming area.
After the waveform zooming area is selected through the steps, the step S4.2 and the step S4.3 are executed, the upper computer software calls a locator position conversion unit, and the gear position information and the horizontal gear position information of the current activated channel are calculated and obtained according to the positioning information of the mouse frame.
For example, the vertical positioning information of the mouse box 802 in fig. 8 is: 7 to 3, i.e. 10 vertical units, which value is used as the new vertical range after scaling, the position conversion unit calculates the vertical gear and position information. The horizontal positioning information of the mouse box 802 in fig. 8 is: 56.00ms to 58.10ms, i.e. 2.1m horizontal units (typically seconds), this value is taken as a new horizontal range after scaling and the position conversion unit calculates the horizontal gear and position information.
In step S4.21 and step S4.31, the upper computer software automatically saves the current vertical and horizontal gear position settings at the same time, which is convenient for the subsequent user to execute return operation to restore the current settings.
And step S6, the upper computer software sends the calculated information of the vertical gear position and the horizontal gear position to an oscilloscope through a sending unit.
And step S7, after the oscilloscope receives the gear position and the position information, the gear position and the position information need to be approximately processed and adjusted to the gear position and the position which can be set by the oscilloscope.
And step S8, the oscilloscope sets the corresponding gear position and updates the waveform data for display.
And after the oscilloscope is set, executing step S9, synchronizing the upper computer software and the oscilloscope, sending a query command to the oscilloscope, reading back the gear and the position corresponding to the oscilloscope after the setting of the scaling, and modifying the scale of the waveform display area of the upper computer so as to reflect the latest gear and position information. And step S10, the upper computer reads the current waveform data of the oscilloscope and displays the current waveform data in the waveform area. At this time, the Zoom operation is completed by the waveform displayed in the waveform region, i.e., the waveform after the Zoom operation.
After zooming, if the user wants to Return to the state before zooming, the Return menu item can be selected through the waveform operation selection menu, as shown in FIG. 9, the upper computer sends the previously stored gear and position information to the oscilloscope through the sending unit, the oscilloscope executes the same setting as the Zoom operation, after the completion, the upper computer reads back the corresponding gear and position after the adjustment of the oscilloscope, synchronizes the waveform display scale, reads the waveform data, recovers the waveform display before the Zoom operation, and completes the Return operation, as shown in FIG. 7.
In the waveform scaling of the present embodiment, the scaling factor is calculated according to the value of the mouse:
in this embodiment, the mouse is a waveform scaling locator for determining a vertical horizontal range of a waveform, the locator position conversion unit converts the vertical horizontal range into a vertical position and a horizontal position, the vertical position refers to how many vertical units each grid represents in a vertical direction on the screen, and the vertical position refers to: and the offset value of the waveform zero point in the vertical direction relative to the middle position of the vertical scale is positive when the waveform zero point position is on the upper side of the middle position of the vertical scale, and is negative when the waveform zero point position is on the lower side. The waveform zero position in fig. 7, i.e., the position of the small label "CH 1", is above the middle of the vertical scale (-2 scales), and is therefore positive 2V. The horizontal position refers to how many horizontal units (generally s) each grid represents in the horizontal direction on the screen, and the horizontal position refers to a horizontal offset value which is a middle position value in the horizontal direction on the screen.
The specific conversion formula is as follows:
vertical gear (vertical maximum-vertical minimum)/screen vertical grid number;
vertical position-1 × (vertical maximum + vertical minimum)/2;
the horizontal gear is (horizontal maximum value-horizontal minimum value)/the horizontal grid number of the screen;
horizontal gear (horizontal maximum + horizontal minimum)/2.
In this embodiment, the mouse is a waveform scaling positioner, and is configured to determine a vertical and horizontal range of a waveform, that is, a scale range of a waveform display area of the upper computer, which is consistent with a waveform display range of the oscilloscope, where a screen of the oscilloscope generally has no scale display but vertical and horizontal gear positions and position displays, and the screen range and the gear positions have a corresponding relationship, and may be converted by a formula, where a description of scaling factors is calculated by referring to a specific formula according to a value of the mouse. The upper computer software carries out range conversion through the positioner position conversion unit, the gear position value obtained through conversion is an ideal calculated value, the value is sent to the oscilloscope, the gear and position setting precision of the oscilloscope is limited, the ideal calculated value is not supported generally, the oscilloscope generally converts the ideal value into the closest value which can be accepted by the oscilloscope as a final set value, the upper computer software reads back the final set value of the oscilloscope, the waveform display area range of the upper computer is set into a corresponding value through the positioner position conversion unit, and generally the range value has certain deviation with the positioning range value selected by a user through a mouse.
The return processing flow in the embodiment of the invention is as follows:
referring to the main flow chart of fig. 10, when the waveform operation detection unit of the upper computer software detects that the user selects Return operation, the upper computer software executes step S5.1, acquires the previously saved vertical gear position from the locator position cache by using the locator position acquisition unit, and acquires the previously saved horizontal gear position in step S5.2.
According to the main flow chart, the next step is the same as the operation of the mouse Zoom, step S6 is executed, and the upper computer software calls the gear position information sending unit to send the gear position information to the oscilloscope.
And step S7, the oscilloscope approximately processes the gear position information and adjusts the gear position and the position to which the oscilloscope can set.
And step S8, the oscilloscope sets the gear position adjusted in the step 7, and meanwhile, waveform data are updated according to the setting.
And step S9, the upper computer software synchronizes the gear position setting, sends a query command to the oscilloscope, reads back the gear and position corresponding to the oscilloscope after the zoom setting, and modifies the vertical and horizontal scale range of the waveform display area of the upper computer to reflect the latest gear and position information.
And step S10, the upper computer reads the current waveform data of the oscilloscope, displays the current waveform data in the waveform area and completes the return operation.
The technical scheme of the invention is further described in detail in combination with the case of performing waveform scaling by the upper computer, and a specific process of performing waveform scaling operation by the upper computer software UltraScope is illustrated below.
As shown in fig. 7, in the main interface of the upper computer UltraScope, moving the mouse to the waveform display area, clicking the right button of the mouse, popping up the waveform operation menu by the upper computer, and selecting the Zoom menu item by using the mouse, as shown in a box 801 of fig. 8, the mouse pointer is changed into the amplification state, and at this time, the user can select the waveform area to be amplified through the mouse pointer, and the specific steps are as follows:
1. moving a mouse pointer to the upper left corner of the waveform display area, and clicking the mouse, wherein the vertical position of the point is 3V, and the horizontal position is 56.00 ms;
2. keeping the clicking state, dragging the mouse to the lower right corner, and simultaneously displaying a zoom frame formed by the mouse pointer track in the waveform area, as shown by a mouse frame 802 in fig. 8.
3. And (4) moving a mouse pointer to the lower right corner of the waveform display area, specifically, releasing the mouse to finish the selection of the waveform amplification area, wherein the vertical position of the point is-7V, and the horizontal position is 58.10 ms.
After the waveform amplification area is selected through the steps, the upper computer UltraScope calculates and acquires gear position information and horizontal gear position information of the current activation channel according to the positioning information of the mouse zoom frame.
The current activation channel of the UltraScope is channel 1, and according to the mouse pointer selection step, the vertical positioning information of the corresponding mouse zoom frame is as follows: -7V to 3V, i.e. 10V, as a new vertical range (-7V to 3V) after enlargement, UltraScope calls a pointer position conversion unit to convert the vertical positioning information (-7V to 3V) into a vertical shift position and a position value, the conversion method refers to the above description in calculating the zoom factor from the mouse values, the converted vertical shift position is 1.25V/grid, and the vertical position is 2V.
The horizontal positioning information of the mouse zoom box is as follows: 56.00ms to 58.10ms, i.e., 2.1ms, as a new horizontal range after enlargement (56.00ms to 58.10ms), UltraScope calls a pointer position conversion unit to convert horizontal position information (56.00ms to 58.10ms) into a horizontal position and a position value, the conversion method referring to the above description in calculating the zoom factor from the mouse values, the converted horizontal position being 150 us/grid, and the horizontal position being 57.05 ms.
The UltraScreen automatically saves the current vertical and horizontal gear position settings at the same time, so that a subsequent user can conveniently execute a return operation to restore the current settings, wherein the current vertical range is-22V to 18V, the vertical gear is 5V/grid, and the vertical position is 2V; the horizontal range is 53.90ms to 63.70ms, the horizontal gear is 700 us/lattice, and the horizontal position is 58.80 ms.
The UltraScope sends the converted vertical gear position and horizontal gear position information to the oscilloscope through the sending unit, after the oscilloscope receives the gear position and position information, the gear position and position information is processed approximately, the gear position and position information is adjusted to the gear position and position which can be set by the oscilloscope, then the oscilloscope performs corresponding setting, and the waveform display is adjusted, and the actual vertical range after the oscilloscope is adjusted is as follows: 7.17V to 2.81V, gear: 1.25V, position: 2.183 v.; actual horizontal range: 56.01ms to 58.12ms, gear: 150.9 us/grid, position: 57.06872 ms.
After the oscilloscope is set, the UltraScope sends a query command to the oscilloscope, reads back the corresponding gear and position after the oscilloscope is adjusted, modifies the scale of the waveform display area of the UltraScope, modifies the vertical range of the scale to-7.17V to 2.81V, modifies the horizontal range to 56.01ms to 58.12ms, and simultaneously reads the current waveform data of the oscilloscope and displays the current waveform data in the waveform area. The waveform displayed in the waveform region at this time, i.e., the waveform after the enlarging operation, is as shown in fig. 9.
In this embodiment, after the above-described amplification operation, if the user wishes to Return to the state before amplification, the user may click a right mouse button in the waveform display area, pop up the waveform operation menu in the UltraScope, and select the Return menu item using the mouse, as shown in fig. 9, the UltraScope sets the vertical and horizontal gear positions that are saved before calling, and the UltraScope calls the gear position transmitting unit to transmit the vertical and horizontal gear position information to the oscilloscope. The oscilloscope executes the same setting as the amplification operation, after the amplification operation is completed, the UltraScope reads back the corresponding gear and position after the oscilloscope is adjusted, synchronizes the waveform display scale, reads the waveform data, resumes the waveform display before the amplification operation, and completes the Return operation, as shown in the interface shown in FIG. 7.
The invention provides a waveform scaling method and a waveform scaling system, which solve two defects of the existing scheme and simplify user operation. According to the invention, the selected area is directly zoomed on the waveform through a positioning tool such as a mouse and the like, and the waveform zooming operation is greatly simplified without multiple settings of a user. According to the invention, the gear and position information before zooming operation is cached, and the previous setting can be quickly recovered through one-time clicking operation, so that the cancelling function after the user mistakenly zooms is realized, and the interactive operation between the oscilloscope and the user is more friendly.
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.

Claims (11)

1. A method for scaling a waveform, the method comprising:
obtaining the range information of the upper computer zooming area according to a user instruction;
acquiring the horizontal grid number and the vertical grid number of a current activated channel;
determining the scaled vertical gear position information and horizontal gear position information according to the range information, the number of vertical grids and the number of horizontal grids of the current activation channel;
the oscilloscope updates waveform data according to the zoomed gear position information; wherein the content of the first and second substances,
the vertical gear position information comprises: a vertical range value and a vertical offset, the horizontal range information including: determining scaled vertical and horizontal gear position information based on the range information, the number of vertical and horizontal grids of the currently activated channel, and the horizontal offset, including:
determining the vertical range and the horizontal range of the zooming area according to the range information of the zooming area;
determining a vertical gear value and a vertical offset after zooming according to the number of the vertical grids and the vertical range of the zooming area;
and determining the horizontal gear value and the horizontal offset after zooming according to the horizontal grid number and the horizontal range of the zooming area.
2. The waveform scaling method of claim 1, wherein the waveform data that is updated by the oscilloscope according to the scaled gear position information comprises:
the oscilloscope receives the zoomed vertical gear position information and the zoomed horizontal gear position information;
the oscilloscope adjusts the current vertical gear position information and the current horizontal gear position information of the oscilloscope according to the vertical gear position information and the horizontal gear position information;
the oscilloscope updates waveform data according to the current gear position information;
the oscilloscope displays the updated waveform data.
3. The waveform scaling method of claim 2, wherein said oscilloscope adjusting the current oscilloscope vertical gear position information and horizontal gear position information according to said vertical gear position information and horizontal gear position information comprises:
and the oscilloscope adjusts the received zoomed vertical gear position information and the zoomed horizontal gear position information nearby into the vertical gear position information and the horizontal gear position information allowed by the oscilloscope.
4. The waveform scaling method of claim 3, wherein:
and the upper computer also inquires the vertical gear position information and the horizontal gear position information which are adjusted nearby, and updates the vertical gear position information and the horizontal gear position information which are adjusted nearby into the current vertical gear position information and the current horizontal gear position information of the upper computer.
5. The waveform scaling method of claim 1, further comprising:
acquiring vertical gear position information and horizontal gear position information of a current activation channel;
and storing the acquired gear position information of the current activated channel.
6. The waveform scaling method of claim 5, further comprising:
acquiring stored gear position information according to a user instruction;
and displaying the waveform data updated by the oscilloscope according to the stored gear position information.
7. A waveform scaling apparatus, said apparatus comprising:
the positioning module is used for acquiring the range information of the upper computer zooming area according to a user instruction;
the grid number acquisition module is used for acquiring the horizontal grid number and the vertical grid number of the current activated channel;
the gear position determining module is used for determining the scaled vertical gear position information and the scaled horizontal gear position information according to the range information, the number of vertical grids and the number of horizontal grids of the current activation channel;
the display module is used for displaying the waveform data updated by the oscilloscope according to the zoomed gear position information; wherein the content of the first and second substances,
the vertical gear position information comprises: a vertical range value and a vertical offset, the horizontal range information including: a horizontal gear value and a horizontal offset, said gear position determination module comprising:
the range determining unit is used for determining the vertical range and the horizontal range of the zooming area according to the range information of the zooming area;
a vertical gear position determining unit for determining a vertical gear value and a vertical offset after zooming according to the vertical grid number and the vertical range of the zooming area;
and the horizontal gear position determining unit determines a horizontal gear value and a horizontal offset after zooming according to the horizontal grid number and the horizontal range of the zooming area.
8. The waveform scaling apparatus of claim 7, wherein the display module further comprises:
the oscilloscope data acquisition unit is used for acquiring the vertical gear information and the horizontal gear information of the oscilloscope after the oscilloscope is adjusted nearby, and the vertical gear information and the horizontal gear information after the oscilloscope is adjusted nearby are as follows: the oscilloscope is adjusted to the vertical gear position information and the horizontal gear position information allowed by the oscilloscope nearby according to the zoomed vertical gear position information and zoomed horizontal gear position information;
and the gear information updating unit is used for updating the vertical gear information and the horizontal gear information which are adjusted nearby into the current vertical gear position information and the current horizontal gear position information of the upper computer.
9. The waveform scaling apparatus of claim 7, wherein said apparatus further comprises:
the current gear acquisition module is used for acquiring the vertical gear position information and the horizontal gear position information of the current activation channel;
and the storage module is used for storing the acquired gear position information of the current activated channel.
10. The waveform scaling apparatus of claim 9, wherein said apparatus further comprises:
the storage gear acquisition module is used for acquiring stored gear position information according to a user instruction;
and the display module displays the updated waveform data according to the acquired stored gear position information.
11. A waveform scaling system, said system comprising: the waveform scaling apparatus and oscilloscope of any of claims 7-10.
CN201710030772.3A 2017-01-17 2017-01-17 Waveform scaling method, device and system Active CN108318723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710030772.3A CN108318723B (en) 2017-01-17 2017-01-17 Waveform scaling method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710030772.3A CN108318723B (en) 2017-01-17 2017-01-17 Waveform scaling method, device and system

Publications (2)

Publication Number Publication Date
CN108318723A CN108318723A (en) 2018-07-24
CN108318723B true CN108318723B (en) 2022-03-29

Family

ID=62891632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710030772.3A Active CN108318723B (en) 2017-01-17 2017-01-17 Waveform scaling method, device and system

Country Status (1)

Country Link
CN (1) CN108318723B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113219363B (en) * 2021-03-25 2022-06-10 合肥联宝信息技术有限公司 Power supply noise test method and device and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625376B (en) * 2008-07-08 2011-07-20 华硕电脑股份有限公司 Method of diminishing characteristic value of searched area
CN101650377A (en) * 2008-08-11 2010-02-17 鸿富锦精密工业(深圳)有限公司 Signal measurement system and method thereof
CN103176009B (en) * 2011-12-22 2017-10-24 北京普源精电科技有限公司 A kind of waveform Zoom method, device and oscillograph
CN103425398B (en) * 2012-05-16 2017-06-27 瑞萨电子(中国)有限公司 The operating method and device of a kind of Pan and Zoom logical waveform
CN103869116B (en) * 2012-12-10 2018-01-16 北京普源精电科技有限公司 A kind of method for displaying waveform and display device
CN103869118B (en) * 2012-12-13 2017-11-28 北京普源精电科技有限公司 A kind of method and oscillograph of the movement of oscillograph cursor
US9459290B2 (en) * 2013-04-30 2016-10-04 Keysight Technologies, Inc. Oscilloscope system and method for simultaneously displaying zoomed-in and zoomed-out waveforms
CN104181365B (en) * 2013-05-24 2019-01-29 苏州普源精电科技有限公司 A kind of measuring device with zooming display function
CN103913616A (en) * 2014-03-26 2014-07-09 深圳麦科信仪器有限公司 Method for adjusting vertical system and horizontal system of oscilloscope based on touch screen

Also Published As

Publication number Publication date
CN108318723A (en) 2018-07-24

Similar Documents

Publication Publication Date Title
CA2718441C (en) Apparatus to create, save and format text documents using gaze control and method associated based on the optimized positioning of cursor
EP2796973B1 (en) Method and apparatus for generating a three-dimensional user interface
WO2016145832A1 (en) Method of operating terminal and device utilizing same
US9665216B2 (en) Display control device, display control method and program
CN108553894B (en) Display control method and device, electronic equipment and storage medium
CN108317996B (en) Floor determining method, related equipment and system
CN107436700B (en) Data processing method and device
US9146667B2 (en) Electronic device, display system, and method of displaying a display screen of the electronic device
US10564836B2 (en) Dynamic moveable interface elements on a touch screen device
US20170131839A1 (en) A Method And Device For Controlling Touch Screen
CN103809843A (en) Method and device for adjusting brightness of display screen in browser
US20190156118A1 (en) Information processing apparatus, control method, and program
CN112989776A (en) Method and device for adjusting table columns, storage medium and terminal equipment
CN108318723B (en) Waveform scaling method, device and system
CN115531875A (en) Virtual scene zooming method and device, storage medium and electronic equipment
CN106293037B (en) Interaction method and electronic equipment
JP2013235052A5 (en) Display control apparatus, control method thereof, and program
KR101678541B1 (en) Menu showing method, apparatus, and device
CN109840044B (en) Screen control method, plug-in and device
CN112578974B (en) Wearable device screen capture control method based on distance measurement
WO2016015279A1 (en) Processing method for inputting information and mobile terminal
US9004027B2 (en) Cam-data creation device and cam-data creation program
CN112162631B (en) Interactive device, data processing method and medium
WO2023224033A1 (en) Information processing method, information processing device, and information processing program
US20160283048A1 (en) Data input system, data input method, data input program, and data input device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Kolding road high tech Zone of Suzhou City, Jiangsu Province, No. 8 215163

Applicant after: Puyuan Jingdian Technology Co.,Ltd.

Address before: Kolding road high tech Zone of Suzhou City, Jiangsu Province, No. 8 215163

Applicant before: RIGOL Technology Co.,Ltd.

Address after: Kolding road high tech Zone of Suzhou City, Jiangsu Province, No. 8 215163

Applicant after: RIGOL Technology Co.,Ltd.

Address before: Kolding road high tech Zone of Suzhou City, Jiangsu Province, No. 8 215163

Applicant before: SUZHOU RIGOL PRECISION ELECTRIC TECHNOLOGIES Co.,Ltd.

GR01 Patent grant
GR01 Patent grant