A kind of the waveform searching method and digital oscilloscope of digital oscilloscope
Technical field
The application belongs to waveform searching technical field, more particularly to the waveform searching method and number of a kind of digital oscilloscope
Oscillograph.
Background technology
Oscillograph is a kind of electronic testing instrument that purposes is very extensive, can be by electrical signal in a manner of graphical interfaces
It shows, with the development of semiconductor technology and integrated circuit technique, integrates the functional form number oscillography of various test conditions
Device becomes the technology trend of measuring instrument industry.
In the prior art, digital oscilloscope waveform searching method realizes waveform searching, root using hardware collaboration processing unit
The simulation of signal conditioning circuit and signal transformation circuit Jing Guo digital oscilloscope is believed according to the waveform correlation parameter of user setting
Number 1 tunnel or 2 railway digital signals are converted to, which are input to waveform searching module, waveform searching module constantly detects defeated
Whether the digital signal entered meets the characteristic point of user setting, and qualified characteristic point position is stored in waveform searching data
In memory, the address in waveform searching data storage is sequentially output by address generator, microprocessor is sent by bus
Device, by microprocessor display, that is, corresponding event location is found according to address, then by event (the i.e. qualified wave
Shape) it is shown on screen.
Invention content
There are following defects for the scheme mentioned in background technology:It is that user is directly searched from input waveform in the prior art
The characteristic point of setting may be only available for the situation that input waveform data volume is small, sample rate is low, high-speed sampling big for data volume
The case where the characteristic point quantity that searches out may be excessively huge, and not need to show so many characteristic point on screen,
There are the defects of the wasting of resources.
In order to solve the above-mentioned technical problem, the application provides a kind of waveform searching method of digital oscilloscope, including:
Receive the search information of user configuration;
The extraction section Wave data from the Wave data after sampling does interpolation to the portion waveshape data and handles and waited for
Display waveform data;
It treats display waveform data and does conversion process and obtain logical waveform data;
Search meets the characteristic point of search information from logical waveform data, and the address of characteristic point is stored in address storage
In device.
Further, described search information includes:Search condition, search passage and/or searching threshold.
Further, the waveform searching method of digital oscilloscope further includes:
The first duplicate instructions for receiving user setting copy as described search condition according to first duplicate instructions tactile
Clockwork spring part;
Or the second duplicate instructions of user setting are received, trigger condition copied as according to second duplicate instructions described
Search condition.
Further, the waveform searching method of digital oscilloscope further includes:
Trigger signal is received, reads the wave being displayed on the screen from described address memory according to the address of trigger signal
The address of the corresponding characteristic point of shape;
According to the offset address of the read characteristic point of the address calculation of the address of read characteristic point and trigger signal;
Characteristic point is shown on the screen according to the offset address of read characteristic point.
Further, the waveform searching method of digital oscilloscope further includes:
The first idsplay order for receiving user setting shows search time stamp according to first idsplay order;
Wherein, described search timestamp include feature point identification, characteristic point with respect to trigger position leading time or delay
Time.
Further, the waveform searching method of digital oscilloscope further includes:
The second idsplay order for receiving user setting shows navigation menu, wherein described according to second idsplay order
Navigation menu includes knob or promotion button;
It receives the rotation instruction of knob or pushes the promotion instruction of button, instruction navigation is instructed or pushed according to the rotation
To specific features point, and between specific features point is displayed on the screen.
The application also provides a kind of digital oscilloscope with waveform searching function, including:Processing module, signal input mould
Block, interpolation module, digital comparator, search module and addressed memory;
The processing module is used to receive the search information of user configuration;
The signal input module is used to provide the Wave data after sampling;
The interpolation module is used for the extraction section Wave data from the Wave data after sampling, to the portion waveshape data
Interpolation is done to handle to obtain Wave data to be shown;
The digital comparator does conversion process for treating display waveform data and obtains logical waveform data;
Described search module searches for the ground for meeting the characteristic point of search information and determining characteristic point from logical waveform data
Characteristic point is stored in address in described address memory by location.
Further, described search information includes:Search condition, search passage and/or searching threshold.
Further, the processing module is additionally operable to receive the first duplicate instructions of user setting, multiple according to described first
Described search condition is copied as trigger condition by system instruction;
Or the second duplicate instructions of user setting are received, trigger condition copied as according to second duplicate instructions described
Search condition.
Further, the processing module is additionally operable to receive trigger signal, according to the address of trigger signal from described address
The address of the corresponding characteristic point of the waveform being displayed on the screen is read in memory;According to the address of read characteristic point and triggering
The offset address of the read characteristic point of address calculation of signal;Spy is shown on the screen according to the offset address of read characteristic point
Sign point.
Further, the processing module is additionally operable to receive the first idsplay order of user setting, aobvious according to described first
Show that instruction shows search time stamp;
Wherein, described search timestamp include feature point identification, characteristic point with respect to trigger position leading time or delay
Time.
Further, the processing module is additionally operable to receive the second idsplay order of user setting, aobvious according to described second
Show that instruction shows navigation menu, wherein the navigation menu includes knob or promotion button;
It receives the rotation instruction of knob or pushes the promotion instruction of button, instruction navigation is instructed or pushed according to the rotation
To specific features point, and between specific features point is displayed on the screen.
Further, the signal input module at least there are two, for providing the Wave data after multi-channel sampling.
In the application, the extraction section Wave data from the Wave data after sampling does interpolation to the portion waveshape data
Processing obtains Wave data to be shown, display waveform data is treated and do conversion process obtaining logical waveform data, from logical waveform
Search meets the characteristic point of search information in data, can improve the search speed of characteristic point, ensures that stablizing for characteristic point uses,
Make all characteristic points that can all be shown, will not waste of resource, while can alleviate again characteristic point storage space anxiety problem.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is the waveform searching method flow diagram of the digital oscilloscope of the embodiment of the present application;
Fig. 2 is the waveform searching method flow diagram of the digital oscilloscope of another embodiment of the application;
Fig. 3 is the search time of the embodiment of the present application to stab display interface schematic diagram;
Fig. 4 is the digital oscilloscope schematic diagram with waveform searching function of the embodiment of the present application;
Fig. 5 is the digital oscilloscope schematic diagram with waveform searching function of the embodiment of the present application.
Specific implementation mode
In order to which the technical characterstic and effect that make the present invention are more obvious, technical scheme of the present invention is done below in conjunction with the accompanying drawings
It further illustrates, the specific example that the present invention also can have other different is illustrated or implements, any those skilled in the art
The equivalents done within the scope of the claims belong to the protection category of the present invention.
In the description of this specification, reference term " one embodiment ", " specific embodiment ", " some implementations
Example ", " such as ", the description of " example ", " specific example " or " some examples " etc. mean it is described in conjunction with this embodiment or example
Particular features, structures, materials, or characteristics are contained at least one embodiment or example of the application.In the present specification,
Schematic expression of the above terms may not refer to the same embodiment or example.Moreover, the specific features of description, knot
Structure, material or feature can be combined in any suitable manner in any one or more of the embodiments or examples.Each embodiment
Involved in the step of sequence be not construed as limiting for schematically illustrating the implementation of the application, sequence of steps therein, can be as needed
It appropriately adjusts.
As shown in FIG. 1, FIG. 1 is the waveform searching method flow diagrams of the embodiment of the present application digital oscilloscope.The present embodiment removes
The digital oscilloscope that can adapt to common sample rate, applies also for the digital oscilloscope of high sampling rate, can improve characteristic point
Search speed, reduce search time, ensure characteristic point stablize use, make all characteristic points that can all be shown, will not waste
Resource.Specifically, including:
Step 101:Receive the search information of user configuration.
When implementation, the search information of user configuration is received by human-computer interaction interface by processing module.
Search information includes search condition, search passage and/or searching threshold, can be according to user demand sets itself.In detail
Thin says, search condition includes but not limited to edge pulse, pulsewidth, lifting time, owes width pulse, foundation/retention time, time-out
Detection, slope detection, URAT, IIC, SPI, CAN etc.;Search passage is related with input channel number, such as search passage includes
CH1、CH2、CH3、CH4;Searching threshold is a voltage value, the Wave data to be shown only ability when voltage is more than the searching threshold
Search can be executed, will not be searched existing characteristics point when less than the searching threshold.
Step 102:The extraction section Wave data from the Wave data after sampling does at interpolation the portion waveshape data
Reason obtains Wave data to be shown.
When implementation, continuous part Wave data can be extracted according to the searching threshold of user configuration, or take out using other modes
Portion waveshape data, the application are taken to be not construed as limiting this.If in the search information of user configuration, searching threshold is sky, that is, is used
Family does not set searching threshold, then direct search meets the characteristic point for searching for information from the Wave data after sampling.Interpolation processing
It is determined according to the when base shelves of user's selection.
For example, the Wave data after sampling there are 1,000,000,100,000 are therefrom extracted, which is done at interpolation
Reason obtains 200,000 data (data amount check that screen can be shown is up to 200,000), and according to 200,000 interpolations, treated
Data can obtain 200,000 logical waveform data, execute function of search to 200,000 logical waveform data, can ensure to search
Rope to characteristic point can show on the screen.
Extraction section Wave data can reduce search time, make all characteristic points that can all be shown, will not waste of resource.
Doing interpolation processing to the portion waveshape data can ensure that the waveform being displayed on the screen is smooth, undistorted after amplification, convenient for using
It observes at family.Linear interpolation or sinusoidal interpolation etc. can be used in interpolation processing described herein, and the application handles interpolation specific
Algorithm does not limit.
Step 103:It treats display waveform data and does conversion process and obtain logical waveform data;
When it is implemented, execute above-mentioned steps 103 by digital comparator, digital comparator is by Wave data to be shown and the
One threshold value and second threshold compare, and second threshold is more than first threshold, if the waveform point value in waveform to be shown is more than the second threshold
Value, then data comparator output is 1, if waveform point value is less than second threshold, digital comparator output is 0.
Step 104:Search meets the characteristic point of search information from logical waveform data, and the address of characteristic point is stored in
In addressed memory.Specifically, the address of characteristic point is temporal information, and the address of characteristic point is with the side of loop covering storage
Formula is stored in addressed memory.
In one specific embodiment, such as search condition is set as rising edge search.Start to search after starting function of search
Module sends logical waveform data, if first data, second data, third data ... ... are sent when the 4000th
A saltus step (meeting search condition) from 0 to 1 is detected when point, at this point, by the position namely the 4000th point
Position stores.
In some embodiments, as shown in Fig. 2, the waveform searching method of digital oscilloscope further includes:
Step 105:Trigger signal is received, which is the currently active trigger signal, according to the address of trigger signal
The address of the corresponding characteristic point of the waveform being displayed on the screen is read from described address memory.The address of trigger signal is tactile
Address of the hair point on waveform.
Step 106:According to the offset of the read characteristic point of the address calculation of the address of read characteristic point and trigger signal
Address.
Specifically, the offset address of this feature point is the offset address based on trigger position, by the ground of reading characteristic point
The address that location subtracts trigger signal obtains the offset address based on trigger position.
Step 107:Characteristic point is shown on the screen according to the offset address of read characteristic point.
When it is implemented, between the trigger position of waveform is displayed on the screen.The display of waveform and the display of characteristic point are two
A figure layer only need to be by two map overlays, after superposition from the user's point of view when user needs to show characteristic point, and characteristic point is to fall three
The form at angle is shown on waveform, or for mark on a horizontal line, which is located at display waveform in the form of inverted triangle
Above or below.
Because Trigger Function has the characteristics that high consistency with function of search, under certain specific environment, need to search
Rope condition is used for triggering, and therefore, in some embodiments, the waveform searching method of digital oscilloscope further includes:User is received to set
Described search condition is copied as trigger condition by the first duplicate instructions set according to first duplicate instructions;Or receive user
Trigger condition is copied as described search condition by the second duplicate instructions being arranged according to second duplicate instructions.
First duplicate instructions and the second duplicate instructions can be set by user by human-computer interaction interface.Search condition and triggering
Quick copy between condition can make user skip cumbersome manual operation, to improve the working efficiency of user.
In some embodiments, once characteristic point increases in order to prevent, only with label come the side of the position of identification characteristics point
Formula can lead to the problem of the use of user big inconvenience and puzzlement, and the waveform searching method of digital oscilloscope further includes:
The first idsplay order for receiving user setting shows search time stamp according to first idsplay order.
Wherein, search time stamp includes feature point identification (which characteristic point), and characteristic point is advanced with respect to trigger position
Time or the time of delaying.In addition, search time stamp may also include the description information of characteristic point, description information is, for example, search condition
Deng the application is not especially limited this.
When implementation, search time stamp is the table of a textual form, as shown in figure 3, listing each spy in the table
Levy the information of point, such as the 500th characteristic point, search condition is rising edge search, and this feature point is on trigger position left side 1 second etc.
Information.
The mode of Presentation Time Stamp can be convenient for user's observation and processing feature point, improve user experience.
In some embodiments, specific features point, the waveform searching method of digital oscilloscope are navigate to for the ease of user
Further include:
The second idsplay order for receiving user setting shows navigation menu, wherein navigation according to second idsplay order
Menu includes knob or promotion button;
It receives the rotation instruction of knob or pushes the promotion instruction of button, instruction navigation is instructed or pushed according to the rotation
To specific features point, and between specific features point is displayed on the screen.When implementation, the specific features point that navigates to it is solid fall three
The form at angle shows that remaining characteristic point is shown in the form of hollow inverted triangle.
As shown in figure 4, Fig. 4 is the digital oscilloscope with waveform searching function of the embodiment of the present application.Specifically, the number
Word oscillograph includes:Processing module 407, signal input module 401, interpolation module 402, digital comparator 403, search module
404 and addressed memory 405.
Processing module 407 is used to receive the search information of user configuration.When it is implemented, search information can be passed through by user
Human-computer interaction interface configures, and the information configured is sent to processing module 407, is sent by bus GTP by processing module 407
Configuration information is to search module 404.
Signal input module 401 is used to provide the Wave data after sampling.When implementation, as shown in figure 5, the signal inputs mould
Block 401 includes input channel and sampling unit, and sampling unit is used to carry out sampling processing to the waveform that input channel inputs.
Interpolation module 402 is used for the extraction section Wave data from the Wave data after sampling, to the portion waveshape data
Interpolation is done to handle to obtain Wave data to be shown.
Further include Wave data memory module 406, for storing Wave data to be shown when implementation.It is shown on screen
The data volume in one piece of region of waveform corresponding data memory module, the region generally can be more than the pixel number on screen, so
The characteristic point in the region can be just shown on screen only after overcompression.As shown in figure 5, the Wave data after interpolation is through overvoltage
It is sent to waveform drawing unit after the compression processing of contracting unit, with by the waveform of waveform drawing unit display input.
Digital comparator 403 does conversion process for treating display waveform data and obtains logical waveform data.
Search module 404 is for the characteristic point of search satisfaction search information from logical waveform data and determines characteristic point
Characteristic point is stored in address in addressed memory 505 by address.
It includes search condition, search passage and/or searching threshold to search for information.It is provided in this embodiment to be searched with waveform
The digital oscilloscope of Suo Gongneng can improve the search speed of characteristic point, ensure that stablizing for characteristic point uses, make all characteristic points
Will be shown, will not waste of resource, while the space anxiety problem of characteristic point storage can be alleviated again.
Again referring to Fig. 4, in some embodiments, the processing module 407 in digital oscilloscope is additionally operable to reception user and sets
Described search condition is copied as trigger condition by the first duplicate instructions set according to first duplicate instructions;Or receive user
Trigger condition is copied as described search condition by the second duplicate instructions being arranged according to second duplicate instructions.
First duplicate instructions and the second duplicate instructions can be arranged by user by human-computer interaction interface.Search condition and triggering
Quick copy between condition can skip cumbersome manual operation, improve user experience.
In some embodiments, processing module 407 is additionally operable to receive trigger signal, which is carried by triggering equipment
For reading the waveform being displayed on the screen from described address memory 405 according to the address (i.e. trigger position) of trigger signal
The address of corresponding characteristic point;According to the inclined of the read characteristic point of the address calculation of the address of read characteristic point and trigger signal
Move address;Characteristic point is shown on the screen according to the offset address of read characteristic point.
In some embodiments, processing module 407 is additionally operable to receive the first idsplay order of user setting, according to described the
One idsplay order shows search time stamp;
Wherein, search time stamp includes feature point identification, characteristic point with respect to the leading time of trigger position or the time of delaying.
In some embodiments, processing module 407 is additionally operable to receive the second idsplay order of user setting, according to described the
Two idsplay orders show navigation menu, wherein navigation menu includes knob or promotion button;
It receives the rotation instruction of knob or pushes the promotion instruction of button, instruction navigation is instructed or pushed according to the rotation
To specific features point, and between specific features point is displayed on the screen.
In some embodiments, in order to realize synchronous search universal serial bus protocol events, the signal input module
There are two at least, for providing the Wave data after multi-channel sampling.Such as the search of IIC serial bus protocols needs clock and data
Two passes, SPI protocol need four channels.
In some embodiments, interpolation module and search module are realized by a FPGA, the search of human-computer interaction interface configuration
Information can be configured to the ends FPGA by high-speed bus GTP from processing module.Programmable logic device is used in the prior art
(FPGA) internal storage stores search characteristics point, and the memory capacity of the internal storage is small, and input waveform in practice is most
Number is continuous, once the characteristic point for meeting search condition in input waveform is excessive or sample frequency improves, internal storage
It will be unable to continue to be stored in.In order to solve this problem, addressed memory described herein is the memory outside FPGA, for example,
DDR3 memories.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The above is merely to illustrate the technical solution of the application, any those of ordinary skill in the art can without prejudice to
Under the spirit and scope of the present invention, modifications and changes are made to the above embodiments.Therefore, the scope of the present invention should regard
Subject to right.