CN108254604A - A kind of method for displaying waveform and device - Google Patents
A kind of method for displaying waveform and device Download PDFInfo
- Publication number
- CN108254604A CN108254604A CN201611241721.7A CN201611241721A CN108254604A CN 108254604 A CN108254604 A CN 108254604A CN 201611241721 A CN201611241721 A CN 201611241721A CN 108254604 A CN108254604 A CN 108254604A
- Authority
- CN
- China
- Prior art keywords
- waveform
- scale value
- grid
- value
- horizontal
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R13/00—Arrangements for displaying electric variables or waveforms
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The present invention provides a kind of method for displaying waveform and device, show and control for the waveform of the host computer to oscillograph, method includes:The waveform feature parameter of oscillograph current channel is obtained, the waveform feature parameter includes:Gear is set and position setting;The scale value of each grid of oscilloscope display is determined according to the gear setting and position setting;Graduated waveform is had according to determining scale value display.The present invention provides a kind of waveform that there is scale to show and shows, while show grid, shows horizontal and vertical scale value, user can intuitively read the characteristic parameter of waveform according to scale value.
Description
Technical field
The present invention relates to waveform display technologies, are concretely a kind of method for displaying waveform and device.
Background technology
Existing oscillograph product is generally equipped with color display screen, and user is facilitated to observe the wave of tested electric signals
Shape.The screen of oscillograph in addition to display waveform, general background all can show grid, as shown in Figure 1, grid by the vertical of screen and
Horizontal direction is divided into several small lattice at equal intervals, similar graph paper, and user is referred to grid reading waveform and vertically and horizontally divides
Measure the lattice number that occupies, referring again to the setting of the vertical gear of oscillograph and horizontal gear, through calculating it can be learnt that waveform voltage,
The characteristic parameters such as time.
Meanwhile general oscillograph product can also provide upper computer software, facilitate user remotely connect instrument, print screen,
Obtain data etc..Upper computer software generally can also provide waveform and show that similar with the screen of oscillograph, host computer waveform is shown
Background can also provide grid and show, user obtains Wave data by upper computer software, is displayed on the screen, passes through screen background
Grid and oscillograph setting can also learn the characteristic parameters such as voltage, the time of waveform.
In the prior art, user wants to obtain the characteristic parameters such as voltage, the time of current display waveform by screen raster
When, user finds interested tested wave regions first, is occupied in the vertical and horizontal direction by estimating wave regions
Grid number when range estimation is difficult to determine grid number, can assist reading grid number by the cursor in oscillograph screen.Together
When also need to check tested waveform where the current vertical gear of channel and horizontal gear setting value, these setting values are in oscillograph
There is display on screen, generally identified with " volt/lattice " or " second/lattice ", represent that vertical gear is set as:Each grid how much lie prostrate or
Horizontal gear is set as:Each grid how many second.The grid number that range estimation obtains is multiplied by the shelves for checking that oscillograph obtains by user
Position setting value, can calculate the characteristic parameters such as voltage, the time of tested waveform.
As can be seen that the prior art obtains waveform feature parameter according to screen background grid and gear setting value, it is ratio
Cumbersome, user needs first to inquire the gear setting value of waveform, and it is logical that this process must pay close attention to being currently located for tested waveform
Road, the characteristic parameters such as waveform voltage, time cannot directly be read on the screen, need calculating process.In waveform display background only
There is grid to show, can only find out that the vertical, horizontal of screen there are several lattice, it is impossible to the intuitive screen model for finding out waveform place channel
The physical significance enclosed, such as:The voltage range of screen vertical specifically from how many volts to how many volts, horizontal time range specifically from
How many seconds arrive how many second.
Invention content
It is shown to provide a kind of waveform that there is scale to show, while show grid, shows horizontal and vertical scale
Value, user can intuitively read the characteristic parameter of waveform according to scale value, and an embodiment of the present invention provides a kind of waveforms to show
Method shows and controls for the waveform of the host computer to oscillograph, and method includes:
The waveform feature parameter of oscillograph current channel is obtained, the waveform feature parameter includes:Gear is set and position
It installs;
The scale value of each grid of oscilloscope display is determined according to the gear setting and position setting;
Graduated waveform is had according to determining scale value display.
In the embodiment of the present invention, the waveform feature parameter of the acquisition oscillograph current channel includes:
The waveform feature parameter of querying command acquisition oscillograph current channel is sent to oscillograph.
In the embodiment of the present invention, gear setting includes:The amplitude of each grid of current channel horizontal direction and hang down
Nogata is to the amplitude of each grid;
The position setting includes:The horizontal position offset value and vertical positional offset values of current channel.
In the embodiment of the present invention, gear setting and position setting described in the basis determine each grid of oscilloscope display
The scale value of lattice includes:
The grid number of horizontal direction is determined according to the amplitude of each grid of horizontal direction and horizontal position offset value;
Horizontal direction maximum scale value and minimum scale value are determined according to horizontal grid number;
The scale of each grid of horizontal direction is determined according to horizontal direction maximum scale value, minimum scale value and grid number
Value;
The grid number of vertical direction is determined according to the amplitude of each grid of vertical direction and horizontal position offset value;
Vertical direction maximum scale value and minimum scale value are determined according to vertical grid number;
The scale of each grid of vertical direction is determined according to vertical direction maximum scale value, minimum scale value and grid number
Value.
In the embodiment of the present invention, the waveform feature parameter further includes:The channel number of current channel.
In the embodiment of the present invention, the waveform feature parameter of the acquisition oscillograph current channel further includes:
The channel number of current channel is obtained according to the instruction setting of user.
In the embodiment of the present invention, the method further includes:
Current channel is determined according to the channel number of current channel and the correspondence of preset channel number and color
Waveform color and scale color;
Graduated oscillograph wave is had according to the display of the waveform color, scale color and determining scale value of current channel
Shape.
Meanwhile the present invention also provides a kind of Waveform display apparatus, and progress is shown for the waveform of the host computer to oscillograph
Control, device include:
Parameter acquisition module, for obtaining the waveform feature parameter of oscillograph current channel, the waveform feature parameter
Including:Gear is set and position setting;
Scale value determining module, for determining each grid of oscilloscope display according to the gear setting and position setting
Scale value;
Display module, for having graduated waveform according to determining scale value display.
In the embodiment of the present invention, the parameter acquisition module includes:
Instructions query unit sends the waveform feature parameter of querying command acquisition oscillograph current channel to oscillograph.
In the embodiment of the present invention,
The gear setting includes:The amplitude of each grid of current channel horizontal direction and each grid of vertical direction
Amplitude;
The position setting includes:The horizontal position offset value and vertical positional offset values of current channel.
In the embodiment of the present invention, the scale value determining module includes:
Horizontal grid number determination unit determines for the amplitude according to each grid of horizontal direction and horizontal position offset value
The grid number of horizontal direction;
Horizontal scale range determination unit, for determining horizontal direction maximum scale value and minimum quarter according to horizontal grid number
Angle value;
Horizontal scale value determination unit, for true according to horizontal direction maximum scale value, minimum scale value and grid number
Determine the scale value of each grid of horizontal direction;
Vertical grid number determination unit determines vertically according to the amplitude of each grid of vertical direction and horizontal position offset value
The grid number in direction;
Vertical scale range determination unit determines vertical direction maximum scale value and minimum scale according to vertical grid number
Value;
Vertical scale value determination unit determines to hang down according to vertical direction maximum scale value, minimum scale value and grid number
Nogata is to the scale value of each grid.
In the embodiment of the present invention, the waveform feature parameter further includes:The channel number of current channel.
In the embodiment of the present invention, the parameter acquisition module further includes:
Channel number acquiring unit, for obtaining the channel number of current channel according to the instruction setting of user.
In the embodiment of the present invention, the device further includes:
Color determination module, it is true according to the channel number of current channel and the correspondence of preset channel number and color
The waveform color of settled prepass and scale color;
The display module shows have according to the waveform color, scale color and determining scale value of current channel
The waveform of scale.
The present invention provides a kind of method for displaying waveform and device shown with scale, and user can be intuitive according to scale value
Obtain the characteristic parameter of tested waveform, avoid step and calculating process that the prior art is cumbersome.
Above and other objects, features and advantages to allow the present invention can be clearer and more comprehensible, preferred embodiment cited below particularly,
And coordinate institute's accompanying drawings, it is described in detail below.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, 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
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the screen of waveform shown in the prior art;
Fig. 2 is a kind of flow chart of method for displaying waveform disclosed by the invention;
Fig. 3 is a kind of block diagram of Waveform display apparatus disclosed by the invention;
Fig. 4 is the waveform display interface sectional drawing of the embodiment of the present invention;
Fig. 5 is that scale value calculates and adjustment flow chart in the embodiment of the present invention;
Fig. 6 is that scale color updates flow chart in the embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment shall fall within the protection scope of the present invention.
As shown in Fig. 2, for a kind of flow chart of method for displaying waveform disclosed by the invention, method for displaying waveform of the invention
It shows and controls for the waveform of the host computer to oscillograph, including:
Step S101, obtains the waveform feature parameter of oscillograph current channel, and the waveform feature parameter includes:Gear
Setting and position setting;
Step S102 determines the scale value of each grid of oscilloscope display according to the gear setting and position setting;
Step S103 has graduated waveform according to determining scale value display.
The setting of middle gear of the embodiment of the present invention includes:The amplitude and vertical direction of each grid of current channel horizontal direction are every
The amplitude of a grid;Position setting includes:The horizontal position offset value and vertical positional offset values of current channel.
In the embodiment of the present invention, in step S102, each grid of oscilloscope display are determined according to gear setting and position setting
The scale value of lattice includes:
According to the amplitude of each grid of horizontal direction and horizontal position offset value, the grid number of horizontal direction is determined;
Horizontal direction maximum scale value and minimum scale value are determined according to horizontal grid number;
The scale of each grid of horizontal direction is determined according to horizontal direction maximum scale value, minimum scale value and grid number
Value;
According to the amplitude of each grid of vertical direction and horizontal position offset value, the grid number of vertical direction is determined;
Vertical direction maximum scale value and minimum scale value are determined according to vertical grid number;
The scale of each grid of vertical direction is determined according to vertical direction maximum scale value, minimum scale value and grid number
Value.
In the embodiment of the present invention, waveform feature parameter further includes:The channel number of current channel.
Above-mentioned steps S101, the waveform feature parameter for obtaining oscillograph current channel further include:
The channel number of current channel is obtained according to the instruction setting of user.
In the embodiment of the present invention, according to the channel number of current channel and the correspondence of preset channel number and color
Determine the waveform color of current channel and scale color;According to the waveform color, scale color and determining quarter of current channel
Angle value display has graduated waveform.
The main object of the present invention is to improve existing technical solution, provides a kind of waveform display side shown with scale
Method and system, this method also show horizontal and vertical scale value, user is according to scale while show grid in screen background
Value can intuitively read the characteristic parameter of waveform from screen, and intuitively find out the screen of waveform place channel on the whole
Range, which has true physical significance, such as shows:Vertical voltage amplitude range, horizontal time range, but simultaneously
It is not limited.
Further, in the embodiment of the present invention, oscillograph current form is obtained by the querying command sent to oscillograph
Input channel;The color of the current form of display is determined according to the corresponding waveform color of preset signal input channel.
Scale color in the present invention can follow the color of selected channel to change automatically, and user is facilitated to lead to where identifying waveform
The scale value in road.In addition scale value can follow selected passage gear or the setting value of horizontal gear to change automatically in the present invention, with
Reflect newest passage gear information.
Simultaneously the present invention also provides a kind of Waveform display apparatus, show and control for the waveform of the host computer to oscillograph
System, as shown in figure 3, device includes:
Parameter acquisition module 201, for obtaining the waveform feature parameter of oscillograph current channel, wave character ginseng
Number includes:Gear is set and position setting;
Scale value determining module 202, for determining each of oscilloscope display according to the gear setting and position setting
The scale value of grid;
Display module 203, for having graduated waveform according to determining scale value display.
In the embodiment of the present invention, parameter acquisition module 201 includes:
Instructions query unit sends the waveform feature parameter of querying command acquisition oscillograph current channel to oscillograph.
Scale value determining module 202 includes in the embodiment of the present invention:
Horizontal grid number determination unit determines for the amplitude according to each grid of horizontal direction and horizontal position offset value
The grid number of horizontal direction;
Horizontal scale range determination unit, for determining horizontal direction maximum scale value and minimum quarter according to horizontal grid number
Angle value;
Horizontal scale value determination unit, for true according to horizontal direction maximum scale value, minimum scale value and grid number
Determine the scale value of each grid of horizontal direction;
Vertical grid number determination unit determines vertically according to the amplitude of each grid of vertical direction and horizontal position offset value
The grid number in direction;
Vertical scale range determination unit determines vertical direction maximum scale value and minimum scale according to vertical grid number
Value;
Vertical scale value determination unit determines to hang down according to vertical direction maximum scale value, minimum scale value and grid number
Nogata is to the scale value of each grid.
In the embodiment of the present invention, parameter acquisition module 201 further includes:
Channel number acquiring unit, for obtaining the channel number of current channel according to the instruction setting of user.
In addition, Waveform display apparatus further includes:
Color determination module 204 is closed according to the channel number of current channel and preset channel number are corresponding with color
System determines the waveform color of current channel and scale color;
Display module 203 is shown according to the waveform color, scale color and determining scale value of current channel with quarter
The waveform of degree.
The present invention provides a kind of method for displaying waveform and device shown with scale, for the similar instrument such as oscillograph
Device, on the basis of the original background grid of instrument screen increasing scale value shows, improves user and obtains waveform feature parameter
Method, and user is allowd intuitively to grasp the physical significance of screen vertical and horizontal extent on the whole.
Specifically, the scale value of the present invention is shown comprising lateral scale value, it is placed near screen low side grid, according to grid
The position horizontal homogeneous arrangement of lattice, each grid of horizontal direction are believed there are one scale value, such as identifying the time of screen
Breath, the difference of each adjacent scale value is present level gear setting value.
Scale value of the present invention is shown also comprising longitudinal scale value, is placed near screen left end grid, according to the position of grid
Vertical uniform arrangement is put, scale value that there are one each grids of vertical direction, such as the voltage amplitude information for identifying screen,
Similar with horizontal direction, the difference of each adjacent scale value is the vertical gear setting value that currently selected channel corresponds to figure.
Because lateral, longitudinal scale value is all placed near corresponding grid, user can intuitively read wave regions pair from screen
The calibration information answered, this process user is without reference to other setting informations, you can directly obtains the spies such as voltage, the time of waveform
Levy parameter value.In addition, the scale value by checking screen level direction left end and right end, can obtain screen level when
Between range.The similar scale value by checking screen vertical direction lowermost end and top, can obtain screen vertical direction
Parameter area, such as voltage range.
Lateral scale value in the present invention is calculated according to the setting of the present level of oscillograph and horizontal grid number.
The horizontally disposed of oscillograph is set comprising gear setting and position, and the gear setting in the embodiment of the present invention is i.e. each
The time value that the horizontal length of grid represents, unit are " seconds/lattice ", which can be looked by upper computer software to oscillograph transmission
Order is ask to obtain.Position setting is horizontal position offset value, can also be obtained by querying command, according to the current water of oscillograph
The grid number of flat gear setting, position setting and horizontal direction, can be calculated the current each grid in scope horizontal direction
The scale value of corresponding scale value, left end and right end represents the level minimums and maximum value of screen, i.e. level side respectively
To range.It when the horizontally disposed adjustment of oscillograph, is recalculated according to the above method, you can synchronized update horizontal direction is every
The corresponding scale value of a grid.
Similar, oscillograph is vertically arranged also comprising gear setting and position setting, and general oscillograph all provides mostly logical
Road waveform is shown, therefore is vertically arranged comprising multigroup gear and position setting value.Each gear setting is i.e. each in the present embodiment
The voltage amplitude value for each channel that the vertical length of grid represents, unit is " volt/lattice ", which can pass through upper computer software
Querying command is sent to oscillograph to obtain, and the channel number of given query is needed when sending querying command.Each position, which is set, is
The corresponding vertical positional offset values of each channel can also be obtained by specifying the querying command of channel number.According to oscillography
The device currently gear setting of each channel, position is set and the grid number of vertical direction, and it is each vertical direction can be calculated
The scale value of the corresponding scale value of grid, top and lowermost end represents the vertical minimum value of each channel and maximum of screen respectively
Value, the i.e. range of vertical direction.When being vertically arranged adjustment of any channel of oscillograph, recalculated according to the above method,
It can the corresponding scale value of any each grid of channel vertical direction of synchronized update.
The color setting of longitudinal scale value in the present invention is not face that is changeless, but following current channel waveform
Color changes automatically.The present embodiment oscillograph all provides multi-channel waveform and shows, in order to avoid scale shows confusion, on the left of screen
Only show longitudinal scale value of current channel, when switching current channel, software obtains the waveform color value of current selector channel,
The color of screen longitudinal direction scale value is set as the value simultaneously, so as to fulfill automatically updating for scale value color.
The horizontal direction of the oscillograph screen of the present embodiment represents the time, and the time setting of all channels is synchronous, is total to
A leveled time setting is enjoyed, therefore the color of lateral scale value is changeless in the citing of the present invention, but the present invention is same
When suitable for there is the instrument of multiple lateral scale values, for this instrument, be laterally also required to selection current scale value, be referred to
The color of the lateral scale value of method update of longitudinal scale value.
In the present invention, when user switches current channel, the show value and color of longitudinal scale will be same according to the method described above
Step update, it is consistent with currently selected channel.Switching channel is there are many scheme, for example can pass through click activation corresponding with channel
Button switches, and simplest handover scheme is directly to click right mouse button on screen area or scale zone, in the dish of pop-up
Corresponding channel number is selected in list.
Said program is set both for the screen of host computer, and the level of host computer, vertical scale value are according to acquisition
The horizontal and vertical parameter information of oscillograph slave computer be calculated, upper computer software is obtaining waveform data
Meanwhile also in the horizontal and vertical parameter information for obtaining oscillograph, therefore the calibration information of host computer and oscillograph slave computer
Setting is one-to-one, when horizontally disposed or channel setting of the user in slave computer adjustment oscillograph, the level of host computer,
Vertical scale value can synchronized update.
Fig. 4 is the waveform display interface sectional drawing of the embodiment of the present invention, and the region of Fig. 4 centres display waveform is the screen of oscillograph
Curtain, background have grid to show, this is the same with traditional oscillograph screen.
The part that Fig. 4 centre circles 1 mark is vertical scale value (longitudinal scale value) and enclose 2 marks is that horizontal scale value is (horizontal
To scale value).Horizontal scale value is near screen low side grid, and according to the position horizontal homogeneous arrangement of grid, horizontal direction is every
All there are one scale values for a grid, and for identifying the temporal information of screen, the difference of each adjacent scale value is present level
Gear setting value, such as horizontal gear setting value in Fig. 4 is 2us, user can intuitively find out the left end of screen to most right
The time span at end arrives 12us for -12us.When user changes the leveled time setting of oscillograph, by synchronized update horizontal scale
Value display, keeps consistent with leveled time setting value.
In the present embodiment, all channels of oscillograph share a leveled time setting, therefore the color of horizontal scale value is protected
Hold constant, the example of this only present invention, if each channel of instrument has respective leveled time to set, horizontal scale value
Color can follow channel to change.
Vertical scale value is near screen left end grid, and according to the vertical uniform arrangement in the position of grid, vertical direction is each
All there are one scale values for grid, similar with horizontal direction for identifying the voltage amplitude information of screen, each adjacent scale value
Difference be the vertical gear setting value of currently selected channel, such as the vertical gear setting value in Fig. 4 be 12v, user can be straight
The voltage amplitude for watching out lowermost end to the top of screen arrives 48v for -48v.General oscillograph all provides multi-channel waveform and shows
Show, therefore vertical scale value has multigroup, in order to avoid display is chaotic in Fig. 4, only shows one group of vertical scale value, display it is vertical
Scale value and color are vertically arranged value and waveform solid colour with currently selected channel (channel 1), when user's switching is current logical
During road, by update vertical scale value and color, keep consistent with current channel setting.
Fig. 5 is scale value calculating and adjusts flow chart, and the calculating step of the scale value in the present embodiment is specific as follows:
Step S501, when software starts, initial screen background grid is shown and horizontal, vertical scale value is shown, is set
The current channel number of acquiescence.
Step S502, judges whether the horizontally disposed of oscillograph changes, and whether detection user is grasped by mouse and keyboard
Make the horizontal gear of oscillograph and position setting, if horizontally disposed change, perform step S503, otherwise perform step
S602 detections are vertically arranged variation.
After confirming that scope horizontal setting changes, step S503 sends horizontal gear by host computer to oscillograph
With horizontal position querying command, horizontal gear and horizontal position information are obtained.
The grid set when step S504 is according to software initialization shows to obtain horizontal grid number.
The horizontal grid number that horizontal gear, location information and the step S504 that step S505 is obtained according to step S503 are obtained
The minimum and maximum scale value in calculated level direction illustrates specific algorithm here:Assuming that the dead-center position of horizontal direction exists
Center Screen, by horizontal grid number divided by 2, multiplied by with horizontal gear value, you can obtain it is horizontal when not deviating, it is minimum and maximum
Horizontal scale value, absolute value is equal, respectively positive negative, if level is offset, i.e., horizontal position value is not 0, then will be maximum
Scale value adds horizontal position value, obtains new horizontal scale maximum value;By minimum scale value plus horizontal position value, obtain new
Horizontal scale minimum value.
The horizontal scale minimum value that step S506 obtains step S505, the horizontal gear obtained successively plus step S503
Value, you can obtain the corresponding scale value of all grids of horizontal direction.
After confirming that scope horizontal setting does not change, step S602 is performed, judges being vertically arranged for oscillograph
Whether change, whether detection user is set by the vertical gear of operation with mouse and keyboard oscillograph and position, if vertically setting
It puts and changes, then perform step S603, otherwise cycle performs the setting variation of step S502 detection levels.
Step S603, query steps S602 are vertically arranged changed channel number.
Step S604 specifies the vertical shelves of channel number (being obtained by step S603) by host computer to oscillograph transmission
Position and position enquiring order, obtain vertical gear and location information.
The grid set when step S605 is according to software initialization shows to obtain vertical grid number.
The vertical grid number that vertical gear, location information and the step S605 that step S606 is obtained according to step S604 are obtained
The minimum and maximum scale value of vertical direction is calculated, specific algorithm is similar with horizontal scale:Assuming that the dead-center position of vertical direction
In center Screen, by vertical grid number divided by 2, multiplied by with vertical gear value, you can maximum and most when obtaining not deviating vertically
Small vertical scale value, absolute value is equal, respectively positive negative, if vertically offsetting, i.e., vertical position value is not 0, then will most
High range value subtracts vertical position value, obtains new vertical scale maximum value;Minimum scale value is subtracted into vertical position value, is obtained
New vertical scale minimum value.
The vertical scale minimum value that step S607 obtains step S606, the vertical gear obtained successively plus step S604
Value, you can obtain the corresponding scale value of all grids of vertical direction.
With the obtained channel numbers of step S603 it is corresponding in the vertical scale value that step S607 is obtained, in step S608
Judge whether the channel number of current vertical scale is equal to the channel number that step S603 is obtained,
It is if equal:Step S609 is performed, update vertical scale value is shown;
If differ:Step S610 is performed, recording channel numbers corresponding vertical scale value, does not update scale value and shows.
Above step can be realized modification it is vertical, horizontally disposed when, vertical, horizontal scale value synchronized update.
In the embodiment of the present invention, oscillograph usually has multiple channels, the gear and position that each channel has oneself independent
Setting, therefore the vertical scale value of host computer has multigroup, in order to avoid display is chaotic, host computer only shows the vertical of current channel
Scale value.When user's switching channel, vertical scale value changes synchronous, and the setting with current channel is consistent.User can
With by a variety of method switching channels, such as by clicking right mouse button on host computer waveform display screen curtain or in scale value,
Software pops up channel number menu, and user's click-through number completes the switching of current channel, and software will be performed shown in Fig. 5 at this time
Flow chart, complete vertical scale value calculating and adjustment.
The scale value of host computer is calculated according to the setting of vertical, the horizontal gear of oscillograph and screen raster number
, the screen raster number of host computer and oscillograph slave computer is completely the same, therefore the horizontal scale value of host computer is with showing
The horizontally disposed one-to-one correspondence of wave device, user on host computer or oscillograph when adjusting horizontally disposed, the horizontal scale of host computer
It can synchronized update.The similary vertical scale value of host computer and the oscillograph of corresponding channel are vertically arranged one-to-one correspondence, and user is upper
When being vertically arranged of related channel program is adjusted on position machine or oscillograph, the vertical scale of host computer can synchronized update.When user switches
During current channel, the vertical scale value and color of host computer are by synchronized update.
In conclusion the change of host computer scale value be software according to the level of oscillograph, be vertically arranged with it is currently selected
What channel was automatically performed, user changes the horizontal and vertical setting of oscillograph or switching current channel, will change scale value indirectly
Display, modification scope horizontal illustrated below and vertically disposed method change the method for scale value:
1st, horizontal and vertical setting is changed by upper computer software, horizontal scale value is below for each channel in Fig. 4
There is " SCAL " and " POS " control, numerical value can be inputted, vertical gear and the position of each channel are set respectively.The waveform in figure
There is " H " and " D " control above display screen, numerical value can be inputted, horizontal gear and position are set.
2nd, by adjusting horizontal and vertical setting in oscillograph slave computer, upper computer software inquires the horizontal, vertical of oscillograph
Straight setting variation, synchronized update scale value are shown.
Meanwhile the color setting of the vertical scale value in the present invention can follow the color of current channel waveform to automatically update.
Fig. 6 is scale color update flow chart.
Step S701 after software startup, sets the current channel of acquiescence to number, scale value color is initialized as giving tacit consent to
The corresponding waveform color of channel number.
Step S702 starts a query at user and whether switches current channel, and whether detection user passes through mouse popup menu or logical
Road button switching channel if current channel switches, performs step S703, otherwise recycles into row of channels change detection.
Step S703 inquires the number of switching channel, which can be straight from the number of mouse popup menu or channel button
It obtains and takes.
The corresponding waveform colouring information of step S704 inquiries channel number.
The waveform color that the color of vertical scale is set as obtaining in step S704 by step S705.Above step can be real
During existing switching channel, the color synchronization update of scale value.
The improvement that the present invention passes through three aspects so that user can intuitively obtain the spies such as voltage, the time of tested waveform
Levy parameter.
The present invention provides a kind of method for displaying waveform shown with scale and system, user can be intuitive according to scale value
Obtain the characteristic parameter of tested waveform, avoid step and calculating process that the prior art is cumbersome.
Scale value color in the present invention can follow the setting of selected passage gear to change automatically, and user can intuitively see
The step of going out the calibration information of currently selected channel, avoiding remembering currently selected channel, then search corresponding channel setting value.In addition
User can be switched fast channel by right mouse button popup menu, and scale value color changes automatically.
Scale value in the present invention can follow selected passage gear or the setting value of horizontal gear to change automatically, to reflect
Newest passage gear information avoids user after gear information is adjusted, and remembers the corresponding channel of gear currently adjusted, then look into
The step of looking for corresponding channel setting value.
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, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention
Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention
The computer program production that usable storage medium is implemented on (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 it 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
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device of function 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 the instruction generation being 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 can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement 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.
It applies specific embodiment in the present invention to be expounded the principle of the present invention and embodiment, above example
Explanation be merely used to help understand the present invention method and its core concept;Meanwhile for those of ordinary skill in the art,
Thought according to the present invention, there will be changes in specific embodiments and applications, in conclusion in this specification
Appearance should not be construed as limiting the invention.
Claims (14)
1. a kind of method for displaying waveform, show and control for the waveform of the host computer to oscillograph, which is characterized in that is described
Method include:
The waveform feature parameter of oscillograph current channel is obtained, the waveform feature parameter includes:Gear is set and position is set
It puts;
The scale value of each grid of oscilloscope display is determined according to the gear setting and position setting;
Graduated waveform is had according to determining scale value display.
2. method for displaying waveform as described in claim 1, which is characterized in that the waveform of the acquisition oscillograph current channel
Characteristic parameter includes:
The waveform feature parameter of querying command acquisition oscillograph current channel is sent to oscillograph.
3. method for displaying waveform as claimed in claim 2, which is characterized in that
The gear setting includes:The amplitude of each grid of current channel horizontal direction and the width of each grid of vertical direction
Value;
The position setting includes:The horizontal position offset value and vertical positional offset values of current channel.
4. method for displaying waveform as claimed in claim 3, which is characterized in that gear setting and position described in the basis
Setting determines that the scale value of each grid of oscilloscope display includes:
According to the amplitude of each grid of horizontal direction and horizontal position offset value, the grid number of horizontal direction is determined;
Horizontal direction maximum scale value and minimum scale value are determined according to horizontal grid number;
The scale value of each grid of horizontal direction is determined according to horizontal direction maximum scale value, minimum scale value and grid number;
According to the amplitude of each grid of vertical direction and horizontal position offset value, the grid number of vertical direction is determined;
Vertical direction maximum scale value and minimum scale value are determined according to vertical grid number;
The scale value of each grid of vertical direction is determined according to vertical direction maximum scale value, minimum scale value and grid number.
5. method for displaying waveform as claimed in claim 2, which is characterized in that the waveform feature parameter further includes:Currently
The channel number of channel.
6. method for displaying waveform as claimed in claim 5, which is characterized in that the waveform of the acquisition oscillograph current channel
Characteristic parameter further includes:
The channel number of current channel is obtained according to the instruction setting of user.
7. method for displaying waveform as claimed in claim 6, which is characterized in that the method further includes:
The waveform of current channel is determined according to the channel number of current channel and the correspondence of preset channel number and color
Color and scale color;
Graduated waveform is had according to the display of the waveform color, scale color and determining scale value of current channel.
8. a kind of Waveform display apparatus, show and control for the waveform of the host computer to oscillograph, which is characterized in that is described
Device include:
Parameter acquisition module, for obtaining the waveform feature parameter of oscillograph current channel, the waveform feature parameter includes:
Gear is set and position setting;
Scale value determining module, for determining the quarter of each grid of oscilloscope display according to the gear setting and position setting
Angle value;
Display module, for having graduated waveform according to determining scale value display.
9. Waveform display apparatus as claimed in claim 8, which is characterized in that the parameter acquisition module includes:
Instructions query unit sends the waveform feature parameter of querying command acquisition oscillograph current channel to oscillograph.
10. Waveform display apparatus as claimed in claim 9, which is characterized in that
The gear setting includes:The amplitude of each grid of current channel horizontal direction and the width of each grid of vertical direction
Value;
The position setting includes:The horizontal position offset value and vertical positional offset values of current channel.
11. Waveform display apparatus as claimed in claim 10, which is characterized in that the scale value determining module includes:
Horizontal grid number determination unit determines level for the amplitude according to each grid of horizontal direction and horizontal position offset value
The grid number in direction;
Horizontal scale range determination unit, for determining horizontal direction maximum scale value and minimum scale according to horizontal grid number
Value;
Horizontal scale value determination unit, for determining water according to horizontal direction maximum scale value, minimum scale value and grid number
Square to each grid scale value;
Vertical grid number determination unit determines vertical direction according to the amplitude of each grid of vertical direction and horizontal position offset value
Grid number;
Vertical scale range determination unit determines vertical direction maximum scale value and minimum scale value according to vertical grid number;
Vertical scale value determination unit determines Vertical Square according to vertical direction maximum scale value, minimum scale value and grid number
To the scale value of each grid.
12. Waveform display apparatus as claimed in claim 9, which is characterized in that the waveform feature parameter further includes:Currently
The channel number of channel.
13. Waveform display apparatus as claimed in claim 12, which is characterized in that the parameter acquisition module further includes:
Channel number acquiring unit, for obtaining the channel number of current channel according to the instruction setting of user.
14. Waveform display apparatus as claimed in claim 12, which is characterized in that the device further includes:
Color determination module determines to work as according to the channel number of current channel and the correspondence of preset channel number and color
The waveform color of prepass and scale color;
The display module is shown according to the waveform color, scale color and determining scale value of current channel with scale
Waveform.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611241721.7A CN108254604B (en) | 2016-12-29 | 2016-12-29 | Waveform display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611241721.7A CN108254604B (en) | 2016-12-29 | 2016-12-29 | Waveform display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108254604A true CN108254604A (en) | 2018-07-06 |
CN108254604B CN108254604B (en) | 2022-05-24 |
Family
ID=62719625
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611241721.7A Active CN108254604B (en) | 2016-12-29 | 2016-12-29 | Waveform display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108254604B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113219363A (en) * | 2021-03-25 | 2021-08-06 | 合肥联宝信息技术有限公司 | Power supply noise test method and device and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09311144A (en) * | 1996-05-23 | 1997-12-02 | Hioki Ee Corp | Method of displaying waveform |
JP2006145267A (en) * | 2004-11-17 | 2006-06-08 | Hioki Ee Corp | Waveform display |
CN1808563A (en) * | 2005-01-18 | 2006-07-26 | 深圳迈瑞生物医疗电子股份有限公司 | Multi-channel waveform display method |
JP2009115569A (en) * | 2007-11-06 | 2009-05-28 | Hioki Ee Corp | Waveform display device and waveform display method |
CN101609107A (en) * | 2009-05-27 | 2009-12-23 | 东南大学 | Multiple-channel digital oscilloscope is realized the method for wave-shape fluorescent display effect |
US20100131220A1 (en) * | 2008-11-26 | 2010-05-27 | Agilent Technologies, Inc. | Waveform display method and a signal measurement system implementing the same |
CN102109543A (en) * | 2010-12-08 | 2011-06-29 | 电子科技大学 | Digital three-dimensional oscilloscope with real-time waveform image scaling function |
CN103577139A (en) * | 2012-08-08 | 2014-02-12 | 横河电机株式会社 | Waveform display apparatus |
-
2016
- 2016-12-29 CN CN201611241721.7A patent/CN108254604B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09311144A (en) * | 1996-05-23 | 1997-12-02 | Hioki Ee Corp | Method of displaying waveform |
JP2006145267A (en) * | 2004-11-17 | 2006-06-08 | Hioki Ee Corp | Waveform display |
CN1808563A (en) * | 2005-01-18 | 2006-07-26 | 深圳迈瑞生物医疗电子股份有限公司 | Multi-channel waveform display method |
JP2009115569A (en) * | 2007-11-06 | 2009-05-28 | Hioki Ee Corp | Waveform display device and waveform display method |
US20100131220A1 (en) * | 2008-11-26 | 2010-05-27 | Agilent Technologies, Inc. | Waveform display method and a signal measurement system implementing the same |
CN101609107A (en) * | 2009-05-27 | 2009-12-23 | 东南大学 | Multiple-channel digital oscilloscope is realized the method for wave-shape fluorescent display effect |
CN102109543A (en) * | 2010-12-08 | 2011-06-29 | 电子科技大学 | Digital three-dimensional oscilloscope with real-time waveform image scaling function |
CN103577139A (en) * | 2012-08-08 | 2014-02-12 | 横河电机株式会社 | Waveform display apparatus |
Non-Patent Citations (3)
Title |
---|
张锋等: ""一种基于声卡的虚拟双踪示波器的研制"", 《汕头大学学报(自然科学版)》 * |
李学东: "基于LabVIEW的虚拟示波器的构建", 《机械制造与自动化》 * |
罗军等: "基于LabVIEW的泰克示波器与计算机的通信", 《计算机工程与设计》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113219363A (en) * | 2021-03-25 | 2021-08-06 | 合肥联宝信息技术有限公司 | Power supply noise test method and device and storage medium |
CN113219363B (en) * | 2021-03-25 | 2022-06-10 | 合肥联宝信息技术有限公司 | Power supply noise test method and device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108254604B (en) | 2022-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2643596B2 (en) | Display method of scalar quantity distribution | |
CN203894708U (en) | Touchpen detection device for detecting touch from touchpen | |
US10557870B2 (en) | Apparatus and method for time correlated signal acquisition and viewing | |
CN108627721B (en) | Determination and rendering of scan groups | |
CN104881176B (en) | A kind of touch screen line detection decision-making system and its detection determination method | |
CN108647492B (en) | A kind of characterizing method and device of chromatin topology relevant domain | |
US9031803B2 (en) | Waveform display method and a signal measurement system implementing the same | |
US10061466B2 (en) | Method for automatically adjusting the magnification and offset of a display to view a selected feature | |
JPH0648205B2 (en) | measuring device | |
CN104391646A (en) | Method and device for adjusting object attribute information | |
CN113467644B (en) | Calibration method and device of touch equipment, terminal equipment and storage medium | |
CN102109539A (en) | Data processing method of multichannel data acquisition device | |
US7227549B2 (en) | Indicating and manipulating a zoom region of a waveform | |
CN110208589A (en) | A kind of measuring method for waveform and measuring device, digital oscilloscope of time-domain signal | |
US8624580B2 (en) | Configurable measuring device with display and corresponding methods | |
CN108254604A (en) | A kind of method for displaying waveform and device | |
CN107966643A (en) | The Interactive Visualization device and its implementation of a kind of real-time testing data | |
CN103793152B (en) | A kind of monitoring system of electric substation picture on-line customization method | |
CN103185820B (en) | A kind of oscillograph with automatic cursor tracking function | |
EP1508125A1 (en) | Sequence display | |
US20170285902A1 (en) | Modifying Settings of an Electronic Test or Measurement Instrument | |
CN110333377B (en) | Method for supporting variable amplitude scanning of baud chart and digital oscilloscope | |
CN108171425A (en) | Power quality partition method, device and storage medium | |
CN108254607A (en) | Digital oscilloscope method for displaying waveform and device | |
JP6925598B2 (en) | Measuring device and parameter setting method of the 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 |