CN104181365B - A kind of measuring device with zooming display function - Google Patents

A kind of measuring device with zooming display function Download PDF

Info

Publication number
CN104181365B
CN104181365B CN201310196896.0A CN201310196896A CN104181365B CN 104181365 B CN104181365 B CN 104181365B CN 201310196896 A CN201310196896 A CN 201310196896A CN 104181365 B CN104181365 B CN 104181365B
Authority
CN
China
Prior art keywords
data
display
scaling multiple
waveform
measurement data
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
CN201310196896.0A
Other languages
Chinese (zh)
Other versions
CN104181365A (en
Inventor
张灵敏
王悦
王铁军
李维森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Puyuan Jingdian Technology Co ltd
Rigol Technology Co ltd
Original Assignee
Suzhou Rigol Precision Electric Technologies 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 Suzhou Rigol Precision Electric Technologies Co Ltd filed Critical Suzhou Rigol Precision Electric Technologies Co Ltd
Priority to CN201310196896.0A priority Critical patent/CN104181365B/en
Publication of CN104181365A publication Critical patent/CN104181365A/en
Application granted granted Critical
Publication of CN104181365B publication Critical patent/CN104181365B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention provides a kind of measuring devices with zooming display function, comprising: storage unit, for storing the measurement data acquired in real time;Function key, for generating key information when being triggered by user;Control unit reads measurement data for obtaining current scaling multiple according to key information, and according to current scaling multiple from storage unit, as display data;Display unit determines each ordinate of display data in waveform display interface according to the maximum value and minimum value that show in data for determining each abscissa of display data in waveform display interface according to current scaling multiple;And wavy curve is drawn in waveform display interface according to the abscissa and ordinate of display data.Zoom display through the invention, user can not only observe the horizontal and vertical variation tendency of wavy curve, but also can observe the detail content of wavy curve.

Description

A kind of measuring device with zooming display function
Technical field
The present invention relates to test field of measuring technique, more particularly to a kind of measuring device with zooming display function.
Background technique
In test, fields of measurement, with advances in technology, the function of measuring device is constantly improved and is developed.Measurement Device can be oscillograph, multimeter, data acquisition switch device etc., and waveform display function is exactly that one kind of measuring device is common Function.
Application No. is the Chinese patent application of 201010534702.X disclose it is a kind of with waveform display measurement result Digital multimeter.The digital multimeter of the patent application includes: measuring unit, control unit and display unit.The measurement is single Member is for generating measurement data;Described control unit is used for according to the measurement data, generate real-time waveform show data and Trend waveform shows data;The display unit further comprises one for showing that trend waveform shows data with wavy manner Trend waveform display unit and one for wavy manner showing real-time wave show data real-time waveform display unit.
The specific implementation of the technology is that waveform display interface is divided into two, and waveform display interface right part is aobvious Show the real-time waveform curve formed by real time data, waveform display interface left part shows the trend wave formed by trend data Shape curve, a portion for the trend wavy curve that compressed real-time waveform curve is constituted.The patent application can be used More useful shape informations are observed in the same time in family, directly grasp current measured value, being beneficial to user will be current Measurement data understands variation tendency of the current measured value relative to past measured value, has compared with historical measurement data Following measurement result is predicted conducive to user;Also, even if under the situation for executing a large amount of measurement task for a long time, User still can understand the waveform state of the signal currently captured by real-time waveform display unit in real time.
But technology disclosed in the patent application, the real-time waveform curve that waveform display interface right side is shown only account for waveform The half of display interface, display space is limited, and user can not observe the detail content of real-time waveform curve.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of measuring device with zooming display function, user both may be used To observe the variation tendency of wavy curve, and it can observe the detail content of wavy curve.
To solve the above-mentioned problems, the invention discloses a kind of measuring devices with zooming display function, comprising:
Storage unit, for storing the measurement data acquired in real time;
Function key, for generating key information when being triggered by user;
Control unit, for obtaining current scaling multiple according to key information, and according to current scaling multiple from depositing Measurement data is read in storage unit, as display data;
Display unit, for determining each cross of display data in waveform display interface according to current scaling multiple Coordinate determines each the vertical seat of display data in waveform display interface according to the maximum value and minimum value that show in data Mark;And wavy curve is drawn in waveform display interface according to the abscissa and ordinate of display data.
As one for example, the minimum value for the waveform display interface ordinate that the display unit is shown is display number Minimum value in, the maximum value of waveform display interface ordinate are the maximum value shown in data.
As another for example, the display unit according in measurement data maximum value and minimum value determine it is each A display data include: the maximum value and minimum value searched in display data in the ordinate in waveform display interface;According to institute It states maximum value and minimum value calculates the stepping of waveform display interface ordinate;It is calculated according to the maximum value, minimum value and stepping Each ordinate of display data in waveform display interface.
As another for example, the display unit determines that each display data exists according to current scaling multiple Abscissa in waveform display interface includes: the number of pixels according to current scaling multiple and waveform display interface abscissa, Obtain the corresponding number of pixels m of each display data;Since waveform display interface abscissa minimum value, at interval of m-1 picture Element, the abscissa of corresponding display data, m >=1.
As another for example, each shows the abscissa of data in waveform display interface, according to display number It is from left to right uniformly distributed according to the sequencing of acquisition time.
As another for example, described control unit includes:
Ratio computing unit, for obtaining current scaling multiple according to key information;
Number determination unit, for determining the display number N of display data according to current scaling multiple;
Data-reading unit, for according to the total n of measurement data stored in display number N and storage unit from storage Measurement data is read in unit, as display data;Wherein, N >=1, n >=1.
As another for example, the data-reading unit is read from storage unit in data acquisition Measurement data;If the total n of the measurement data of storage is more than or equal to N, N number of measurement data of newest storage is read;If The total n of the measurement data of storage is less than N, then reads the n measurement data all stored.
As another for example, described control unit further includes user input interface, for receiving user's input Originate number k;The data-reading unit reads measurement data after the completion of data acquire from storage unit;If starting Number k is less than or equal to n plus N-1 and reads N number of measurement data then since measurement data corresponding with the starting number k; It is greater than n plus N-1 if originating number k, since measurement data corresponding with the starting number k, reads n-k+1 survey Measure data.
As another for example, the function key includes: the first function button and the second function button;Described first When function button is triggered, the current scaling multiple that described control unit obtains amplifies the wavy curve, and described the When two function buttons are triggered, the current scaling multiple that described control unit obtains reduces the wavy curve.
As another for example, described control unit is also used to save the scaling multiple obtained every time;And it is receiving When the key information generated to the first function button, a level of zoom is incremented by the scaling multiple of newest preservation, is obtained current Scaling multiple, receive the second function button generation key information when, successively decrease one to the scaling multiple of newest preservation Level of zoom obtains current scaling multiple.
As another for example, described control unit is also used to save the scaling multiple obtained every time;And it is returning When to waveform display interface, the scaling multiple of newest preservation is read as current scaling multiple.
As another for example, when described control unit is also used to first enter waveform display interface after powering, Directly using the scaling multiple of default as current scaling multiple.
Compared with prior art, the invention has the following advantages that
The present invention determines each abscissa of display data in waveform display interface, wave according to current scaling multiple Shape curve can be with the different states that horizontal magnifications or diminution is presented of scaling multiple, as user it should be understood that wavy curve It, can be with waveform amplification curve when detail content;When user needs to observe the cross directional variations trend of wavy curve, wave can be reduced Shape curve.Meanwhile the ordinate of each display data is to show that the maximum value in data and minimum value determine according to all, Every time after scaling, the range value of wavy curve can also change accordingly in waveform display interface, and user can intuitively see very much Observe variation tendency of the wavy curve in the ordinate on (longitudinal direction).
The present invention is also an option that the maximum value and minimum value of display data, respectively as waveform display interface ordinate Maximum value and minimum value, the ordinate of waveform display interface are also with the zoom state of wavy curve, according to different zoom shape The size of the value of data is shown under state and is changed, and can make scaling front and back, the variation tendency comparison of wavy curve protrudes, more Obviously.
Detailed description of the invention
Fig. 1 is a kind of structure chart of 100 embodiment of measuring device with zooming display function of the present invention;
Fig. 2 is the schematic diagram of entire screen display interface 200 shown by display unit 104;
Fig. 3 is the schematic diagram of entire screen display interface 200 amplified to the wavy curve of Fig. 2;
Fig. 4 is the structure chart of an illustration of control unit 103;
Fig. 5 is the work flow diagram of control unit 103 and display unit 104;
Fig. 6 (a) is a kind of schematic diagram of waveform display interface example;
Fig. 6 (b) is the partial enlargement diagram of Fig. 6 (a);
Fig. 7 is a kind of flow chart of Zoom display method of measuring device 100.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of structure chart of the measuring device embodiment with zooming display function of the present invention is shown, it is described Measuring device 100 includes:
Storage unit 101, for storing the measurement data a acquired in real time;
Function key 102, for generating key information b when being triggered by user;
Control unit 103, for obtaining current scaling multiple c according to key information b, and according to current scaling multiple C reads measurement data a from storage unit 101, as display data d;
Display unit 104, for determining each display data d in waveform display interface according to current scaling multiple c In abscissa, according in measurement data a maximum value and minimum value determine each display data d in waveform display interface Ordinate;And wavy curve is drawn in waveform display interface according to the abscissa and ordinate of display data d.
In embodiments of the present invention, acquisition measurement data a, measurement data a can be voltage to measuring device 100 in real time Value, current value, resistance value, periodic quantity, frequency values or temperature value etc..Storage unit 101 carries out the measurement data acquired in real time Storage.
The function key 102 can be key, be also possible to other keyboards such as knob key, membrane keyboard, Menu key, accordingly , key information b is generated when being pressed by the user, rotating, touch or click.In the state of difference, Trigger Function key 102 Different key information b can be generated, control unit 103 obtains the scaling times of current (that is, after this triggering) according to key information b Number c before there are scaling multiple c multiple zoom levels, measuring device 100 to dispatch from the factory, can preset the scaling times of multiple zoom levels Number c.As one for example, from low to high according to rank, scaling multiple c is successively for example, scaling multiple c presets 5 ranks It is 1/3,1/2,1,2,3.When scaling multiple c equal to 1, wavy curve is routinely shown;When scaling multiple c greater than 1, wavy curve phase Than conventional amplification display, scaling multiple c is more greater than 1, and level of zoom is also higher, and wavy curve amplifies bigger;It is small to scale multiple c In 1, wavy curve is compared to conventional diminution display, and for scaling multiple c more less than 1, level of zoom is also lower, and what wavy curve reduced gets over It is small.
Then, control unit 103 is read partly or completely from storage unit 101 according to current scaling multiple c Measurement data a is input to the progress waveform of display unit 104 as display data d and shows.It should be noted that wavy curve with Channel is corresponding, and the channel of observation can be set in user, and display data d comes from channel measurement data a collected.
Display unit 104 determines cross of each display data d in waveform display interface according to current scaling multiple c Coordinate, when scaling multiple c is fixed, each adjacent two shows that the abscissa interval of data d also immobilizes;Different scaling multiples C, so that variation occurred at intervals in the abscissa of two neighboring display data d, scaling multiple c is bigger, and abscissa interval is bigger, scaling Multiple c is smaller, and abscissa interval is smaller, thus, the wavy curve drawn according to the coordinate of display data d is with scaling multiple c It is different the states that laterally (abscissa direction) zooms in or out are presented, as user it should be understood that the detail content of wavy curve When, it can be with waveform amplification curve;When user needs to observe the cross directional variations trend of wavy curve, then waveform song can be reduced Line.
Meanwhile the ordinate of each display data d is determined according to all maximum values shown in data d and minimum value , multiple c is scaled when due to each Zoom display to be different, measurement data a is read according to current scaling multiple c Also it is different, further, maximum value and minimum value in all display data d are also variation, therefore, aobvious in different zoom In the case of showing, the ordinate of each display data d is also corresponding change, with one with reference value unlike the prior art It immobilizes as benchmark, it can be seen that the present invention is after each scaling, the range value of wavy curve in waveform display interface It can change accordingly, user can intuitively observe variation tendency of the wavy curve in the ordinate on (longitudinal direction) very much.
It is the schematic diagram of entire screen display interface 200 shown by display unit 104, in measuring instrument referring to Fig. 2 100 when entering waveform display function, includes waveform display interface 201 in content shown by screen display interface 200, be used into Traveling wave shape is shown.In addition, Menu key 202 can also be shown in screen display interface 200, for example, it may be " addition channel " dish Singly-bound, " deleting channel " Menu key, " amplification " Menu key, " diminution " menu are built, and can also show measuring state 203, measurement The information such as the producer 204 of instrument, the channel 205 observed.Meanwhile the white space on 201 periphery of waveform display interface, example Such as, the lower section and left of waveform display interface 201 also need the abscissa of display waveform display interface 201 respectively and ordinate letter Breath;Wherein, the abscissa indicates the number of display data, and ordinate indicates the size of (measurement) value of display data.It can be with Understand, since display data are from measurement data, the value of each display data just represents corresponding The size of the value of measurement data shows that the value of data is actually measured value.
As one for example, in embodiments of the present invention, waveform display interface that the display unit 104 is shown The minimum value of 201 ordinates is the minimum value shown in data, and the maximum value of 201 ordinate of waveform display interface is display data In maximum value.
As shown in Fig. 2, being shown in waveform display interface 201 by 0 to 300 waveforms that totally 301 display data are constituted, then The minimum value of 201 ordinate of waveform display interface is the minimum value in the value of this 301 display data, is -9.87975569E- 01;The maximum value of 201 ordinate of waveform display interface is the maximum value in the value of this 300 display data, is 9.89421505E-01。
Referring to Fig. 3, after the wavy curve amplification to Fig. 2, entire screen display interface shown by display unit 104 200 schematic diagram.After amplification, shown in waveform display interface 201 by 0 to 100 waveforms that totally 101 display data are constituted, The minimum value 205 of 201 ordinate of waveform display interface becomes the minimum value in the value of this 101 display data, for- 9.87971595E-01;The maximum value 206 of 201 ordinate of waveform display interface is the maximum in the value of this 101 display data Value is 9.89413532E-01.
As another for example, in embodiments of the present invention, waveform display interface that the display unit 104 is shown The minimum value of 201 ordinates are as follows: the minimum value in display data subtracts the first preset range, 201 ordinate of waveform display interface Maximum value are as follows: display data in maximum value add the second preset range.First preset range and the second preset range It may be the same or different.For example, display data in minimum value be 1V, show data in maximum value be 20V, first Preset range and the second preset range are 5V, and the minimum value of 201 ordinate of waveform display interface is 1V-5V=- 4V, and waveform is aobvious The maximum value for showing 201 ordinate of interface is 20V+5V=25V.In ordinate direction, wavy curve is between -4V~25V.
As another for example, in embodiments of the present invention, waveform display interface that the display unit 104 is shown The minimum value of 201 ordinates are as follows: the minimum value in display data is divided by the first presupposition multiple, 201 ordinate of waveform display interface Maximum value are as follows: display data in maximum value multiplied by the second presupposition multiple.First presupposition multiple and the second presupposition multiple It may be the same or different.For example, display data in minimum value be 1V, show data in maximum value be 20V, first Presupposition multiple and the second presupposition multiple are 2, and the minimum value of 201 ordinate of waveform display interface is 1V/2=0.5V, and waveform is shown The maximum value of 201 ordinate of interface is 20V*2=40V.In ordinate direction, wavy curve is between 0.5V~40V.
For the prior art when drawing waveform display interface 201, the maximum value and minimum value of ordinate are corresponding logical respectively Maximum value and minimum value in whole measurement data of road acquisition, rather than the extreme value of current display data.The prior art exists Such a problem, after user zooms in and out, if the value of display data is in the maximum value and minimum value of whole measurement data Between range, in this way, wavy curve does not change in the longitudinal direction, only horizontally stretches or compress, it cannot well will be whole A trend shows.Therefore, above three illustrate selection display data maximum value and minimum value, by its directly or By the maximum value and minimum value after default transformation respectively as 201 ordinate of current form display interface, the pole of data is shown Value is still within the scope of the ordinate of waveform display interface 201, meanwhile, the ordinate of waveform display interface 201 be also with The zoom state of wavy curve changes according to the size for the value for showing data under different zoom state, before can making scaling Afterwards, the variation tendency comparison of wavy curve is prominent, more obvious in waveform display interface 201.
As one for example, in embodiments of the present invention, as shown in figure 4, described control unit 103 includes:
Ratio computing unit 401, for obtaining current scaling multiple c according to key information b;
Number determination unit 402, for determining the display number N of display data d according to current scaling multiple c;
Data-reading unit 403, for the sum according to the measurement data a stored in display number N and storage unit 101 N reads measurement data a from storage unit 101, as display data d;Wherein, N >=1, n >=1.
In this illustration, the different corresponding display data d of scaling multiple c different display number N.Show as one Example, above-mentioned different corresponding relationship can be pre-configured with, common, and scaling multiple c is smaller, and the display number N of display data d is got over It is more, and then the more data of display can be reduced;Scaling multiple c is bigger, shows that the display number N of data d is fewer, and then can amplify Show less data.As another example, it can only preset a scaling multiple c and show the corresponding relationship of number N, The corresponding relationship of remaining scaling multiple c and display number N can proportionally calculate in real time according to above-mentioned preset relation.
Further, the read method of measurement data a is that the total n of the measurement data a according to display number N and storage is determined , it specifically can be there are two types of application scenarios.
In application scenarios one, data acquisition:
The data-reading unit 403 reads measurement data a in data acquisition from storage unit 101;If The total n of the measurement data a of storage is more than or equal to N, then reads N number of measurement data a of newest storage, as display data d;Such as The total n of the measurement data a of fruit storage is less than N, then reads the n measurement data a all stored, as display data d.
That is, the quantity of read measurement data a is not necessarily exactly to show number N after determining display number N. For example, the total n for the measurement data a that storage unit 101 stores is 200, if the display number N of display data d is 100, 100 measurement data a that newest storage is then read from storage unit 101, as display data d, show to user and The newest corresponding wavy curve of measurement data a;If showing that the display number N of data d is 300, due in storage unit 101 There are no sufficient amount of measurement data a is stored, then the 200 measurement data a all stored are read from storage unit 101, As display data d.
After the completion of application scenarios two, data acquisition:
Described control unit 103 further includes user input interface, for receiving the starting number k of user's input;The number According to reading unit 403 after the completion of data acquire, measurement data a is read from storage unit 101, if starting number k is added N-1 is less than or equal to n and N number of measurement data a is read, as display then since measurement data a corresponding with the starting number k Data d;It is greater than n plus N-1 if originating number k, since measurement data a corresponding with the starting number k, reads n- K+1 measurement data a, as display data d;Wherein, k >=1.
After the completion of data acquisition, user can choose the starting point of the wavy curve to be observed, which can be with Any one data in the measurement data a that storage unit 101 stores.For example, the measurement number that storage unit 101 stores Total n according to a is 300, and the display number N of display data d is 150.If user input starting number k be 100, k+N-1= 249 < 300, then since 100th measurement data a corresponding with starting number 100, ends to the 249th measurement data a, read 150 measurement data a are taken, as display data d.If the starting number k of user's input is 200, k+N-1=349 > 300, from 200th measurement data a starts, and is not enough to read 150 data, then from the 200th measurement number corresponding with starting number 200 Start according to a, end to the 300th measurement data a, read n-k+1=101 measurement data a, as display data d.As one A example, display number N can be determining not based on scaling multiple c, but by user setting, then the user input interface may be used also With the display number N for receiving user's input.
As one for example, in embodiments of the present invention, the display unit 104 is true according to current scaling multiple Each the fixed abscissa of display data in waveform display interface includes: according to current scaling multiple and waveform display interface The number of pixels of abscissa obtains the corresponding number of pixels m of each display data;It is opened from waveform display interface abscissa minimum value Begin, at interval of m-1 pixel, the abscissa of corresponding display data, m >=1.
As another for example, in embodiments of the present invention, the display unit 104 according in measurement data most Big value and minimum value determine that each display data in the ordinate in waveform display interface includes: that lookup is shown in data most Big value and minimum value;The stepping of waveform display interface ordinate is calculated according to the maximum value and minimum value;According to the maximum Value, minimum value and stepping calculate each ordinate of display data in waveform display interface.
In the following, illustrating the determination method of middle abscissa and ordinate according to the example above in conjunction with Fig. 5, illustrating control The workflow of unit 103 and display unit 104.
Step 501, it initializes.
Measuring device is by taking data acquisition switch device as an example, and user is firstly the need of configuration scan table, setting scanning circle number (that is, cycle-index of scan table), then starting scanning, data acquisition switch device according to user configuration one by one channel carry out Measurement, the measurement data of acquisition is stored in storage unit 101.Meanwhile it is required that screen display interface is pre- at interval of one If time (such as at interval of 1 second) periodic refreshing is primary.
Step 502, control unit 103 obtains current scaling multiple according to key information, and according to current scaling times Number determines the display number N of display data.
Then, control unit 103 can determine the display number N of display data according to current scaling multiple to timing. It is understood that if function key 102 does not generate key information in periodic refreshing time interval, then current scaling times Number is constant, as preceding once according to the most newly generated scaling multiple of key information.Assuming that when default routine display, scaling multiple is 1, display number N is 300, and from low to high according to level of zoom, preset scaling multiple is respectively 1,2,3,4,5,6, correspondingly, According to different scaling multiples, shown on waveform display interface the display number N of data be respectively 300,150,100,75,60, 50。
Step 503, judge whether the total n of the measurement data stored in storage unit 101 is more than or equal to N;If so, holding After row step 504, step 506 is executed;If it is not, executing step 506 after thening follow the steps 505.
Step 504, the N number of measurement data for reading newest storage, as display data.
Step 505, the n measurement data all stored is read, as display data.
For step 503~505, by taking the conventional display number N of default is 300 as an example, if stored in storage unit 101 The total n of measurement data is more than or equal to display number 300, then shows wavy curve corresponding with newest 300 measurement data; If the total n of measurement data is less than display number 300, wavy curve corresponding with all measurement data of storage is shown. When measurement data is read in step 504,505, the measurement data to be read can be copied to memory from storage unit 101 In, then the data in memory are to show data.
Step 506, the number of pixels according to current scaling multiple and waveform display interface abscissa, obtains each display The corresponding number of pixels m of data.
Assuming that the abscissa width of waveform display interface is 300 pixels, when defaulting conventional display, each pixel represents one A display data at most show 300 display data.When user's Trigger Function key 102, so that scaling multiple increases a grade Not, for example, when becoming 2 from 1, then the corresponding number of pixels m of each display data is 2, and wavy curve amplifies level-one, and waveform is shown Interface can at most show 150 display data.When user's Trigger Function key again, so that scaling multiple is further added by a grade Not, when becoming 3 from 2, then the corresponding number of pixels m of each display data is 3, and wavy curve amplifies level-one again, and waveform shows boundary Face can at most show 100 display data.And so on.
Step 507, since waveform display interface abscissa minimum value, at interval of m-1 pixel, a corresponding display number According to abscissa, m >=1.
For example, one corresponding number of pixels of display data is 3 when current zoom multiple is 3, then at interval of 2 pixels, Determine the abscissa of a display data.Preferably, each abscissa of display data in waveform display interface, according to aobvious Show that the sequencing of data acquisition time is from left to right uniformly distributed.Since display data store in storage unit 101 Measurement data, therefore, the acquisition time of each display data i.e. the acquisition time of each corresponding measurement data, the The abscissa of one display data is the minimum value of the abscissa of waveform display interface.In addition, each display data is in wave Abscissa in shape display interface can also be uniformly distributed from right to left according to the sequencing of display data acquisition time.
Step 508, the maximum value and minimum value in display data are searched.From this step, start to calculate the vertical of display data Coordinate.
Step 509, the stepping of waveform display interface ordinate is calculated according to the maximum value and minimum value.
Since the maximum value of waveform display interface ordinate is the maximum value shown in data, waveform display interface ordinate Minimum value be show data in minimum value, then the uppermost pixel of waveform display interface ordinate represents the maximum Value, the nethermost pixel of ordinate represents the minimum value, to calculate stepping, then obtains first maximum in display data Be worth the difference between minimum value, it is then possessed total in the ordinate direction by the difference divided by waveform display interface Number of pixels, so that it may obtain the stepping between the two neighboring pixel of waveform display interface ordinate.
Step 510, each display data is calculated in waveform display interface according to the maximum value, minimum value and stepping Ordinate.
Step 511, the display unit 104 is drawn in waveform display interface according to the abscissa and ordinate of display data Wavy curve processed.It is shown specifically, drawing each display data according to the abscissa of display data and ordinate in waveform Position in interface;Each display data are sequentially connected with curve.
Step 512, judge whether data acquisition finishes;If it is not, then return step 502;If so, terminating.
It in above-mentioned process, is carried out for the read method of measurement data in data acquisition by control unit 103 It introduces, the reading process of measurement data, can refer to the explanation of aforementioned applications scene two, accordingly change step after the completion of data acquisition 503~505.The present invention is not construed as limiting the sequencing for calculating abscissa and ordinate, can also be first in above-mentioned process Step 508~510 are executed, then execute step 506~507.
In the following, lifting a specific example, the scaling process of wavy curve is further illustrated.In this example, measurement dress Set configured in 100 scan table 10 channels (for example, channel a1 to channel a10) measures DC voltage respectively, then measurement data It is exactly voltage value.In Channel scan, data acquisition, user wants the measurement data of monitor channel a1, checks channel a1 Wavy curve, first have to enter waveform display interface, addition channel a1 carry out waveform observation.In this example, it is preferred that institute When stating control unit 103 and being also used to first enter waveform display interface after powering, directly using the scaling multiple of default as working as Preceding scaling multiple.In this example, the scaling multiple of default is 1, on the horizontal scale, each display one pixel table of data Show.When pre-set zoom multiple is 1, show that the display number N of data is 300, observable display data are more at this time, it is not easy to Observe the details of wavy curve.The then further multiple Trigger Function key of user, after amplification 5 times, making to scale multiple becomes 6, at this point, Wavy curve is amplified to maximum, can observe the details of wavy curve.On the horizontal scale, corresponding 6 pictures of each display data Element, that is, at interval of 5 pixels, the abscissa of corresponding display data.
Assuming that being directed to channel a1, storage unit 101 stores 10 measurement data altogether, according to the sequencing in sampling time Respectively 1V, 2V, 1.5V, 3V, 4V, 2V, 3V, 4V, 2V, 3V.In the following, for after amplification 4 times, when current scaling multiple is 5 Control unit 103 and the workflow of display unit 104 are specifically described:
Step 601, control unit 103 is according to current scaling multiple 6, the data amount check that can be shown be 300 pixels/ 6 pixel=50.Then show that number N can be 50.Preferably, in waveform display interface, in addition head and tail, can at most draw System by 0 to 50 totally 51 display data wavy curve, i.e., show number N can also be 51.
Step 602, total n=10 of the measurement data stored in storage unit 101, less than the display number of display data N。
Step 603,10 measurement data all stored are read, as display data.
Step 604, it is 4V, minimum value 1V that display unit 104, which searches the maximum value of this 10 display data,.
Step 605, total pixel of waveform display interface ordinate is 160 pixels, then calculates the stepping of ordinate=(most Big value-minimum value)/ordinate total pixel=(4V-1V)/160 pixels=0.01875V/ pixel.
Step 606, each ordinate and abscissa of display data in waveform display interface is calculated.
It is the schematic diagram of waveform display interface referring to Fig. 6 (a).The abscissa minimum value of waveform display interface is started from scratch, Corresponding first display data are at best able to 51 display data of display, then the maximum value of abscissa is 50;The maximum of ordinate Value is the maximum value 4V in display data, and the minimum value of ordinate is the minimum value 1V shown in data.Waveform display interface Left upper apex, bottom left vertex, right vertices and bottom right vertex coordinate be respectively as follows: (0,4V), (0,1V), (50,4V), (50, 1V).Left upper apex, bottom left vertex, right vertices and the bottom right vertex of waveform display interface are in entire screen display interface Pixel coordinate position is respectively as follows: (140,55), (140,215), (440,55), (440,215).
According to the sequencing in sampling time, the voltage value of first display data (corresponding first measurement data) is 1V, the coordinate in waveform display interface is (0,1V), and the pixel coordinate position corresponded in entire screen display interface is (140,215).
The voltage value of second display data (corresponding second measurement data) is 2V, the coordinate in waveform display interface For (1,2V), the pixel for corresponding to the abscissa in entire screen display interface is 140+6=146, and the pixel of ordinate is 215- (2V-1V)/0.01875 (V/ pixel)=161.67 rounds up processing to the fractional part of pixel, obtains, second display Pixel coordinate position of the data in entire screen display interface is (146,162).
The pixel coordinate position of remaining display data is successively calculated in this way.
Step 607, each display data is drawn according to the abscissa of display data and ordinate and is showing boundary in waveform Position in face is sequentially connected with each display data with curve from left to right.
Step 608, data acquisition is completed, and is exited.
In order to more clearly indicate the coordinate of each display data, by first row grid (laterally wide 60 pictures in upper figure Element) amplification, as shown in Figure 6 (b), left upper apex, bottom left vertex, right vertices and the bottom right vertex of the Local map are in entire screen Pixel coordinate position in display interface is respectively as follows: (140,55), (140,215), (200,55), (200,215), and 10 in figure A dot respectively illustrates 10 displays data corresponding with 10 measurement data, 6, the abscissa interval pixel of each dot.
As one for example, the function key 102 includes: the first function button and the second function button;Described When one function button is triggered, the current scaling multiple that described control unit 103 obtains amplifies the wavy curve, institute When stating the second function button and being triggered, the current scaling multiple that described control unit 103 obtains makes the wavy curve contract It is small.First function button is equivalent to enlargement key, and second function button is equivalent to diminution key.In this illustration, As an example, described control unit 103 is also used to save the scaling multiple obtained every time;And receive the first function by When the key information that key generates, a level of zoom is incremented by the scaling multiple of newest preservation, obtains current scaling multiple, when Preceding scaling multiple increases compared to the scaling multiple of newest preservation, so that the wavy curve amplifies;Receiving the second function When the key information that key generates, successively decreases a level of zoom to the scaling multiple of newest preservation, obtains current scaling multiple, Current scaling multiple reduces compared to the scaling multiple of newest preservation, so that the wavy curve reduces.
In the following, the Zoom display method of the measuring device 100 is further illustrated referring to Fig. 7, in this illustration, The function key includes: to reduce key and enlargement key, and preset 6 level of zoom: 0~5 grade, the corresponding scaling multiple of above-mentioned rank It is 1/2,1,2,3,4,5 respectively.
Step 701, current level of zoom is obtained according to key information.
For example, the level of zoom of initial default is 1 grade, it is triggered once when reducing key, when a level of zoom of successively decreasing, when Preceding level of zoom is 0 grade;It is triggered twice when reducing key, when two level of zoom of successively decreasing, current level of zoom is -1 grade; When enlargement key is triggered once, is incremented by a level of zoom, current level of zoom is 2 grades;When enlargement key is triggered twice, When being incremented by two level of zoom, current level of zoom is 3 grades;The rest may be inferred.
Step 702, judge whether current level of zoom is between pre-set level range;If so, thening follow the steps 703;If it is not, thening follow the steps 704.
In this illustration, pre-set level range is 0~5 grade, which judges whether current level of zoom is in 0~ Between 5, if it is less than being equal to 0 and being more than or equal to 5, then explanation can carry out the scaling of wavy curve by current level of zoom Display executes step 703;If it is greater than 5 or less than 0, then the contracting of wavy curve can not be carried out by current level of zoom Display is put, step 704 is executed.
Step 703, current level of zoom is saved and updated, and obtains scaling multiple according to level of zoom;And execute step Rapid 705.
The storage unit 101 can recorde current level of zoom, specifically can be complete by one in actual treatment Office's variable records current level of zoom, and the value of the global variable is searched by a variate-value title of respective channel.
Step 704, it sends a warning message, notice level of zoom is maximum or minimum.
The alert message of sending can make text information, acoustic information or light information etc..For example, can be aobvious in screen Show pop-up warning message frame on interface, if level of zoom is greater than 5, which notifies user to be amplified to maximum, if Level of zoom is less than 0, then the information notifies user to be contracted to minimum.
Step 705, the display number of display data is obtained according to current scaling multiple.
Step 706, measurement data is read, as display data.Specifically, measurement data is read from storage unit 101, The measurement data is copied in memory, as display data.
Step 707, the abscissa and ordinate of display data are calculated, and aobvious in waveform according to the abscissa and ordinate Show and draws wavy curve in interface.
As another for example, the function key is knob key;The knob key, which is rotated in a first direction, to be triggered When, the current scaling multiple that described control unit 103 obtains amplifies the wavy curve, and the knob key is along second party When being triggered to rotation, the current scaling multiple that described control unit 103 obtains reduces the wavy curve.In this act In example explanation, as an example, described control unit 103 is also used to save the scaling multiple obtained every time;And it is receiving When the knob key is rotated in a first direction the key information of generation, a zoom-level is incremented by the scaling multiple of newest preservation Not, current scaling multiple is obtained, current scaling multiple increases compared to the scaling multiple of newest preservation, so that the waveform is bent Line amplification;When receiving knob key and rotating in a second direction the key information of generation, successively decrease to the scaling multiple of newest preservation One level of zoom obtains current scaling multiple, and current scaling multiple reduces compared to the scaling multiple of newest preservation, so that The wavy curve reduces.The first direction can be clockwise, be also possible to counterclockwise, corresponding, institute Stating second direction can be counterclockwise, or clockwise.
As another for example, described control unit 103 is also used to save the scaling multiple obtained every time;And it is returning When returning to waveform display interface, the scaling multiple of newest preservation is read as current scaling multiple.For example, booting after user into Enter waveform display interface observation wavy curve, is adjusted by zoom function, observe the scaling multiple of wavy curve for the last time It is 3, is shown according to 3 times of amplifications, each display data is indicated with 3 pixels.Later, user enters the configuration interface of scan table, Scan table is reconfigured, then, waveform display interface observation wavy curve is again returned to, reads the scaling times of newest preservation at this time Number 3, still according to 3 times of amplification display waveform curves.As another for example, described control unit 103 is also used to returning When returning to waveform display interface, the scaling multiple of default is read as current scaling multiple.For example, the scaling multiple of default is 1, user jumps under each function interface, when entering waveform display interface every time, according to scaling 1 display waveform of multiple Curve.
Measuring device 100 of the invention can be oscillograph, multimeter, data acquisition switch device.Data acquisition switch Device is a kind of frame-type card instrument, and multimeter card, multichannel adjuster card, executor, matrix card, radio frequency can be inserted Card, multifunction card etc..User can use the multimeter card circulation measurement multichannel adjuster control in data acquisition switch device The measurement data acquired in real time is stored in storage unit 101 by the measurement data of the measurement point of system.
Above to a kind of measuring device with zooming display function provided by the present invention, it is described in detail, this Apply that a specific example illustrates the principle and implementation of the invention in text, the explanation of above example is only intended to It facilitates the understanding of the method and its core concept of the invention;At the same time, for those skilled in the art, think of according to the present invention Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair Limitation of the invention.

Claims (12)

1. a kind of measuring device with zooming display function, comprising:
Storage unit, for storing the measurement data acquired in real time;
It is characterized by further comprising:
Function key, for generating key information when being triggered by user;
Control unit, for obtaining current scaling multiple according to key information, and it is single from storage according to current scaling multiple Measurement data is read in member, as display data;
Display unit, for determining each the horizontal seat of display data in waveform display interface according to current scaling multiple Mark determines each ordinate of display data in waveform display interface according to the maximum value and minimum value that show in data; And wavy curve is drawn in waveform display interface according to the abscissa and ordinate of display data.
2. measuring device as described in claim 1, which is characterized in that
The minimum value for the waveform display interface ordinate that the display unit is shown is the minimum value shown in data, and waveform is shown The maximum value of interface ordinate is the maximum value shown in data.
3. measuring device as claimed in claim 2, which is characterized in that the display unit is according to the maximum value in measurement data Determine that each ordinate of display data in waveform display interface includes: with minimum value
Search the maximum value and minimum value in display data;The vertical seat of waveform display interface is calculated according to the maximum value and minimum value Target stepping;Each the vertical seat of display data in waveform display interface is calculated according to the maximum value, minimum value and stepping Mark.
4. measuring device as claimed in claim 2, which is characterized in that the display unit is determined according to current scaling multiple Each shows that the abscissa of data in waveform display interface includes:
According to the number of pixels of current scaling multiple and waveform display interface abscissa, the corresponding picture of each display data is obtained Plain number m;Since waveform display interface abscissa minimum value, at interval of m-1 pixel, the horizontal seat of corresponding display data Mark, m >=1.
5. measuring device as claimed in claim 4, which is characterized in that
Each abscissa in waveform display interface of display data, according to the sequencing of display data acquisition time from a left side It is uniformly distributed to the right side.
6. measuring device as described in claim 1, which is characterized in that described control unit includes:
Ratio computing unit, for obtaining current scaling multiple according to key information;
Number determination unit, for determining the display number N of display data according to current scaling multiple;
Data-reading unit, for according to the total n of measurement data stored in display number N and storage unit from storage unit Middle reading measurement data, as display data;Wherein, N >=1, n >=1.
7. measuring device as claimed in claim 6, which is characterized in that
The data-reading unit reads measurement data in data acquisition from storage unit;
If the total n of the measurement data of storage is more than or equal to N, N number of measurement data of newest storage is read;If storage The total n of measurement data is less than N, then reads the n measurement data all stored.
8. measuring device as claimed in claim 6, which is characterized in that
Described control unit further includes user input interface, for receiving the starting number k of user's input;
The data-reading unit reads measurement data after the completion of data acquire from storage unit;
It is less than or equal to n plus N-1 if originating number k, since measurement data corresponding with the starting number k, reads N A measurement data;It is greater than n plus N-1 if originating number k, since measurement data corresponding with the starting number k, reads Take n-k+1 measurement data;Wherein, k >=1.
9. measuring device as claimed in any one of claims 1 to 8, which is characterized in that
The function key includes: the first function button and the second function button;
When first function button is triggered, the current scaling multiple that described control unit obtains makes the wavy curve Amplification, when second function button is triggered, the current scaling multiple that described control unit obtains makes the waveform bent Line reduces.
10. measuring device as claimed in claim 9, which is characterized in that
Described control unit is also used to save the scaling multiple obtained every time;And in the key for receiving the generation of the first function button When information, a level of zoom is incremented by the scaling multiple of newest preservation, current scaling multiple is obtained, is receiving the second function Can key generate key information when, successively decrease a level of zoom to the scaling multiple of newest preservation, obtain current scaling times Number.
11. measuring device as claimed in any one of claims 1 to 8, which is characterized in that
Described control unit is also used to save the scaling multiple obtained every time;And when returning to waveform display interface, read most The scaling multiple newly saved is as current scaling multiple.
12. measuring device as claimed in any one of claims 1 to 8, which is characterized in that
When described control unit is also used to first enter waveform display interface after powering, directly using the scaling multiple of default as Current scaling multiple.
CN201310196896.0A 2013-05-24 2013-05-24 A kind of measuring device with zooming display function Active CN104181365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310196896.0A CN104181365B (en) 2013-05-24 2013-05-24 A kind of measuring device with zooming display function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310196896.0A CN104181365B (en) 2013-05-24 2013-05-24 A kind of measuring device with zooming display function

Publications (2)

Publication Number Publication Date
CN104181365A CN104181365A (en) 2014-12-03
CN104181365B true CN104181365B (en) 2019-01-29

Family

ID=51962586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310196896.0A Active CN104181365B (en) 2013-05-24 2013-05-24 A kind of measuring device with zooming display function

Country Status (1)

Country Link
CN (1) CN104181365B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108318723B (en) * 2017-01-17 2022-03-29 普源精电科技股份有限公司 Waveform scaling method, device and system
CN107016644A (en) * 2017-03-23 2017-08-04 陕西法士特齿轮有限责任公司 A kind of vehicular collecting system pantography quantization method based on Labview
CN108664194B (en) * 2017-03-29 2021-08-06 中兴通讯股份有限公司 Display method and device
JP6965058B2 (en) * 2017-08-22 2021-11-10 日置電機株式会社 Waveform display device and waveform display program
CN109975589A (en) * 2017-12-27 2019-07-05 北京金风科创风电设备有限公司 Data processing method and device, display device and computer readable storage medium
CN108499109B (en) * 2018-03-22 2022-04-01 厦门龙视科技有限公司 Method for realizing real-time unilateral scaling of article based on UE engine
CN109933264B (en) * 2019-03-19 2022-01-04 深圳市元征科技股份有限公司 Graphic data display method and device
CN112433801A (en) * 2020-12-02 2021-03-02 杭州和利时自动化有限公司 Oscilloscope interface display method, device, equipment and medium
CN113812940B (en) * 2021-08-25 2024-04-26 武汉联影生命科学仪器有限公司 Method for adjusting tuning curve display and display interaction device
CN114816606B (en) * 2021-01-28 2024-04-02 抖音视界有限公司 Self-adaptive adjustment method and device of window graduated scale, electronic equipment and medium
CN113466521A (en) * 2021-06-30 2021-10-01 深圳市道通科技股份有限公司 Digital oscilloscope and waveform display method based on same
CN113447692B (en) * 2021-08-31 2021-11-26 深圳市鼎阳科技股份有限公司 Oscilloscope with data recording function and waveform display method thereof
CN114115780A (en) * 2021-11-23 2022-03-01 深圳市汇川技术股份有限公司 Waveform display method of oscilloscope, oscilloscope and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2938115Y (en) * 2006-08-25 2007-08-22 王悦 Digital oscilloscope
CN101131403A (en) * 2006-08-23 2008-02-27 王悦 Digital oscillograph and its waveshape displaying method
US7545377B2 (en) * 2006-05-25 2009-06-09 Tektronix, Inc. Method and apparatus for digitized waveform display
JP4665955B2 (en) * 2007-11-21 2011-04-06 横河電機株式会社 Display device
CN102109543A (en) * 2010-12-08 2011-06-29 电子科技大学 Digital three-dimensional oscilloscope with real-time waveform image scaling function
CN102707114A (en) * 2012-06-13 2012-10-03 郑州麦科信电子技术有限公司 Waveform control method of digital oscilloscope
CN102955053A (en) * 2011-08-19 2013-03-06 特克特朗尼克公司 Apparatus and method for time correlated signal acquisition and viewing
CN102981673A (en) * 2012-11-08 2013-03-20 天津市德力电子仪器有限公司 Method of measuring parameters set by measuring instrument for the purpose of supporting multi-touch screen

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7545377B2 (en) * 2006-05-25 2009-06-09 Tektronix, Inc. Method and apparatus for digitized waveform display
CN101131403A (en) * 2006-08-23 2008-02-27 王悦 Digital oscillograph and its waveshape displaying method
CN2938115Y (en) * 2006-08-25 2007-08-22 王悦 Digital oscilloscope
JP4665955B2 (en) * 2007-11-21 2011-04-06 横河電機株式会社 Display device
CN102109543A (en) * 2010-12-08 2011-06-29 电子科技大学 Digital three-dimensional oscilloscope with real-time waveform image scaling function
CN102955053A (en) * 2011-08-19 2013-03-06 特克特朗尼克公司 Apparatus and method for time correlated signal acquisition and viewing
CN102707114A (en) * 2012-06-13 2012-10-03 郑州麦科信电子技术有限公司 Waveform control method of digital oscilloscope
CN102981673A (en) * 2012-11-08 2013-03-20 天津市德力电子仪器有限公司 Method of measuring parameters set by measuring instrument for the purpose of supporting multi-touch screen

Also Published As

Publication number Publication date
CN104181365A (en) 2014-12-03

Similar Documents

Publication Publication Date Title
CN104181365B (en) A kind of measuring device with zooming display function
EP0775915B1 (en) Method of displaying continuously acquired data as multiple traces on a fixed length display
US20110273478A1 (en) Auto-scaling strip chart
JP6083922B2 (en) Waveform display apparatus and method
US6753677B1 (en) Trigger jitter reduction for an internally triggered real time digital oscilloscope
JP2011523706A (en) Signal search with 3D bitmap
US6947043B1 (en) Method of operating an oscilloscope
KR20110025611A (en) Test and measurement instrument and method for providing post-acquisition trigger control and presentation
KR20110025610A (en) Test and measurement instrument and method for providing post-acquisition trigger control and presentation
US9031803B2 (en) Waveform display method and a signal measurement system implementing the same
WO2019134684A1 (en) Oscilloscope signal processing method and device and oscilloscope
CN105247382A (en) Magnetic resonance imaging system with ghost artifact reduction and method of operation thereof
US20140215379A1 (en) Method for Automatically Adjusting the Magnification and Offset of a Display to View a Selected Feature
CN110887984B (en) Digital oscilloscope supporting eye pattern reconstruction
CN110672899A (en) Eye pattern reconstruction method for digital oscilloscope and storage medium
US20200348342A1 (en) Method and apparatus for processing oscilloscope data and oscilloscope
US9204019B2 (en) Measuring device and method for calculating response time of electronic device
US10580175B2 (en) Apparatus, method and system for resolution dependent graphical representation of signals
US20140086499A1 (en) Dynamic creation of trend graph
CN104135666A (en) Interpolation storage method and system for screen image as well as replay method
CN106846433B (en) Signal change diagram drawing method and device and electronic equipment
JP2016050829A (en) Wave-form recording apparatus
CN113447692B (en) Oscilloscope with data recording function and waveform display method thereof
CN113125826B (en) Transient power operation and triggering method of oscillography power analyzer
CN113466521A (en) Digital oscilloscope and waveform display method based on same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

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

Patentee after: Puyuan Jingdian Technology Co.,Ltd.

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

Patentee before: RIGOL Technology Co.,Ltd.

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

Patentee after: RIGOL Technology Co.,Ltd.

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

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