The invention relates to a method and a device for displaying digital measurement values on pixel-based display devices, in particular, display devices in measuring devices.
For the display of digital measurement values on pixel-based displays, the measurement values are conventionally imaged as precisely as possible onto individual pixels. However, if the measurement values are disposed far apart, an image of poor legibility, which only consists of individual points, is obtained. For this reason, an interpolation between the measurement values is conventionally implemented. This produces a more readily legible image, but is associated with high calculation costs. However, if the sampling times of the digital signal are not synchronized with the image change of the display, an unstable image is also obtained with this method, because different measurement curves result from the different interpolation points of the interpolation.
Accordingly, a method and a device for the presentation of waveforms are disclosed in EP 0 919 818 B1. The method uses an interpolation of displayed points between measurement values. On one hand, this requires a high calculation cost. On the other hand, a stable image is not always produced, since the position of the interpolation points of the interpolation varies because of lack of synchronicity of the sampling times with the structuring of the image.
The invention is based upon the object of providing a method and a device, which present digital measurement values on a display with a stable image, good legibility and low calculation costs.
This object is achieved for the method according to the invention by the features of the independent claim 1 and for the device by the features of the independent claim 7. Advantageous further developments form the subject matter of the dependent claims relating back to these claims.
For the display of measurement values on a two-dimensional pixel-based display device, measurement points in a two-dimensional coordinate system are formed from sampled and digitized measurement values. In this context, the resolution of each measurement point according to time and/or value is higher than the resolution of the two-dimensional, pixel-based display. The measurement points are connected to form a continuous measurement-point curve, if they are not disposed on directly adjacent pixels. To determine the pixels of the continuous measurement-point curve between two measurement points to be displayed, which are not disposed on directly adjacent pixels, the position of the adjacent measurement points within the associated pixels is taken into consideration. The continuous measurement-point curve displayed becomes clearer as a result and, over the time course of the measurement with a constant signal, is more stable than with conventional display methods.
To determine the pixels of the continuous measurement-point curve between two adjacent measurement points to be displayed, which are horizontally offset by precisely one pixel, one or more transition points of the continuous measurement-point curve are preferably calculated across the boundaries between the pixel rows. The continuous measurement-point curve from the first of the two adjacent measurement points to the first transition point is advantageously displayed in the pixel row of the first measurement point. The continuous measurement-point curve from the first transition point to the last transition point is advantageously displayed in each case in the scanned pixel row. The continuous measurement-point curve from the last transition point to the second of the two adjacent measurement points is advantageously displayed in the pixel row of the second measurement point.
To determine the pixels of the continuous measurement-point curve between two adjacent measurement points to be displayed, which are vertically offset, a transition point of the continuous measurement-point curve is preferably calculated across the boundaries between the pixel columns. The continuous measurement-point curve from the first of the two adjacent measurement points to the first transition point is advantageously displayed in the pixel column of the first measurement point. The continuous measurement-point curve from the first transition point to the last transition point is advantageously displayed in each case in the scanned pixel column. The continuous measurement-point curve from the last transition point to the second of the two adjacent measurement points is advantageously displayed in the pixel column of the second measurement point. Accordingly, it is unambiguously specified how the measurement-point curve is to be displayed. An unambiguous, clear and at the same time stable curve, which largely corresponds to the characteristic of the analog measurement value is obtained.
The transition point or points are preferably calculated from the proportions of the length of a direct connecting line of the two measurement points extending in the pixel columns or respectively the pixel rows. With a curve obtained in this manner, the proximity to the analog measurement values can be further increased.
The two adjacent measurement points to be connected to form a continuous measurement-point curve are advantageously horizontally or vertically offset by precisely one pixel column or respectively pixel row.
As an alternative, all pixels exceeded by a direct connecting line of the two measurement points to be connected are displayed as a part of the continuous measurement-point curve. As a result of this alternative method, a sufficiently stable and clear curve is achieved with a very low calculation cost.
The invention is described by way of example with reference to the drawings, in which an advantageous exemplary embodiment of the invention is illustrated. The drawings are as follows:
Initially, the problem and the signals occurring are explained with reference to
The following table provides a summary of the formula characters used below.
In
Since triggering and sampling are independent of one another, the first sampled value is not generally disposed exactly at the triggering time, but is offset in time by the trigger offset TTO 16.
Let fa be the sampling rate, then
T
S=1/fa (1)
is the interval between two sampled values 13. The first sampled value 13 is then disposed after the triggering event randomly within the range
0≦TTO<TS (2)
If this first sampled value 13 has the index k=0, then the k-th sampled value 13 is disposed at the time tS(k) with
t
S(k)=k·TS+TTO (3)
If a time
T
Display (4)
is displayed on the whole screen, with NPX pixel columns 14, a time TPX per pixel column 14 is calculated as
T
PX
=T
Display
/N
PX. (5)
A sample xS(k) is displayed in the m-th pixel column 14, if
m·T
PX
≦k·T
S(k)+TTO<(m+1)·TPX with 0≦m≦NPX−1 (6)
applies. This equation can also be reformulated as follows:
wherein SPX(k) indicates the pixel column 14, to which the k-th sample is assigned. The function floor rounds off the argument. This results in an average sample number NS
By way of example: if
f
a=1 GHz, (9)
it follows that
T
S=1/fa=1 n sec. (10)
If the screen has NPX=1000 columns and if a time of TDisplay=20 μs is displayed, the following results:
T
PX
=T
Display
/N
PX=20 μsec/1000=2 n sec (11)
and furthermore
By analogy, for
f
a=0.5 GHz, (13),
the following applies
The simplest display mode is the so-called point mode: only the sampled values are presented on the screen as points. If only one measurement curve and a small NS
either NS
or, in the case of a periodic signal, several measurement curves must be superimposed. Since the trigger offset varies in a random manner, a continuous curve is obtained.
In general, the brightness of a pixel on the screen is proportional to the frequency of how often this image point has been “hit”.
Another mode is the linear mode; in this mode, in each case, two sampled values k and k+1 following one another in time succession are connected by a line in the screen display. In the case of current measuring devices, if these two points are not disposed in the same screen column, three different methods are used for the line display. In
The disadvantages of these illustrated methods are that the line does not reflect the actual characteristic of the measured curve. This applies in particular, if the line is drawn completely in the column of measurement point k 33 or of measurement point k+1 34.
In
In
Equation (15) can also be reformulated: the distance between the k-th and the k+1-th point according to equation (10) is TS. With
Δt1(k)=SPX(k+1)·TPX−k·tS(k)=(m+1)·TPX−tS(k)
Δt2(k)=(k+1)·tS(k+1)−SPX(k+1)·TPX=(k+1)·tS(k+1)−(m+1)·TPX with TS=Δt1(k)+Δt2(k) (16),
Δt1(k) is the time interval of the k-th point 63, 66, 68 at the start of the next image column m+1, while Δt2(k) indicates how far the k+1-th point 64, 65, 67 is already disposed in the column m+1. If equation (15) is reformulated using equation (16), the following is obtained
Accordingly, it is evident that with the measurement points 63 and 64, which are both disposed at the left-hand edge of their respective pixel column 14, the connecting line 60 extends completely within the pixel column 14 of measurement point 63. In the case of measurement points 65, 66 disposed centrally in the pixels, the connecting line 61 extends in equal portions within the pixel columns 14 of measurement points 65, 66. The measurement points 67, 68 are both disposed at the right-hand edge of their respective pixel column 14. Accordingly, the connecting line 62 extends completely within the pixel column 14 of measurement point 67. The characteristic of the curve for every measurement-point distribution is therefore reflected in an optimum manner within the pixel. Furthermore, the artefacts, as seen in the example from
In
Accordingly, with the method according to the invention, no artefacts occur. By contrast, with a conventional linear interpolation with NInterpolation interpolation points, artefacts can occur under the following conditions:
if the number of interpolation points NInterpolation is selected too low relative to the current line length N(k)Line, for example, 10 interpolation points, while the vertical distance between two image points is 200 lines, then only one point in every 20th line is set. If these 10 interpolation points are connected, artefacts once again occur.
if the number of interpolation points NInterpolation is selected to be large, for example, 100 interpolation points, while the vertical distance between two image points is 10 lines, considerable, superfluous calculation costs are incurred.
moreover, with a fixed number of NInterpolation interpolation points, a further artefact is provided: for example, if NInterpolation 100, then every linear point with N(k)Line=10 is set a total of 10 times and appears considerably brighter, than if the line were to have a length of N(k)Line=100, wherein each image point is set only once.
In
The invention is not restricted to the exemplary embodiment presented. As already mentioned, both horizontal and also vertical transitions of the measurement-point curve can be processed across the pixel rows or respectively columns. Similarly, the use of the method in three-dimensional, pixel-based displays is conceivable. All the features described above or illustrated in the diagrams can be combined with one another as required within the framework of the invention.
Number | Date | Country | Kind |
---|---|---|---|
10 2007 042 323.5 | Sep 2007 | DE | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP08/04790 | 6/13/2008 | WO | 00 | 3/4/2010 |