[go: up one dir, main page]

CN102981673B - Method of measuring parameters set by measuring instrument for the purpose of supporting multi-touch screen - Google Patents

Method of measuring parameters set by measuring instrument for the purpose of supporting multi-touch screen Download PDF

Info

Publication number
CN102981673B
CN102981673B CN201210443979.0A CN201210443979A CN102981673B CN 102981673 B CN102981673 B CN 102981673B CN 201210443979 A CN201210443979 A CN 201210443979A CN 102981673 B CN102981673 B CN 102981673B
Authority
CN
China
Prior art keywords
waveform
ordinate
horizontal ordinate
parameter
main control
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
CN201210443979.0A
Other languages
Chinese (zh)
Other versions
CN102981673A (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.)
Tianjin Deli Instrument Equipment Co., Ltd.
Original Assignee
DELI ELECTRONIC INSTRUMENT Co Ltd TIANJIN CITY
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 DELI ELECTRONIC INSTRUMENT Co Ltd TIANJIN CITY filed Critical DELI ELECTRONIC INSTRUMENT Co Ltd TIANJIN CITY
Priority to CN201210443979.0A priority Critical patent/CN102981673B/en
Publication of CN102981673A publication Critical patent/CN102981673A/en
Application granted granted Critical
Publication of CN102981673B publication Critical patent/CN102981673B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention provides a method of measuring parameters set by a measuring instrument for the purpose of supporting a multi-touch screen. The measuring instrument for the purpose of supporting the multi-touch screen comprises a main control unit based on an advanced RISC machine (ARM), a measuring module and a display module. A traditional method with a keyboard or a key to set parameters by the measuring instrument is changed, and the measuring parameters are set by using two-touch gesture operation on the multi-touch screen. The ARM-based main control unit calculates central points of connection line segments of starting positions and stopping positions of two touch points, according to an included angle of a connecting line of the two central points and an X-axis and two threshold valve set for the inclined angle, a horizontal coordinate or a vertical coordinate is decided to be independently set as required, or the horizontal coordinate and vertical coordinate parameters are simultaneously set, the set measuring parameters are sent to the measuring module, the measuring module processes wavy data by novel measuring parameters, and then the wavy data is displayed in the display module by the ARM main control unit, and thus the process that the measuring parameters are set by the gesture operation is completed.

Description

For supporting the method for the surveying instrument setting measurement parameter of multi-touch screen
Technical field
The invention belongs to surveying instrument technical field, often need to set measurement parameter in surveying instrument, the present invention just relates to a kind of method to the surveying instrument setting measurement parameter supporting multi-touch screen.
Background technology
In surveying instrument field, the mode of usual use setting measurement parameter comes the measurement of control waveform data, process and display.The traditional approach of surveying instrument setting measurement parameter utilizes keyboard or button to set one by one parameters.If need the measurement parameter of setting many, work can be very loaded down with trivial details, and can not effect after preview setting parameter.
For multi-touch screen, intelligent terminal be generally used in it carries out gesture operation mode to realize the convergent-divergent of picture etc., but the change of interface display scope that what this mode only realized is, form the convergent-divergent in visual effect with this, the object that we will set the parameter of surveying instrument can not be reached; And regardless of the moving direction of touch point in gesture operation, display interface is all carried out the convergent-divergent of same ratio in all directions, and does not realize the convergent-divergent of independent horizontal convergent-divergent, independent longitudinal convergent-divergent or horizontal and vertical different proportion.
Summary of the invention
The present invention, in order to solve the problem of setup parameter operation inconvenience, intricate operation in the surveying instrument supporting multi-touch screen, provides the technical scheme that a kind of measurement parameter sets, can save a large amount of and loaded down with trivial details data setting work.
Technical scheme of the present invention is the method for surveying instrument setting measurement parameter for supporting multi-touch screen, and the surveying instrument of described support multi-touch screen forms by based on the main control unit of ARM, measurement module and display module, sees accompanying drawing 1.The multi-touch screen of surveying instrument belongs to display module.Method of the present invention is exactly the gesture operation carrying out two touch on multi-touch screen, ARM main control unit sets separately horizontal ordinate or ordinate parameter according to the moving direction of two touch points in gesture operation, or set horizontal ordinate and ordinate parameter simultaneously, then the measurement parameter of setting is sent to measurement module, measurement module can with new measurement parameter process Wave data, again these Wave datas are shown in display module by ARM main control unit, are just completed by the process of gesture operation setting measurement parameter like this.
The inventive method specifically needs following several step to realize:
Step 1, ARM main control unit read original measurement parameter and Wave data from measurement module, and on display module drawing waveforms.Concrete grammar is as follows:
Step 1.1, measurement module provide digital independent interface, ARM main control unit usage data read functions reads original measurement parameter and the Wave data of waveform horizontal ordinate and ordinate scope by the digital independent interface of measurement module, and is saved in by Wave data in the storer of ARM main control unit.The corresponding horizontal ordinate of each data point and ordinate two data.Set every field measurement waveform and have n sampled point, then a field wave shape has n to data in main control unit storer.The horizontal ordinate of first point and ordinate are stored into the position of first and second respectively, and the horizontal ordinate of second point and ordinate are stored into the position of third and fourth respectively, and the rest may be inferred.All horizontal ordinate data are arithmetic progression, the minimum value of the abscissa value corresponding waveform horizontal ordinate scope of first point, the maximal value of the abscissa value corresponding waveform horizontal ordinate scope of last point.
In step 1.2, set and display module, the screen horizontal ordinate scope of waveform display area is X minto X max, screen ordinate scope is Y minto Y max.The horizontal ordinate of the waveform coordinate system of display module and ordinate scope are respectively the horizontal ordinate and ordinate range parameter that ARM main control unit reads by measurement module, wherein the minimum value of waveform horizontal ordinate scope and maximal value respectively with minimum value and the maximal value X of screen coordinate system horizontal ordinate scope minand X maxcorrespondence, the minimum value of waveform ordinate scope and maximal value respectively with maximal value and the minimum value Y of screen coordinate system ordinate scope maxand Y mincorresponding.ARM main control unit determines n coordinate points according to the Wave data stored in storer in the waveform coordinate system of display module, n is greater than the integer that 0 is less than or equal to 100000, then use drawing function to connect two often adjacent points, total n-1 bar connecting line, so just depicts whole waveform.
The screen coordinate position that when step 2:ARM main control unit is from display module reads gesture operation, two touch points are pressed.Detailed process is as follows:
When setting measurement parameter, first need two to point and form two touch points by multi-touch screen, as two starting points of gesture operation, then ARM main control unit uses its touch point coordinate read functions to read the screen coordinate position of two starting points respectively from display module, and usage data memory function is by the storer of two point coordinate stored in ARM main control unit.
The screen coordinate of two gesture operation starting points on multi-touch screen is converted to waveform coordinate by step 3:ARM main control unit.
Screen coordinate is the device coordinate (in units of pixel) relative to on-screen display (osd) area upper left position, and waveform coordinate is the logical coordinates relative to position, the lower left corner, waveform display area.Use the conversion formula of device coordinate and logical coordinates that screen coordinate is converted to waveform coordinate.After the screen coordinate of two gesture operation starting points is converted to waveform coordinate, waveform coordinate is saved in its storer by ARM main control unit usage data memory function.
Step 4:ARM main control unit obtains the screen coordinate position on multi-touch screen in two touch point moving process.Detailed process is as follows:
When utilizing the gesture operation setting measurement parameter of two touch, two touch points keep down state and arbitrarily movement in waveform display area always, and ARM main control unit uses touch point coordinate read functions from the screen coordinate position of display module Real-time Obtaining two touch points.
Step 5: judge the coordinate direction that on display module, waveform parameter adjusts temporarily.Concrete grammar is as follows:
First ARM main control unit calculates the intermediate point screen coordinate of the home base coordinate position line stored in its current screen coordinate position and step 2 respectively to two touch points, then calculate the line of two intermediate points and the angle α of abscissa axis.
Set two angle threshold θ 1and θ 2, and 0≤θ 1≤ θ 2≤ 90 °, the scope that waveform horizontal ordinate parameter on display module adjusts temporarily, waveform ordinate parameter adjusts temporarily for dividing for they, horizontal ordinate and ordinate parameter adjust three kinds of situations angle α corresponding respectively all temporarily.Concrete division methods is, judges after calculating the angle α of two intermediate point lines and abscissa axis, if angle α is less than θ 1, then only adjust waveform horizontal ordinate parameter, i.e. the scope of an interim amendment waveform coordinate system abscissa axis temporarily; If angle α is greater than θ 2, then only adjust waveform ordinate parameter, i.e. the scope of an interim amendment waveform coordinate system axis of ordinates temporarily; And if angle α is more than or equal to θ 1and be less than or equal to θ 2, then waveform horizontal ordinate and ordinate parameter adjust all temporarily.
Step 6:ARM main control unit carries out corresponding interim adjustment according to the judged result of step 5 to the waveform parameter on display module.
The method that step 6.1, waveform horizontal ordinate parameter adjust temporarily is, the principle that the waveform horizontal ordinate corresponding in moving process according to two touch points remains unchanged, by the scope of ARM main control unit amendment waveform coordinate system abscissa axis.
The method that step 6.2, waveform ordinate parameter adjust temporarily is, the principle that the waveform ordinate corresponding in moving process according to two touch points remains unchanged, by the scope of ARM main control unit amendment waveform coordinate system axis of ordinates.
If step 6.3 waveform needs the interim adjustment carrying out horizontal ordinate and ordinate parameter simultaneously, then first can adjust waveform horizontal ordinate parameter temporarily, adjust waveform ordinate parameter more temporarily, also first can adjust waveform ordinate parameter temporarily, then adjust waveform horizontal ordinate parameter temporarily.
If step 6.4 ARM main control unit has carried out interim adjustment to waveform horizontal ordinate parameter, then the original measurement parameter of reading in the waveform horizontal ordinate scope after according to adjustment and step 1 and Wave data has also been needed to re-construct new Wave data in order to draw.Construct new Wave data by being that concrete grammar is as follows with reference to carrying out intercepting or the mode of interpolation completes with horizontal ordinate:
First, ARM main control unit for benchmark (index is for 0), calculates minimum value and the index of maximal value in former horizontal ordinate arithmetic progression of the rear waveform horizontal ordinate scope of adjustment with the minimum value of the original waveform horizontal ordinate scope read in step 1.The index of the minimum value of minimum value original waveform horizontal ordinate relative to the maximal value scope after setting waveform horizontal ordinate parameter adjusts temporarily is respectively I minand I max(when the horizontal ordinate stated range minimum after adjustment is less than former minimum value, I minfor negative value), the sampling number of the Wave data that so will re-construct is I max-I min+ 1.In order to deposit the Wave data of neotectonics, in the storer of ARM main control unit, distribute one can place (I max-I min+ 1) memory block of × 2 data.
Next above-mentioned I is determined max-I minthe waveform horizontal ordinate of each point and ordinate in+1 point, and in the newly assigned memory block of the storer being saved in ARM main control unit.Explanation in storage mode and step 1 is similar, I minfirst and second positions of the horizontal ordinate of the data point of index and ordinate difference this memory block corresponding, I minthird and fourth position of the horizontal ordinate of the data point of+1 index and ordinate difference this memory block corresponding, the like, I max(the I of the horizontal ordinate of the data point of index and ordinate difference this memory block corresponding max-I min) × 2+1 and (I max-I mina) × 2+2 position.
Specific practice is, to I minand I maxbetween each index value calculate waveform horizontal ordinate and the ordinate of the point of its correspondence successively, setting I is I minand I maxbetween arbitrary index value, if index value I is less than 0 or be greater than n-1, then the waveform ordinate of the point of its correspondence gets default value, default value can be set as arbitrary value, but all be less than 0 or be greater than default value corresponding to the index value of n-1 must be identical, the waveform horizontal ordinate of index I corresponding point is obtained again, then by the waveform horizontal ordinate of this point and the ordinate position, memory block stored in above-mentioned correspondence by arithmetic progression formula; And if index value I is more than or equal to 0 and be less than or equal to n-1, then in original waveform data step 1 read, index value is the correspondence position that the horizontal ordinate of the data point of I and ordinate copy index I in new data memory block to, i.e. (I-I min) × 2+1 and (I-I mina) × 2+2 position.Calculate I so successively minand I maxbetween the waveform horizontal ordinate of each index value corresponding point and ordinate after, each position of new data storage area just incorporates data, and these data are exactly the Wave data re-constructed according to the waveform horizontal ordinate parameter of interim adjustment.
Step 6.5, last ARM main control unit, according to the drawing practice in step 1, use the waveform horizontal stroke of interim adjustment, ordinate parameter and Wave data drawing waveforms on display module.So just can preview part effect before measurement parameter finally sets.
Step 6.6, two touch points continue to keep down state and arbitrarily movement in waveform display area, by using the method repetition step 4 of circulation in accompanying drawing 2, the detection of 5 and 6 and computing, a touch point is had at least to lift rear end until ARM main control unit detects.
Step 7: setting measurement parameter.
When there being touch point to lift, the measurement parameter memory interface that ARM main control unit usage data memory function and measurement module provide, the waveform coordinate parameters that step 6 finally calculates is saved in the storer of measurement module, comprises the minimum value of waveform horizontal ordinate and maximal value parameter, the minimum value of waveform ordinate and maximal value parameter.Measurement module carries out DATA REASONING, process by according to these new measurement parameters, this completes the process of the gesture operation setting measurement parameter by two touch.
Advantage of the present invention and beneficial effect:
The present invention changes traditional mode utilizing the parameter of keyboard or button setting measurement instrument, carrys out setting measurement parameter by using the gesture operation of two touch on the multi-touch screen of surveying instrument; Calculate the mid point of the initial and final position connecting line segment of gesture operation two touch points, according to the line of these two mid points and the angle of abscissa axis and two threshold values setting of angle for this reason, determine to need setting horizontal ordinate parameter, separately setting ordinate parameter separately still to set horizontal stroke, ordinate parameter simultaneously; When horizontal, ordinate parameter sets simultaneously, can respectively according to different ratio adjusting parameter values; In independent setting horizontal ordinate parameter or ordinate parameter or after setting horizontal stroke, ordinate parameter simultaneously, surveying instrument is with new parameter measurement, process data, the parameter that the generating algorithm of final change surveying instrument Wave data relies on, affects the generative process of Wave data.
Accompanying drawing explanation
Fig. 1 is functional module and the mutual relationship schematic diagram thereof of surveying instrument.
Fig. 2 is the process flow diagram by gesture operation setting measurement parameter.
Fig. 3 is the measured waveform figure carried out in embodiment before gesture operation.
Fig. 4 be in embodiment horizontal, the ordinate parameter of waveform adjust all temporarily after effect.
Embodiment
Embodiment
1, the spectrum analyzer that is supported multi-touch screen is prepared.Spectrum analyzer is made up of ARM main control unit, DSP measurement module and the display module that comprises multi-touch screen.In ARM main control unit, Android operation system is installed.
The sampling number n of setting spectrum analyzer is 501, and survey frequency scope is 5MHz-65MHz, and measuring amplitude scope is 0-80dB μ V.
In set and display module, the screen horizontal ordinate scope of frequency spectrum viewing area is 5 to 849, and screen ordinate scope is 50 to 354.The waveform horizontal ordinate of frequency spectrum is frequency, and its scope is consistent with survey frequency scope, is 5 to 65, and waveform ordinate is amplitude, and its scope is consistent with measuring amplitude scope, is 0 to 80.
ARM main control unit uses the digital independent function of Android SDK, by the digital independent interface of DSP, spectrum measurement parameter and frequency spectrum data are read in the storer of ARM main control unit, have 501 pairs of frequency spectrum datas (namely sampling number n is 501), 501 coordinate points can be determined in the frequency spectrum viewing area of display module according to these data, then the drawing function using Android SDK to provide connects two often adjacent points, have 500 connecting lines, so just depict whole frequency spectrum.See accompanying drawing 3.
2, in frequency spectrum viewing area, carry out the gesture operation of two touch.When two touch points are just pressed, the touch point coordinate read functions that ARM main control unit uses Android SDK to provide obtains the home base coordinate of two touch points.The screen coordinate setting two starting points is respectively (300,150), (400,250).
3, the screen coordinate of two starting points is converted to waveform coordinate by ARM main control unit.
The formula that screen horizontal ordinate is converted to waveform horizontal ordinate is as follows:
H x = H o min + ( H o max - H o min ) × ( X - X min ) X max - X min
In this formula, H xthe unknown, represents that screen horizontal ordinate is the waveform abscissa value of the point of X; H omaxknown, be the maximal value of waveform horizontal ordinate scope; H ominknown, be the minimum value of waveform horizontal ordinate scope; X is known, is the screen horizontal ordinate of touch point; X maxknown, be the maximal value of the screen horizontal ordinate scope of waveform display area, with waveform horizontal ordinate H omaxcorresponding; X minknown, be the minimum value of the screen horizontal ordinate scope of waveform display area, with waveform horizontal ordinate H omincorresponding.
Waveform horizontal ordinate according to this formulae discovery first starting point is:
5 + ( 65 - 5 ) × ( 300 - 5 ) 849 - 5 = 25.97 MHz
The waveform horizontal ordinate of second starting point is:
5 + ( 65 - 5 ) × ( 400 - 5 ) 849 - 5 = 33.08 MHz
The formula that screen ordinate is converted to waveform ordinate is as follows:
V y = V o max - ( V o max - V o min ) × ( Y - Y min ) Y max - Y min
In this formula, V ythe unknown, represents that screen ordinate is the waveform ordinate value of the point of Y; V omaxknown, be the maximal value of waveform ordinate scope; V ominknown, be the minimum value of waveform ordinate scope; Y is known, is the screen ordinate of touch point; Y maxknown, be the maximal value of the screen ordinate scope of waveform display area, with waveform ordinate V mincorresponding; Y minknown, be the minimum value of the screen ordinate scope of waveform display area, with waveform ordinate V maxcorresponding.
Waveform ordinate according to this formulae discovery first starting point is:
80 - ( 80 - 0 ) × ( 150 - 50 ) 354 - 50 = 53.68 dBμV
The waveform ordinate of second starting point is:
80 - ( 80 - 0 ) × ( 250 - 50 ) 354 - 50 = 27.37 dBμV
Like this, just obtain the waveform coordinate of two touch point reference positions, be respectively (25.97,53.68) and (33.08,27.37).
4, in two touch point moving process, the touch point coordinate read functions that ARM main control unit uses Android SDK to provide obtains the current screen coordinate of two touch points respectively.
5, the coordinate direction that waveform parameter adjusts temporarily is judged.Detailed process is as follows:
Setting threshold value θ 1be 30 °, θ 2be 60 °, 2 the current screen coordinates obtained in embodiment step 4 are respectively (200,100) and (500,300).
The intermediate point screen horizontal ordinate calculating first touch point current location and its reference position line according to mean point formula is:
300 + 200 2 = 250
Screen ordinate is:
150 + 100 2 = 125
The intermediate point screen horizontal ordinate calculating second touch point current location and its reference position line is:
400 + 500 2 = 450
Screen ordinate is:
250 + 300 2 = 275
Then the line of these two intermediate points and the angle α of abscissa axis is calculated.If the screen horizontal ordinate of two intermediate points is equal, so angle is 90 °, if unequal, computing formula is as follows:
θ = tan - 1 ( | Y mid 2 - Y mid 1 X mid 2 - X mid 1 | )
In this formula, θ is unknown, represents the angle of two intermediate point lines and abscissa axis; Y mid2, Y mid1all known, be respectively the screen ordinate of two intermediate points; X mid2, X mid1all known, be respectively the screen horizontal ordinate of two intermediate points.
Because the screen horizontal ordinate result of calculation of two intermediate points is unequal, so the acute angle folded by above-mentioned formulae discovery two intermediate point lines and abscissa axis is:
Because angle α is 36.87 °, be greater than θ 1(30 °) and be less than θ 2(60 °), so need to adjust waveform horizontal ordinate, ordinate parameter all temporarily.
6, ARM main control unit carries out corresponding interim adjustment according to the judged result in embodiment step 5 to waveform horizontal ordinate, ordinate parameter.
The formula that calculating waveform horizontal ordinate parameter adjusts rear horizontal ordinate stated range minimum is temporarily as follows:
H min = H 1 - ( X 1 - X min ) × ( H 2 - H 1 ) X 2 - X 1
In this formula, H minthe unknown, represents the minimum value of waveform horizontal ordinate scope; X 1, X 2known, be respectively the current screen horizontal ordinate of two touch points; H 1, H 2known, be respectively the waveform horizontal ordinate of two gesture operation starting points; X minknown, be the minimum value of the screen horizontal ordinate scope of waveform display area.
The minimum value temporarily adjusting rear waveform horizontal ordinate scope according to this formulae discovery is:
25.97 - ( 200 - 5 ) × ( 33.08 - 25.97 ) 500 - 200 = 21.35 MHz
The formula that calculating waveform horizontal ordinate parameter adjusts rear horizontal ordinate scope maximal value is temporarily as follows:
H max = H 1 + ( X max - X 1 ) × ( H 2 - H 1 ) X 2 - X 1
In this formula, H maxthe unknown, represents the maximal value of waveform horizontal ordinate scope; X 1, X 2known, be respectively the current screen horizontal ordinate of two touch points; H 1, H 2known, be respectively the waveform horizontal ordinate of two gesture operation starting points; X maxknown, be the maximal value of the screen horizontal ordinate scope of waveform display area.
The maximal value temporarily adjusting rear waveform horizontal ordinate scope according to this formulae discovery is:
25.97 + ( 849 - 200 ) × ( 33.08 - 25.97 ) 500 - 200 = 41.35 MHz
The formula that calculating waveform ordinate parameter adjusts rear ordinate stated range minimum is temporarily as follows:
V min = V 1 - ( Y max - Y 1 ) × ( V 1 - V 2 ) Y 2 - Y 1
In this formula, V minthe unknown, represents the minimum value of waveform ordinate scope; Y 1, Y 2known, be respectively the current screen ordinate of two touch points; V 1, V 2known, be respectively the waveform ordinate of two gesture operation starting points; Y maxknown, be the maximal value of the screen ordinate scope of waveform display area.
The minimum value temporarily adjusting rear waveform ordinate scope according to this formulae discovery is:
53.68 - ( 354 - 100 ) × ( 53.68 - 27.37 ) 300 - 100 = 20.27 dBμV
The formula that calculating waveform ordinate parameter adjusts rear ordinate scope maximal value is temporarily as follows:
V max = V 1 + ( Y 1 - Y min ) × ( V 1 - V 2 ) Y 2 - Y 1
In this formula, V maxthe unknown, represents the maximal value of waveform ordinate scope; Y 1, Y 2known, be respectively the current screen ordinate of two touch points; V 1, V 2known, be respectively the waveform ordinate of two gesture operation starting points; Y minknown, be the minimum value of the screen ordinate scope of waveform display area.
The maximal value temporarily adjusting rear waveform ordinate scope according to this formulae discovery is:
53.68 + ( 100 - 50 ) × ( 53.68 - 27.37 ) 300 - 100 = 60.26 dBμV
Visible, after waveform horizontal stroke, ordinate parameter adjust all temporarily, horizontal ordinate scope becomes 21.35MHz-41.35MHz, and ordinate scope becomes 20.27dB μ V-60.26dB μ V.
Because horizontal ordinate parameter has carried out interim adjustment, so ARM main control unit needs the former frequency spectrum data of reading in the horizontal ordinate scope after according to adjustment and embodiment step 1 and parameter reconstruct data to draw.
With the minimum value of original waveform horizontal ordinate scope for benchmark, the formula calculating the index of certain data point is as follows:
I = H - H o min H o max - H o min × ( n - 1 )
In this formula, I is unknown, is the index of the minimum value of certain data point relative original waveform horizontal ordinate scope; H is known, is the waveform horizontal ordinate of certain data point; H omaxknown, be the maximal value of original waveform horizontal ordinate scope; H ominknown, be the minimum value of original waveform horizontal ordinate scope; N is known, for the waveform of setting in embodiment step 1 is counted.
According to this formulae discovery, with the minimum value of original waveform horizontal ordinate scope for benchmark, the minimum value of waveform horizontal ordinate scope and the index of maximal value after interim adjustment.
After interim adjustment, the index of the minimum value of waveform horizontal ordinate scope is:
21.35 - 5 65 - 5 × ( 501 - 1 ) = 136
After interim adjustment, the index of the maximal value of waveform horizontal ordinate scope is:
41.35 - 5 65 - 5 × ( 501 - 1 ) = 303
Then in the storer of the ARM main control unit of spectrum analyzer, the memory block that one can be deposited 303-136+1=168 data is redistributed, and the index value between 136 to 303 is processed successively, because these index values are all between 0 to n-1=501-1=500, so only original waveform data corresponding for each index value need be stored into each self-corresponding position in new data memory block.
To set in original waveform data the coordinate of certain point as (28.88,40), so can calculate its index in original waveform according to the formula of above-mentioned computation index is:
28.88 - 5 65 - 5 × ( 501 - 1 ) = 199
After adjusting through above-mentioned waveform parameter temporarily, the abscissa value 28.88 of this point is by stored in (199-136) × 2+1=127 position in new data storage area, and ordinate value 40 will stored in (199-136) × 2+2=128 position.
All positions of new data storage area are all stored in after data, and ARM main control unit uses the horizontal stroke after these data and adjustment, ordinate parameter by the drawing function drawing waveforms of Android SDK.See accompanying drawing 4.
In the process of two touch point movements, embodiment step 4,5, the content of 6 is that circulation performs, until ARM main control unit detects that having at least a touch point to lift Posterior circle terminates.
7. after having at least a touch point to lift, ARM main control unit just uses the data storage function of Android SDK, parameter that the is waveform finally calculated is horizontal, ordinate is saved in the storer of DSP measurement module by the data memory interface of DSP, then DSP will process sampled data with new measurement parameter, and the waveform that display module shows also can change accordingly.
This is just completed by the process of gesture operation setting frequency spectrum parameter like this.

Claims (2)

1. one kind is the method for the surveying instrument setting measurement parameter supporting multi-touch screen, it is characterized in that the surveying instrument of described support multi-touch screen is by the main control unit based on ARM, measurement module and display module composition, ARM main control unit sets separately horizontal ordinate or ordinate parameter according to the moving direction of two touch points in gesture operation, or set horizontal ordinate and ordinate parameter simultaneously, then the measurement parameter of setting is sent to measurement module, measurement module can with new measurement parameter process Wave data, again these Wave datas are shown in display module by ARM main control unit, the concrete steps of the method are as follows:
Step 1, ARM main control unit read original measurement parameter and Wave data from measurement module, and on display module drawing waveforms;
The screen coordinate position that when step 2:ARM main control unit is from display module reads gesture operation, two touch points are pressed;
The screen coordinate of two gesture operation starting points on multi-touch screen is converted to waveform coordinate by step 3:ARM main control unit;
Screen coordinate position on step 4:ARM main control unit Real-time Obtaining multi-touch screen in two touch point moving process;
Step 5: judge the coordinate direction that on display module, waveform parameter adjusts temporarily; Method is:
First ARM main control unit calculates the intermediate point screen coordinate of the home base coordinate position line stored in current screen coordinate position and step 2 respectively to two touch points, then calculate the line of two intermediate points and the angle α of abscissa axis;
Set two angle threshold θ 1and θ 2, and 0≤θ 1≤ θ 2≤ 90 °, the scope that waveform horizontal ordinate parameter on display module adjusts temporarily, waveform ordinate parameter adjusts temporarily for dividing, horizontal ordinate and ordinate parameter adjust three kinds of situations angle α corresponding respectively all temporarily; Concrete division methods is, if angle α is less than θ 1, then only adjust waveform horizontal ordinate parameter, i.e. the scope of an interim amendment waveform coordinate system abscissa axis temporarily; If angle α is greater than θ 2, then only adjust waveform ordinate parameter, i.e. the scope of an interim amendment waveform coordinate system axis of ordinates temporarily; And if angle α is more than or equal to θ 1and be less than or equal to θ 2, then waveform horizontal ordinate and ordinate parameter adjust all temporarily;
Step 6:ARM main control unit, according to the judged result of step 5, carries out corresponding interim adjustment to the waveform parameter on display module;
The method that step 6.1, waveform horizontal ordinate parameter adjust temporarily, the principle that the waveform horizontal ordinate corresponding in moving process according to two touch points remains unchanged, by the scope of ARM main control unit amendment waveform coordinate system abscissa axis;
The method that step 6.2, waveform ordinate parameter adjust temporarily, the principle that the waveform ordinate corresponding in moving process according to two touch points remains unchanged, by the scope of ARM main control unit amendment waveform coordinate system axis of ordinates;
If step 6.3 waveform needs the interim adjustment carrying out horizontal ordinate and ordinate parameter simultaneously, then first can adjust waveform horizontal ordinate parameter temporarily, adjust waveform ordinate parameter more temporarily, also first can adjust waveform ordinate parameter temporarily, then adjust waveform horizontal ordinate parameter temporarily;
If step 6.4 ARM main control unit has carried out interim adjustment to waveform horizontal ordinate parameter, the original measurement parameter of reading in the waveform horizontal ordinate scope after according to adjustment and step 1 and Wave data is then also needed to re-construct new Wave data in order to draw, construct new Wave data by being that concrete grammar is as follows with reference to carrying out intercepting or the mode of interpolation completes with horizontal ordinate:
First, ARM main control unit is with the minimum value of the original waveform horizontal ordinate scope read in step 1 for benchmark, and index is 0, calculates minimum value and the index of maximal value in former horizontal ordinate arithmetic progression of the rear waveform horizontal ordinate scope of adjustment;
The index of the minimum value of minimum value original waveform horizontal ordinate relative to the maximal value scope after setting waveform horizontal ordinate parameter adjusts temporarily is respectively I minand I max, when the horizontal ordinate stated range minimum after adjustment is less than former minimum value, I minfor negative value, the sampling number of the Wave data that so will re-construct is I max-I min+ 1; In order to deposit the Wave data of neotectonics, in the storer of ARM main control unit, distribute one can place (I max-I min+ 1) memory block of × 2 data;
Next above-mentioned I is determined max-I minthe waveform horizontal ordinate of each point and ordinate in+1 point, and in the newly assigned memory block of the storer being saved in ARM main control unit; Explanation in storage mode and step 1 is similar, I minfirst and second positions of the horizontal ordinate of the data point of index and ordinate difference this memory block corresponding, I minthird and fourth position of the horizontal ordinate of the data point of+1 index and ordinate difference this memory block corresponding, the like, I max(the I of the horizontal ordinate of the data point of index and ordinate difference this memory block corresponding max-I min) × 2+1 and (I max-I mina) × 2+2 position;
Specific practice is, to I minand I maxbetween each index value calculate waveform horizontal ordinate and the ordinate of the point of its correspondence successively, setting I is I minand I maxbetween arbitrary index value, if index value I is less than 0 or be greater than n-1, then the waveform ordinate of the point of its correspondence gets default value, this default value can be set as arbitrary value, but all be less than 0 or be greater than default value corresponding to the index value of n-1 must be identical, the waveform horizontal ordinate of index I corresponding point is obtained again, then by the waveform horizontal ordinate of this point and the ordinate position, memory block stored in above-mentioned correspondence by arithmetic progression formula; And if index value I is more than or equal to 0 and be less than or equal to n-1, then in original waveform data step 1 read, index value is the correspondence position that the horizontal ordinate of the data point of I and ordinate copy index I in new data memory block to, i.e. (I-I min) × 2+1 and (I-I mina) × 2+2 position; Calculate I so successively minand I maxbetween the waveform horizontal ordinate of each index value corresponding point and ordinate after, each position of new data storage area just incorporates data, and these data are exactly the Wave data re-constructed according to the waveform horizontal ordinate parameter of interim adjustment;
Step 6.5, last ARM main control unit, according to the drawing practice in step 1, use the waveform horizontal ordinate of interim adjustment, ordinate parameter and Wave data drawing waveforms on display module, so just can preview part effect before measurement parameter finally sets;
Step 6.6, two touch points continue to keep down state and arbitrarily movement in waveform display area, by using the method repetition step 4 of circulation, the detection of 5 and 6 and computing, have at least a touch point to lift rear end until ARM main control unit detects;
Step 7: setting measurement parameter
When there being touch point to lift, the measurement parameter memory interface that ARM main control unit usage data memory function and measurement module provide, the waveform coordinate parameters that step 6 finally calculates is saved in the storer of measurement module, measurement module carries out DATA REASONING, process by according to these new measurement parameters, this completes the process of the gesture operation setting measurement parameter by two touch.
2. method according to claim 1, is characterized in that the concrete grammar of the drawing waveforms described in step 1 is as follows:
Step 1.1, ARM main control unit usage data read functions read original measurement parameter and the Wave data of waveform horizontal ordinate and ordinate scope by the digital independent interface of measurement module, and are saved in by Wave data in the storer of ARM main control unit; The corresponding horizontal ordinate of each data point and ordinate two data, set every field measurement waveform and have n sampled point, then a field wave shape has n to data in main control unit storer, the horizontal ordinate of first point and ordinate are stored into the position of first and second respectively, the horizontal ordinate of second point and ordinate are stored into the position of third and fourth respectively, and the rest may be inferred; All horizontal ordinate data are arithmetic progression, the minimum value of the abscissa value corresponding waveform horizontal ordinate scope of first point, the maximal value of the abscissa value corresponding waveform horizontal ordinate scope of last point;
In step 1.2, set and display module, the screen horizontal ordinate scope of waveform display area is X minto X max, screen ordinate scope is Y minto Y max; The horizontal ordinate of the waveform coordinate system of display module and ordinate scope are respectively the horizontal ordinate and ordinate range parameter that ARM main control unit reads by measurement module, wherein the minimum value of waveform horizontal ordinate scope and maximal value respectively with minimum value and the maximal value X of screen coordinate system horizontal ordinate scope minand X maxcorrespondence, the minimum value of waveform ordinate scope and maximal value respectively with maximal value and the minimum value Y of screen coordinate system ordinate scope maxand Y mincorresponding; ARM main control unit determines n coordinate points according to the Wave data stored in storer in the waveform coordinate system of display module, n is greater than the integer that 0 is less than or equal to 100000, then use drawing function to connect two often adjacent points, total n-1 bar connecting line, so just depicts whole waveform.
CN201210443979.0A 2012-11-08 2012-11-08 Method of measuring parameters set by measuring instrument for the purpose of supporting multi-touch screen Active CN102981673B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210443979.0A CN102981673B (en) 2012-11-08 2012-11-08 Method of measuring parameters set by measuring instrument for the purpose of supporting multi-touch screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210443979.0A CN102981673B (en) 2012-11-08 2012-11-08 Method of measuring parameters set by measuring instrument for the purpose of supporting multi-touch screen

Publications (2)

Publication Number Publication Date
CN102981673A CN102981673A (en) 2013-03-20
CN102981673B true CN102981673B (en) 2015-06-24

Family

ID=47855781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210443979.0A Active CN102981673B (en) 2012-11-08 2012-11-08 Method of measuring parameters set by measuring instrument for the purpose of supporting multi-touch screen

Country Status (1)

Country Link
CN (1) CN102981673B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104181365B (en) * 2013-05-24 2019-01-29 苏州普源精电科技有限公司 A kind of measuring device with zooming display function
CN119376577B (en) * 2024-12-31 2025-04-15 深圳汉诺医疗科技股份有限公司 A resistive touch screen signal filtering method, system, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101131404A (en) * 2006-08-25 2008-02-27 王悦 A digital oscilloscope waveform display method and digital oscilloscope
CN101413968A (en) * 2008-09-30 2009-04-22 中国电子科技集团公司第四十一研究所 Digital oscilloscope and method for controlling display waveform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7013430B2 (en) * 2002-01-25 2006-03-14 Agilent Technologies, Inc. Rapid graphical analysis of waveforms using a pointing device
DE102006023914A1 (en) * 2006-05-22 2007-11-29 Rohde & Schwarz Gmbh & Co. Kg Measuring device for previewing several time-varying electrical signals

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101131404A (en) * 2006-08-25 2008-02-27 王悦 A digital oscilloscope waveform display method and digital oscilloscope
CN101413968A (en) * 2008-09-30 2009-04-22 中国电子科技集团公司第四十一研究所 Digital oscilloscope and method for controlling display waveform

Also Published As

Publication number Publication date
CN102981673A (en) 2013-03-20

Similar Documents

Publication Publication Date Title
CN102937848B (en) Method for editing handwritings and electronic equipment
CN102902407B (en) A kind of touch-screen output display touches the method and apparatus of person's handwriting
CN105719351B (en) A kind of method and apparatus of display electronic map
CN100520692C (en) Hand-written input method capable of implementing writing style effect
CN102903134B (en) Fast Drawing is the method for curve repeatedly
CN103163380A (en) Micro-ohm resistance measurement system based on LabVIEW developing platform
CN101131401A (en) A digital oscilloscope and its display method
CN102937850A (en) Method for beautifying handwriting in real time and electronic equipment
CN104200426A (en) Image interpolation method and device
CN109284062B (en) Touch data processing method, device, terminal and medium
CN105094440A (en) Touch screen anti-shaking method and system based on mobile terminal and mobile terminal
CN103399629B (en) Method and device for acquiring gesture screen display coordinates
CN102981673B (en) Method of measuring parameters set by measuring instrument for the purpose of supporting multi-touch screen
TW201329791A (en) Display method and system with adjustment function
CN112308768B (en) Data processing method, device, electronic equipment and storage medium
CN103456031B (en) A kind of new method of area image interpolation
CN109063317B (en) Online cloud picture drawing method for cold-rolled strip shape
CN103176013B (en) An Oscilloscope with Customizable Measurement Range and Its Realization Method
CN109472846B (en) Method for obtaining bode diagram by processing sweep frequency data by MATLAB
CN109030899A (en) A kind of method and oscillograph for drawing Bode diagram
CN104525668B (en) Shape method adjusted by the drift of a kind of multi-point forming processing curve
CN102419648B (en) Touch point coordinate acquiring method and system and touch screen calibrating method and system
CN103767700B (en) The sampling frame method of adjustment of a kind of ecg wave form electronic surveying and device
CN104123748A (en) Screen space point light source based method for achieving real-time dynamic shadows
CN104463941B (en) Object plotting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
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: 300384, Tianjin Xiqing District New Technology Industrial Park (outside the ring), Hai Tai innovation, No. three, 8 Road

Patentee after: Tianjin Deli Instrument Equipment Co., Ltd.

Address before: 300384, Tianjin Xiqing District New Technology Industrial Park (outside the ring), Hai Tai innovation, No. three, 8 Road

Patentee before: Deli Electronic Instrument Co., Ltd., Tianjin City