[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109471578B - Waveform local display method, device, equipment and storage medium - Google Patents

Waveform local display method, device, equipment and storage medium Download PDF

Info

Publication number
CN109471578B
CN109471578B CN201811289998.6A CN201811289998A CN109471578B CN 109471578 B CN109471578 B CN 109471578B CN 201811289998 A CN201811289998 A CN 201811289998A CN 109471578 B CN109471578 B CN 109471578B
Authority
CN
China
Prior art keywords
waveform
local
window
local waveform
waveform window
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
CN201811289998.6A
Other languages
Chinese (zh)
Other versions
CN109471578A (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.)
Guangzhou Zhiyuan Electronics Co Ltd
Original Assignee
Guangzhou Zhiyuan Electronics 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 Guangzhou Zhiyuan Electronics Co Ltd filed Critical Guangzhou Zhiyuan Electronics Co Ltd
Priority to CN201811289998.6A priority Critical patent/CN109471578B/en
Publication of CN109471578A publication Critical patent/CN109471578A/en
Application granted granted Critical
Publication of CN109471578B publication Critical patent/CN109471578B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention relates to the field of waveform display and discloses a waveform local display method, a device, equipment and a storage medium, wherein the method comprises the following steps: receiving a local waveform window pop-up instruction; displaying the local waveform window in the main waveform window according to the local waveform window pop-up instruction; the main waveform window displays a main waveform, and the local waveform window displays a local waveform of the main waveform; and scaling or moving the local waveform window, and scaling or moving the local waveform correspondingly. The local waveform display method is simple and convenient, the main waveform and the local waveform can be displayed in the waveform window at the same time, and the local waveform and the main waveform can be visually compared; and the local waveform window can be conveniently zoomed and moved without using a physical key for operation.

Description

Waveform local display method, device, equipment and storage medium
Technical Field
The present invention relates to the field of waveform display, and in particular, to a method, an apparatus, a device, and a storage medium for displaying a waveform locally.
Background
In the existing electronic measuring instruments (such as an oscilloscope and a recorder), when the data acquisition is stopped, a user wants to view the waveform details in the main waveform, the user needs to open a zoom window, adjust the zoom scale, the zoom position and the horizontal position by rotating a knob, and then view the waveform details in the zoom window.
Because the zoom window is opened, the zoom waveform is closed, the zoom waveform proportion and the horizontal position are adjusted through the physical keys, the physical keys are very easy to damage in the using process, and the service life of the electronic measuring instrument is greatly shortened. When the detail waveforms are checked, the operation steps are more, the process is complicated, the global main waveforms and the detail waveforms of the zooming window cannot be checked at the same time, and the details and the main body cannot be observed and compared visually.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, a device and a storage medium for displaying waveform locally.
A method of waveform local display, the method comprising: receiving a local waveform window pop-up instruction; displaying the local waveform window in the main waveform window according to the local waveform window pop-up instruction; the main waveform window displays a main waveform, and the local waveform window displays a local waveform of the main waveform; and scaling or moving the local waveform window, and scaling or moving the local waveform correspondingly.
Preferably, before the receiving the local waveform window pop-up instruction, the method further includes: and acquiring a main waveform stop acquisition signal. Since the processing and display of the local waveforms are after the main waveform is formally formed, only the main waveform is formed, that is, the main waveform acquisition signal stops acquiring.
Preferably, the receiving a local waveform window pop instruction includes:
and receiving a local waveform window pop-up instruction generated in a mode of pressing a local waveform of the main waveform by a single point length.
Preferably, the scaling or moving the local waveform window and the scaling or moving the local waveform accordingly includes:
receiving an operation signal for zooming or moving a local waveform window;
calculating a distance parameter of the movement of the central point of the local waveform window or a scaling parameter of the local waveform window according to the operation signal;
and displaying the local waveform window and the local waveform in the local waveform window according to the calculated distance parameter of the movement of the central point or the scaling parameter.
Preferably, after receiving the signal popping up the local waveform window, the method further includes:
judging whether a single-point touch signal exists in the non-local waveform window area;
and if the single-point touch signal is arranged in the non-local waveform window area, closing the local waveform window.
A waveform local display apparatus, comprising a receiving module, a display module, and a zoom movement module, wherein:
the receiving module is used for receiving a local waveform window pop-up instruction;
the display module is used for displaying the local waveform window in the main waveform window according to the local waveform window pop-up instruction received by the receiving module; the main waveform window displays a main waveform, and the local waveform window displays a local waveform of the main waveform;
the scaling moving module is used for scaling or moving the local waveform window and correspondingly scaling or moving the local waveform.
Preferably, the apparatus further comprises an obtaining module and a judging module, wherein:
the acquisition module is used for acquiring a main waveform stop acquisition signal, and after the acquisition module acquires the main waveform stop acquisition signal, the receiving module receives a local waveform window pop-up instruction;
the judging module is used for judging whether a single-point touch signal exists in the non-local waveform window area after the receiving unit receives the signal for popping up the local waveform window; and if the single-point touch signal is arranged in the non-local waveform window area, closing the local waveform window.
Preferably, the zoom movement module includes a receiving unit, a calculating unit, and a display unit, wherein:
the receiving unit is used for receiving an operation signal for zooming or moving the local waveform window;
the calculation unit is used for calculating a distance parameter of the movement of the central point of the local waveform window or a scaling parameter of the local waveform window according to the operation signal;
and the calculating unit is used for displaying the local waveform window and the local waveform in the local waveform window according to the calculated distance parameter of the movement of the central point or the scaling parameter.
A waveform partial display device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method when executing the computer program.
A storage medium storing a computer program which, when executed by a processor, implements the steps of the above-described method.
The invention has the beneficial effects that: according to the waveform local display method, the device, the equipment, the storage medium and the device, the local waveform display method is simple and convenient, the main waveform and the local waveform can be displayed in the waveform window at the same time, and the local waveform and the main waveform can be visually compared; and the local waveform window can be conveniently zoomed and moved without using a physical key for operation.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method for displaying a waveform portion;
FIG. 2 is a block diagram of a waveform partial display apparatus;
FIG. 3 is a flow chart of another method for partial display of waveforms;
FIG. 4 is a block diagram of another waveform partial display apparatus;
FIG. 5 is a partial flow diagram of a method for displaying a waveform portion;
FIG. 6 is a partial block diagram illustration of a waveform partial display apparatus;
FIG. 7 is a flow chart of another method for partial display of waveforms;
FIG. 8 is a schematic diagram of a waveform partial display apparatus system.
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 some, not all, embodiments of the present invention. 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.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, a method for displaying a waveform locally includes:
and S11, receiving a local waveform window pop-up instruction. After the main waveform is displayed, electronic measurement instruments (such as oscilloscopes, recorders and other detection instruments) need to process the local waveform of the main waveform. In the main waveform window, a user operates the main waveform window in an interactive mode, so that a local waveform window of the main waveform pops up, that is, an instruction for popping up the local waveform window is received. Specifically, the user triggers the local waveform window pop-up in a single-point long-press mode, that is, receives a local waveform window pop-up instruction generated in a manner that a single-point long-press is performed on a local waveform of the main waveform, and the time length of the long-press can be set according to actual conditions, for example: the long press time is 3 s.
S12, displaying the local waveform window in the main waveform window according to the local waveform window pop-up instruction; the main waveform window displays the main waveform, and the local waveform window displays the local waveform of the main waveform. After receiving the local waveform window pop-up, executing a local waveform window pop-up instruction; that is, the local waveform window is displayed simultaneously with the main waveform window. Wherein the local waveform is displayed in the local waveform window.
S13, the local waveform window is scaled or shifted, and the local waveform is scaled or shifted accordingly. After the local waveform window pops up, the local waveform window needs to be zoomed or moved, so that the main waveform and the local waveform can be displayed simultaneously, a user can compare and judge the main waveform and the local waveform very intuitively, and the local waveform is observed carefully. Scaling or moving of the local waveform window, the local waveform displayed in the local waveform window is correspondingly scaled or moved.
Specifically, referring to fig. 5 and S13, scaling or moving the local waveform window and correspondingly scaling or moving the local waveform window specifically include:
s131, receiving an operation signal for zooming or moving a local waveform window; the zoom or shift operation signal is a specific operation by the user, for example: when the user slides the local waveform window region horizontally, the local waveform window moving operation signal may be set to correspond to the user, and when the user slides the local waveform window region vertically, the local waveform window zooming operation signal may be set to correspond to the user, where the sliding is single-point sliding. When the user performs single-point vertical sliding or single-point horizontal sliding in the local waveform window region, the operation signal for zooming or moving the local waveform window is received.
S132, calculating a distance parameter of the movement of the central point of the local waveform window or a scaling parameter of the local waveform window according to the operation signal; after receiving an operation signal for zooming or moving the local waveform window, calculating a distance parameter for moving the center point of the local waveform window or a scaling parameter of the local waveform window according to a specific corresponding proportion according to a horizontal sliding distance or a vertical sliding distance. For example: the specific correspondence ratios are set to 1: 1, when horizontal sliding or vertical sliding distance is 1, the distance parameter that local waveform window central point moved is 1 or local waveform window scaling size parameter is 1, namely when horizontal sliding distance is 1, the distance that local waveform window central point moved is 1, when vertical sliding distance is 1, local waveform window scaling is 1, can set for, when up the direction perpendicularly, local waveform window reduces 1 time, when down the direction perpendicularly, local waveform window enlargies 1 time.
And S133, displaying the local waveform window and the local waveform in the local waveform window according to the calculated distance parameter of the movement of the central point or the scaling parameter. And modifying the original local waveform window according to the calculated distance parameter of the movement of the central point or the scaling parameter, namely covering the original local waveform window according to the calculated distance parameter of the movement of the central point or the scaling parameter, and displaying a new local waveform window and the local waveform displayed in the local waveform window.
Referring to fig. 2, a waveform local display device includes a receiving module 51, a display module 52 and a zoom moving module 53, wherein:
and the receiving module 51 is configured to receive a local waveform window pop-up instruction. After the main waveform is displayed, electronic measurement instruments (such as oscilloscopes, recorders and other detection instruments) need to process the local waveform of the main waveform. In the main waveform window, a user operates the main waveform window in an interactive mode, so that a local waveform window of the main waveform pops up, that is, an instruction for popping up the local waveform window is received. Specifically, the user triggers the local waveform window pop-up in a single-point long-press mode, that is, receives a local waveform window pop-up instruction generated in a manner that a single-point long-press is performed on a local waveform of the main waveform, and the time length of the long-press can be set according to actual conditions, for example: the long press time is 3 s.
The display module 52 is configured to display the local waveform window in the main waveform window according to the local waveform window pop-up instruction; the main waveform window displays the main waveform, and the local waveform window displays the local waveform of the main waveform. After receiving the local waveform window pop-up, executing a local waveform window pop-up instruction; that is, the local waveform window is displayed simultaneously with the main waveform window. Wherein the local waveform is displayed in the local waveform window.
And a scaling and moving module 53, configured to scale or move the local waveform window, and scale or move the local waveform accordingly. After the local waveform window pops up, the local waveform window needs to be zoomed or moved, so that the main waveform and the local waveform can be displayed simultaneously, a user can compare and judge the main waveform and the local waveform very intuitively, and the local waveform is observed carefully. Scaling or moving of the local waveform window, the local waveform displayed in the local waveform window is correspondingly scaled or moved.
Specifically, referring to fig. 6, the scaling module 53 specifically includes a receiving unit 531, a calculating unit 532, and a receiving unit 533, where:
a receiving unit 531, configured to receive an operation signal for scaling or moving a local waveform window; the zoom or shift operation signal is a specific operation by the user, for example: when the user slides the local waveform window region horizontally, the local waveform window moving operation signal may be set to correspond to the user, and when the user slides the local waveform window region vertically, the local waveform window zooming operation signal may be set to correspond to the user, where the sliding is single-point sliding. When the user performs single-point vertical sliding or single-point horizontal sliding in the local waveform window region, the operation signal for zooming or moving the local waveform window is received.
A calculating unit 532, configured to calculate a distance parameter of the movement of the central point of the local waveform window or a scaling parameter of the local waveform window according to the operation signal; after receiving an operation signal for zooming or moving the local waveform window, calculating a distance parameter for moving the center point of the local waveform window or a scaling parameter of the local waveform window according to a specific corresponding proportion according to a horizontal sliding distance or a vertical sliding distance. For example: the specific correspondence ratios are set to 1: 1, when horizontal sliding or vertical sliding distance is 1, the distance parameter that local waveform window central point moved is 1 or local waveform window scaling size parameter is 1, namely when horizontal sliding distance is 1, the distance that local waveform window central point moved is 1, when vertical sliding distance is 1, local waveform window scaling is 1, can set for, when up the direction perpendicularly, local waveform window reduces 1 time, when down the direction perpendicularly, local waveform window enlargies 1 time.
A receiving unit 533, configured to display the local waveform window and the local waveform in the local waveform window according to the calculated distance parameter of the center point movement or the scaling parameter. And modifying the original local waveform window according to the calculated distance parameter of the movement of the central point or the scaling parameter, namely covering the original local waveform window according to the calculated distance parameter of the movement of the central point or the scaling parameter, and displaying a new local waveform window and the local waveform displayed in the local waveform window.
Referring to fig. 3, another embodiment of a method for displaying waveform portions includes:
and S21, acquiring the main waveform to stop acquiring signals, and displaying the main waveform in a window by an electronic measuring instrument (such as an oscilloscope, a recorder and other detecting instruments) after waveform data is acquired in the process of acquiring waveform data, wherein the local waveform of the main waveform can be further processed and displayed. And once the main waveform data is acquired, triggering the main waveform to stop acquiring signals.
And S22, receiving a local waveform window pop-up instruction. After the main waveform is displayed, electronic measurement instruments (such as oscilloscopes, recorders and other detection instruments) need to process the local waveform of the main waveform. In the main waveform window, a user operates the main waveform window in an interactive mode, so that a local waveform window of the main waveform pops up, that is, an instruction for popping up the local waveform window is received. Specifically, the user triggers the local waveform window pop-up in a single-point long-press mode, that is, receives a local waveform window pop-up instruction generated in a manner that a single-point long-press is performed on a local waveform of the main waveform, and the time length of the long-press can be set according to actual conditions, for example: the long press time is 3 s; and the single-point touch is to calculate the index point of the touch point waveform according to the position of the touch point in the relative waveform window. And modifying the center point of the zoom range in the local waveform zoom parameter. S23, displaying the local waveform window in the main waveform window according to the local waveform window pop-up instruction; the main waveform window displays the main waveform, and the local waveform window displays the local waveform of the main waveform. After receiving the local waveform window pop-up, executing a local waveform window pop-up instruction; that is, the local waveform window is displayed simultaneously with the main waveform window. Wherein the local waveform is displayed in the local waveform window.
S24, the local waveform window is scaled or shifted, and the local waveform is scaled or shifted accordingly. After the local waveform window pops up, the local waveform window needs to be zoomed or moved, so that the main waveform and the local waveform can be displayed simultaneously, a user can compare and judge the main waveform and the local waveform very intuitively, and the local waveform is observed carefully. Scaling or moving of the local waveform window, the local waveform displayed in the local waveform window is correspondingly scaled or moved.
Specifically, the S24 scales or moves the local waveform window, and correspondingly scales or moves the local waveform, specifically including:
receiving an operation signal for zooming or moving a local waveform window; the zoom or shift operation signal is a specific operation by the user, for example: when the user slides the local waveform window region horizontally, the local waveform window moving operation signal may be set to correspond to the user, and when the user slides the local waveform window region vertically, the local waveform window zooming operation signal may be set to correspond to the user, where the sliding is single-point sliding. When the user performs single-point vertical sliding or single-point horizontal sliding in the local waveform window region, the operation signal for zooming or moving the local waveform window is received.
Calculating a distance parameter of the movement of the central point of the local waveform window or a scaling parameter of the local waveform window according to the operation signal; after receiving an operation signal for zooming or moving the local waveform window, calculating a distance parameter for moving the center point of the local waveform window or a scaling parameter of the local waveform window according to a specific corresponding proportion according to a horizontal sliding distance or a vertical sliding distance. For example: the specific correspondence ratios are set to 1: 1, when horizontal sliding or vertical sliding distance is 1, the distance parameter that local waveform window central point moved is 1 or local waveform window scaling size parameter is 1, namely when horizontal sliding distance is 1, the distance that local waveform window central point moved is 1, when vertical sliding distance is 1, local waveform window scaling is 1, can set for, when up the direction perpendicularly, local waveform window reduces 1 time, when down the direction perpendicularly, local waveform window enlargies 1 time.
And displaying the local waveform window and the local waveform in the local waveform window according to the calculated distance parameter of the movement of the central point or the scaling parameter. And modifying the original local waveform window according to the calculated distance parameter of the movement of the central point or the scaling parameter, namely covering the original local waveform window according to the calculated distance parameter of the movement of the central point or the scaling parameter, and displaying a new local waveform window and the local waveform displayed in the local waveform window.
And S24, judging whether a single-point touch signal exists in the non-local waveform window area, and if so, closing the local waveform window. And judging whether a single-point touch signal is input or not at the non-local waveform window area position of the main waveform window, and closing the local waveform window to restore the original single main waveform window when the single-point touch signal is input. If the input is not the single-point touch signal, no step operation is needed, and the interface is kept.
Referring to fig. 4, another embodiment of a waveform local display apparatus includes an obtaining module 61, a receiving module 62, a displaying module 63, a zooming module 64, and a determining module 65, wherein:
the obtaining module 61 is configured to obtain a main waveform stop signal, and during a waveform data collecting process of an electronic measurement apparatus (such as an oscilloscope, a recorder, and other detection apparatuses), when the waveform data is collected, the main waveform is displayed in a window, and then a local waveform of the main waveform may be further processed and displayed. And once the main waveform data is acquired, triggering the main waveform to stop acquiring signals.
And a receiving module 62, configured to receive a local waveform window pop instruction. After the main waveform is displayed, electronic measurement instruments (such as oscilloscopes, recorders and other detection instruments) need to process the local waveform of the main waveform. In the main waveform window, a user operates the main waveform window in an interactive mode, so that a local waveform window of the main waveform pops up, that is, an instruction for popping up the local waveform window is received. Specifically, the user triggers the local waveform window pop-up in a single-point long-press mode, that is, receives a local waveform window pop-up instruction generated in a manner that a single-point long-press is performed on a local waveform of the main waveform, and the time length of the long-press can be set according to actual conditions, for example: the long press time is 3 s.
The display module 63 is configured to display the local waveform window in the main waveform window according to the local waveform window pop-up instruction; the main waveform window displays the main waveform, and the local waveform window displays the local waveform of the main waveform. After receiving the local waveform window pop-up, executing a local waveform window pop-up instruction; that is, the local waveform window is displayed simultaneously with the main waveform window. Wherein the local waveform is displayed in the local waveform window.
And a scaling and moving module 64, configured to scale or move the local waveform window and scale or move the local waveform accordingly. After the local waveform window pops up, the local waveform window needs to be zoomed or moved, so that the main waveform and the local waveform can be displayed simultaneously, a user can compare and judge the main waveform and the local waveform very intuitively, and the local waveform is observed carefully. Scaling or moving of the local waveform window, the local waveform displayed in the local waveform window is correspondingly scaled or moved.
The determining module 65 is configured to determine whether there is a single-point touch signal in the non-local waveform window area, and if so, close the local waveform window. And judging whether a single-point touch signal is input or not at the non-local waveform window area position of the main waveform window, and closing the local waveform window to restore the original single main waveform window when the single-point touch signal is input. If the input is not the single-point touch signal, no step operation is needed, and the interface is kept.
Referring to fig. 7, another method for displaying partial waveforms includes:
s31, receiving a waveform acquisition stopping instruction; in the process of acquiring waveform data, when the waveform data is acquired, the main waveform is displayed in a window, and then the local waveform of the main waveform can be further processed and displayed by an electronic measuring instrument (such as an oscilloscope, a recorder and other detecting instruments). And once the main waveform data is acquired, triggering the main waveform to stop acquiring signals.
S32, judging whether the main waveform window has a single-point long press; in the main waveform window, whether or not a single-point long press signal is input is determined, and when a single-point long press signal is input, step S33 is executed, and if no single-point long press signal is input, the state of the main waveform window is maintained.
S33, sending out a local waveform window pop-up instruction of the touch position; when a single-point long press signal is input, a pop-up instruction of the main waveform single-point long press position local waveform window is sent out, so that the local waveform window pops up to be displayed.
S34, judging whether the local waveform window has horizontal sliding; and after the local waveform window pops up in the main waveform window, judging whether an operation signal sliding horizontally is input in the local waveform window area, if so, executing the step S35, and if not, continuously keeping the original horizontal state of the local waveform window.
S35, calculating the moving distance of the central point of the zooming range in the local waveform zooming parameters according to the horizontal sliding distance; when an operation signal sliding horizontally is input, the moving distance of the central point of the local waveform window in the local waveform parameters is calculated according to the horizontal sliding distance, namely the strength of the operation signal sliding horizontally.
S36, judging whether the local waveform window has vertical sliding; after the local waveform window pops up from the main waveform window, it is also determined whether the local waveform window has vertical sliding, that is, it is determined whether there is a vertically sliding operation signal input in the local waveform window region, if there is a vertically sliding operation signal input, the step of S37 is executed, and if there is no vertically sliding operation signal input, the original state size of the local waveform window is continuously maintained.
S37, calculating the scaling in the local waveform scaling parameters according to the vertical sliding distance; when an operation signal of vertical sliding is input, the scaling scale of the local waveform scaling parameter is calculated according to the distance and the direction of the vertical sliding, namely the strength of the operation signal of the vertical sliding.
S38, judging whether a single-point touch exists in the non-local waveform window; after the local waveform window pops up in the main waveform window, it can also be determined whether there is a single-point touch operation in the non-local waveform window area, that is, it is determined whether there is a single-point touch signal input in the non-local waveform window area, then step S39 is executed, and if there is no single-point touch signal input in the non-local waveform window area, the original state of the local waveform window is maintained.
S39, sending a local waveform window closing instruction; when a single-point signal is input, a local waveform closing instruction is sent out, the local waveform window is closed, and the single main waveform window is recovered.
S40, sending the calculated moving distance parameter and/or scaling parameter of the central point of the scaling range to the FPGA/DSP; the FPGA/DSP collects and samples the data to form waveform data, and the waveform data is stored in the shared memory.
S41, acquiring shared and stored waveform data sampled by FPGA/DSP processing; and obtaining the waveform data from the shared memory.
S42, sending the acquired waveform data to a display interface and displaying; and the display interface displays the waveform of the processed waveform data according to the waveform data to form a new local waveform window and a local waveform displayed in the new local waveform window.
FIG. 8 is a schematic diagram of a waveform partial display apparatus system. The device system comprises a software interface 71, a main process 72, a touch interaction module 73, a touch screen 74, a data interaction module 75, an FPGA/DSP76 and a shared memory 77, wherein: the touch interaction module 3 is configured to detect a user touch action on the touch screen 4, receive an operation signal of the user, and display an operation result, transmit the received touch action signal to the main process 72, and the main process 72 controls and calculates the operation signal; meanwhile, the main process 72 is also connected with the software interface 71, and some calculation methods, threshold values and mapping relations of the main process can be modified through the software interface; the main process 72 interacts the calculated waveform data or parameters to the shared memory 77 through the data interaction module 75, and simultaneously interacts to the FPGA/DSP, and the FPGA/DSP also obtains the associated waveform data or parameters in the shared memory, and the FPGA/DSP collects and samples the data or parameters and puts the sampled waveform data or parameters into the shared memory 8; the main process 72 obtains the processed data in the shared memory 77 through the data interaction module 75, and displays the processed data through the touch screen 74, and the main process and the FPGA/DSP are completed together with assistance, so that the waveform can be displayed quickly.
A waveform partial display device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, the processor performing the steps of the above method.
A storage medium storing a computer program which, when executed by a processor, performs the steps of the above method.
The above-described embodiments are merely illustrative, and the embodiments of the present invention may be sequentially adjusted, combined, and deleted according to actual needs.
The embodiments describe the present invention in detail, and the specific embodiments are applied to explain the structural principle and the implementation of the present invention, and the above embodiments are only used to help understand the method and the core idea of the present 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 (6)

1. A method for locally displaying a waveform, the method comprising:
receiving a local waveform window pop-up instruction;
displaying the local waveform window in the main waveform window according to the local waveform window pop-up instruction; the main waveform window displays a main waveform, and the local waveform window displays a local waveform of the main waveform;
scaling or moving the local waveform window and correspondingly scaling or moving the local waveform,
wherein, the scaling or moving the local waveform window and the corresponding scaling or moving the local waveform comprise:
receiving an operation signal for zooming or moving a local waveform window;
calculating a distance parameter of the movement of the central point of the local waveform window or a scaling parameter of the local waveform window according to the operation signal;
displaying a local waveform window and a local waveform in the local waveform window according to the calculated distance parameter of the movement of the central point or the scaling parameter;
wherein, the displaying the local waveform window and the local waveform in the local waveform window according to the calculated distance parameter of the central point movement or the scaling parameter comprises:
sending the calculated moving distance parameter and/or scaling parameter of the center point of the scaling range to an FPGA/DSP (field programmable gate array/digital signal processor), wherein the FPGA/DSP is used for collecting and sampling data to form waveform data and storing the waveform data into a shared memory;
acquiring the waveform data from a shared memory, displaying the waveform data, and forming a new local waveform window and a local waveform displayed in the new local waveform window;
after receiving the signal popping up the local waveform window, the method further comprises:
judging whether a single-point touch signal exists in the non-local waveform window area;
if the non-local waveform window area is provided with the single-point touch signal, closing the local waveform window;
the receiving of the local waveform window pop-up instruction includes:
receiving a local waveform window pop-up instruction generated in a mode of pressing the local waveform of the main waveform by a single point, wherein the pressing time is 3 s; and the single-point touch is to calculate the index point of the touch point waveform according to the position of the touch point in the relative waveform window, wherein the index point is the left point of the screen plus (the X coordinate of the click position-the left coordinate of the screen)/the length of the full screen plus the number of the full screen, and the central point of the zoom range in the local waveform zoom parameter is modified.
2. The method according to claim 1, wherein before receiving the local waveform window pop-up command, the method further comprises: and acquiring a main waveform stop acquisition signal.
3. A waveform local display apparatus, comprising a receiving module, a display module, and a zoom movement module, wherein:
the receiving module is used for receiving a local waveform window pop-up instruction;
the display module is used for displaying the local waveform window in the main waveform window according to the local waveform window pop-up instruction received by the receiving module; the main waveform window displays a main waveform, and the local waveform window displays a local waveform of the main waveform;
the zooming moving module is used for zooming or moving the local waveform window and correspondingly zooming or moving the local waveform;
the zooming moving module comprises a receiving unit, a calculating unit and a display unit, wherein:
the receiving unit is used for receiving an operation signal for zooming or moving the local waveform window;
the calculation unit is used for calculating a distance parameter of the movement of the central point of the local waveform window or a scaling parameter of the local waveform window according to the operation signal;
the calculation unit is used for displaying a local waveform window and a local waveform in the local waveform window according to the calculated distance parameter of the movement of the central point or the scaling parameter;
the FPGA/DSP is used for collecting and sampling data according to the calculated distance parameter of the movement of the central point or the scaling parameter to form waveform data, and storing the waveform data into the shared memory;
the display module is further configured to obtain the waveform data from the shared memory, display the waveform data, and form a new local waveform window and a local waveform displayed in the new local waveform window;
the device further comprises:
the judging module is used for judging whether a single-point touch signal exists in the non-local waveform window area; if the non-local waveform window area is provided with the single-point touch signal, closing the local waveform window;
the receiving of the local waveform window pop-up instruction includes:
receiving a local waveform window pop-up instruction generated in a mode of pressing the local waveform of the main waveform by a single point, wherein the pressing time is 3 s; and the single-point touch is to calculate the index point of the touch point waveform according to the position of the touch point in the relative waveform window, wherein the index point is the left point of the screen plus (the X coordinate of the click position-the left coordinate of the screen)/the length of the full screen plus the number of the full screen, and the central point of the zoom range in the local waveform zoom parameter is modified.
4. The apparatus according to claim 3, further comprising an obtaining module and a determining module, wherein:
the acquisition module is used for acquiring a main waveform stop acquisition signal, and after the acquisition module acquires the main waveform stop acquisition signal, the receiving module receives a local waveform window pop-up instruction;
the judging module is used for judging whether a single-point touch signal exists in the non-local waveform window area after the receiving unit receives the signal for popping up the local waveform window; and if the single-point touch signal is arranged in the non-local waveform window area, closing the local waveform window.
5. A waveform partial display device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 2 when executing the computer program.
6. A storage medium storing a computer program, characterized in that the computer program realizes the steps of the method according to any one of claims 1 to 2 when executed by a processor.
CN201811289998.6A 2018-10-31 2018-10-31 Waveform local display method, device, equipment and storage medium Active CN109471578B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811289998.6A CN109471578B (en) 2018-10-31 2018-10-31 Waveform local display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811289998.6A CN109471578B (en) 2018-10-31 2018-10-31 Waveform local display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109471578A CN109471578A (en) 2019-03-15
CN109471578B true CN109471578B (en) 2021-04-30

Family

ID=65666424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811289998.6A Active CN109471578B (en) 2018-10-31 2018-10-31 Waveform local display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109471578B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103809808A (en) * 2014-01-25 2014-05-21 深圳麦科信仪器有限公司 Method and device for horizontal movement of waveform based on touch screen
CN106681592A (en) * 2016-12-30 2017-05-17 北京小米移动软件有限公司 Electronic equipment and device and method for display switching on basis of electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620242B (en) * 2009-07-21 2011-01-26 深圳市鼎阳科技有限公司 Method for partially enlarging oscilloscope window
CN106771455A (en) * 2016-12-29 2017-05-31 福建利利普光电科技有限公司 It is a kind of that the method that waveform details is amplified is realized on touch oscillograph

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103809808A (en) * 2014-01-25 2014-05-21 深圳麦科信仪器有限公司 Method and device for horizontal movement of waveform based on touch screen
CN106681592A (en) * 2016-12-30 2017-05-17 北京小米移动软件有限公司 Electronic equipment and device and method for display switching on basis of electronic equipment

Also Published As

Publication number Publication date
CN109471578A (en) 2019-03-15

Similar Documents

Publication Publication Date Title
JP6083922B2 (en) Waveform display apparatus and method
US11280809B2 (en) Method and apparatus for processing oscilloscope signal and oscilloscope
US20110246876A1 (en) Precise measurement on a mobile computing device
JPH0247561A (en) Analysis on frequency spectrum
CN101131404B (en) Digital oscillograph and its waveshape displaying method
CN101644726B (en) Waveform observing apparatus and waveform observing system
JPH08278222A (en) Optical time-domain reflectometer and waveform displaying method
JP2012021903A (en) Waveform measurement device
KR20110025611A (en) Test and measurement instrument and method for providing post-acquisition trigger control and presentation
US20070027675A1 (en) Spectrum analyzer control in an oscilloscope
US10061466B2 (en) Method for automatically adjusting the magnification and offset of a display to view a selected feature
CN109471578B (en) Waveform local display method, device, equipment and storage medium
US20040267470A1 (en) Systems and methods for performing multi-source measurements
US20200342308A1 (en) Method and apparatus providing a trained signal classification neural network
CN107843767B (en) Signal processing method and system for spectrum analysis
CN109144387B (en) Cursor touch method, cursor touch device and digital oscilloscope
WO2019134685A1 (en) Oscilloscope data processing method and device, and oscilloscope
CN206930697U (en) Electrical signal detection device
JP2005512094A (en) Context-sensitive toolbar
US7010442B2 (en) Systems and methods for operating a measurement and testing instrument
US20170285902A1 (en) Modifying Settings of an Electronic Test or Measurement Instrument
CN111710347B (en) Audio data analysis method, electronic device and storage medium
US20100036631A1 (en) Waveform Observing Apparatus
CN116430117A (en) Automatic determination of spectrum and spectrogram attributes in test and measurement instruments
CN108254607A (en) Digital oscilloscope method for displaying waveform and 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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 510000 room 306, 3rd floor, 43 Sicheng Road, software park, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: GUANGZHOU ZHIYUAN ELECTRONICS Co.,Ltd.

Address before: 510000 room 517, 1023 Gaopu Road, Tianhe Software Park, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU ZHIYUAN ELECTRONICS Co.,Ltd.