CN103528614B - Utilize the method for analog gauges display measurement data - Google Patents
Utilize the method for analog gauges display measurement data Download PDFInfo
- Publication number
- CN103528614B CN103528614B CN201310469812.6A CN201310469812A CN103528614B CN 103528614 B CN103528614 B CN 103528614B CN 201310469812 A CN201310469812 A CN 201310469812A CN 103528614 B CN103528614 B CN 103528614B
- Authority
- CN
- China
- Prior art keywords
- scale
- dial plate
- size
- measurement data
- dial
- 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
Links
Abstract
The invention provides a kind of method of utilizing analog gauges display measurement data, it comprises the following steps: the central point of a) setting instrument according to the size of display window; B) set the interval between meter full scale, scale quantity and adjacent two scales according to the maximum of measurement data amount and minimum of a value; C) draw the housing of dial plate according to a) central point of step gained and the size of display window; D) draw the inside casing of dial plate according to the size of the c) housing of step gained; E) according to b), c), d) data value, the size of housing and the size of inside casing of gained are drawn dial scale; F) according to the measured data values of input and the respective value comparison of dial scale, determine the position of the scale at measured data values place, and draw out indicator, this step repeats according to certain frequency. The method has design science, data show more intuitively, read easier advantage.
Description
Technical field
The present invention relates to a kind of display methods of measurement data, specifically, related to one and utilized analog gaugesThe method of display measurement data.
Background technology
In most of Survey Software, for measure data directly use numeral to present, particularly for monitoring electric weight,The data such as speed, pressure, temperature, need to compare to find whether this measurement there are differences with other data, in addition,In the time of the large numeral of monitoring, be not only not easy to distinguish, also easily misunderstand numeral, cause misjudgment, make monitoring numerous and diverse andEasily make mistakes.
In order to solve the problem of above existence, people are seeking a kind of desirable technical solution always.
Summary of the invention
The object of this invention is to provide a kind of method of utilizing analog gauges display measurement data, to solve existing surveyAmount data display method shows not directly perceived, correction data problem difficult, that easily make mistakes.
To achieve these goals, the technical solution adopted in the present invention is:, one utilize analog gauges show surveyThe method of amount data, comprises the following steps:
A) according to the central point of the size setting instrument of display window;
B) set between meter full scale, scale quantity and adjacent two scales according to the maximum of measurement data amount and minimum of a valueInterval;
C) draw the housing of dial plate according to a) central point of step gained and the size of display window;
D) draw the inside casing of dial plate according to the size of the c) housing of step gained;
E) according to b), c), d) data value, the size of housing and the size of inside casing of gained are drawn dial scale;
F), according to the measured data values of input and the respective value comparison of dial scale, determine the scale at measured data values placePosition, and draw out indicator, this step repeats according to certain frequency.
Base the above, before step c) and step d) are carried out, need to first determine the shape of dial plate, this shape attributeAssignment is used enumerated variable.
Base the above, described dial plate comprises circular dial plate and square dial plate, described circular dial plate and described square dial plate divideBe not endowed different values.
Base the above, in step f), indicator from central point to the drafting triangular in shape of scale position, this triangle indicator byThe coordinate of 3 is definite, and the coordinate place of the scale at measured data values place, the mid point of other 2 are located in the first point coordinates positionLine process central point with first.
Base the above, in step e), according to the interval of the meter full scale of gained, scale quantity and adjacent two scales, profitCalculate the corresponding coordinate of each dial scale with trigonometric function, use afterwards linear function to draw the dial plate at each coordinate placeScale.
The relative prior art of the present invention has outstanding substantive distinguishing features and significant progressive, and specifically, the present invention existsDisplay window is drawn dial plate, and scope, scale quantity and adjacent two scales of dial scale are set according to the size of measurement dataBetween interval, according to the data that real-time monitor, draw indicator, point to its corresponding scale place, replaced direct observation numberThe recording mode of word, more directly perceived by instrument reading out data, avoid makeing mistakes, also more easily data are contrasted, it hasDesign science, practical, production efficiency is high, production cost is low, the reliable advantage of the quality of production.
Detailed description of the invention
Below by detailed description of the invention, technical scheme of the present invention is described in further detail.
Embodiment
A) determine the position of central point (X0, Y0) according to the height of form (Height) and width (Width), X0=UserControl.Width/2,Y0=UserControl.Height/2;
B) according to input measurement data volume maximum and minimum of a value set meter full scale (PMax(maximum indicated value),The minimum indicated value of PMin()), determine number of division, scale sum=PBigNum(high range number) * PSmallNum(down scaleNumber), calculate interval D isNum=(PMax-PMin) between adjacent two scales PBigNum;
C) draw the housing of dial plate according to a) and b) central point of step gained and the size of display window, at the present embodimentIn, select circular housing, in the time selecting the shape of housing, each housing is endowed different property values, and 0, represent circle, 1, expression sideShape, the assignment of this attribute is enumerated variable Type_Num:
PublicEnumType_Num
Cricle=0
Square=1
EndEnum
While selecting circle, attribute PType=0, calling system function Circle function is drawn circle:
UserControl.FillColor=RGB(30,30,30)
DrawWidth=CInt(2*PointerR/2000)
UserControl.FillStyle=0
Circle (X0, Y0), PointerR*1.3, RGB (40,40,40), in other embodiments, also canSelect square frame, call Draw_Square () function, use setting-out function Line to draw square frame;
D) draw the inside casing of dial plate according to the size of the c) housing of step gained, inside casing is more smaller than housing, and method is with 3, halfFootpath is PointerR*1.18:
UserControl.FillColor=RGB(50,50,55)
DrawWidth=CInt(1*PointerR/2000)
Circle(X0,Y0),PointerR*1.1,RGB(40,40,35);
E) according to b), c), d) data value, the size of housing and the size of inside casing of gained are drawn dial scale, Fori=0ToPBigNum*PSmallNum
Y1=Y0-PointerR*Sin((PStart-(NumTem/PSmallNum)*i)*PI/180)
X1=X0+PointerR*Cos((PStart-(NumTem/PSmallNum)*i)*PI/180)
If(iModPSmallNum=0)Then
DrawWidth=CInt(8*PointerR/2000)
N=1
Y2=Y0-Length1*N*Sin((PStart-(NumTem/PSmallNum)*i)*PI/180)
X2=X0+Length1*N*Cos((PStart-(NumTem/PSmallNum)*i)*PI/180)
Line(X1,Y1)-(X2,Y2),RGB(220,150,0)
N=i\PSmallNum+1
' write scale value
NX2=X0+Length1*0.8*Cos((PStart-(NumTem/PSmallNum)*i)*PI/180)
NY2=Y0-Length1*0.8*Sin((PStart-(NumTem/PSmallNum)*i)*PI/180)
LoadLabel1(N)
Label1(N).BackStyle=0
Label1(N).AutoSize=True
IfPEnabled=TrueThen
Label1(N).ForeColor=RGB(250,250,250)
Else
Label1(N).ForeColor=RGB(150,150,150)
EndIf
Label1(N).FontName="Arial"
Label1(N).FontSize=17*(PointerR/2000)
Label1(N).Caption=DisNum*(N-1)+PMin
Label1(N).Alignment=2
NX2=NX2-Label1(N).Width/2
NY2=NY2-Label1(N).Height/2
Label1(N).MoveNX2,NY2
If(PStart=PStop)And(N=PBigNum+1)Then
Label1(N).Visible=False
Else
Label1(N).Visible=True
EndIf
Else
N=1.1
DrawWidth=CInt(4*PointerR/2000)
Y2=Y0-Length1*N*Sin((.PrpStart-(NumTem/PSmallNum)*i)*PI/180)
X2=X0+Length1*N*Cos((.PrpStart-(NumTem/PSmallNum)*i)*PI/180)
IfPEnabled=TrueThen
Line(X1,Y1)-(X2,Y2),RGB(230,230,230)
Else
Line(X1,Y1)-(X2,Y2),RGB(150,150,150)
EndIf
EndIf
Nexti, wherein, PI is π, is defined as constant PublicConstPIAsSingle=3.1415926. RootCalculate the origin coordinates point (X1, Y1) of each scale and stop coordinate (X2, Y2) according to mathematical trigonometric function Sin, Cos,Then calling system function Line draws out scale coordinate: Line (X1, Y1)-(X2, Y2) with constant color, RGB (220,150,0);
F), according to the measured data values of input and the respective value comparison of dial scale, determine the scale at measured data values placePosition, and draw out indicator:
Y1=Y0-PointerR*0.03*Sin(STem1*PI/180)
X1=X0+PointerR*0.03*Cos(STem1*PI/180)
Y2=Y0-PointerR*0.03*Sin(STem2*PI/180)
X2=X0+PointerR*0.03*Cos(STem2*PI/180)
Y3=Y0-PointerR*Sin(ValueTem*PI/180)
X3=X0+PointerR*Cos(ValueTem*PI/180)
Pointer is triangle, is made up of three points of (X1, Y1) (X2, Y2) (X3, Y3), and (X1, Y1) point coordinates position is located atThe coordinate place of the scale at measured data values place, in the line process of the mid point that (X2, Y2) (X3, Y3) is 2 and (X1, Y1) pointHeart point, this step repeats according to certain frequency.
Described dial plate comprises circular dial plate and square dial plate, and described circular dial plate and described square dial plate are endowed respectively notSame value.
Finally should be noted that: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit; To the greatest extentPipe has been described in detail the present invention with reference to preferred embodiment, and those of ordinary skill in the field are to be understood that: stillCan modify or part technical characterictic is equal to replacement the specific embodiment of the present invention; And do not depart from thisThe spirit of bright technical scheme, it all should be encompassed in the middle of the technical scheme scope of request protection of the present invention.
Claims (5)
1. a method of utilizing analog gauges display measurement data, is characterized in that: it comprises the following steps:
A) according to the central point of the size setting instrument of display window;
B) according to the maximum of measurement data amount and minimum of a value set between meter full scale, scale quantity and adjacent two scales betweenEvery;
C) draw the housing of dial plate according to a) central point of step gained and the size of display window;
D) draw the inside casing of dial plate according to the size of the c) housing of step gained;
E) according to b), c), d) data value, the size of housing and the size of inside casing of gained are drawn dial scale;
F), according to the measured data values of input and the respective value comparison of dial scale, determine the position of the scale at measured data values placePut, and draw out indicator, this step repeats according to certain frequency.
2. the method for analog gauges display measurement data according to claim 1, is characterized in that: in step c) andBefore step d) is carried out, need to first determine the shape of dial plate, the assignment of this shape attribute is used enumerated variable.
3. the method for analog gauges display measurement data according to claim 2, is characterized in that: described dial plate bagDraw together circular dial plate and square dial plate, described circular dial plate and described square dial plate are endowed respectively different values.
4. the method for analog gauges display measurement data according to claim 1, is characterized in that: in step f)In, indicator is from central point to the drafting triangular in shape of scale position, and this triangle indicator is determined by the coordinate of 3, the first point coordinatesThe coordinate place of the scale at measured data values place is located in position, and the mid point of other 2 and first 's line is through central point.
5. according to the method for the analog gauges display measurement data described in claim 1~4 any one, it is characterized in that:In step e), according to the interval of the meter full scale of gained, scale quantity and adjacent two scales, utilize trigonometric function to calculate oftenThe corresponding coordinate of individual dial scale, uses linear function to draw the dial scale at each coordinate place afterwards.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310469812.6A CN103528614B (en) | 2013-10-11 | 2013-10-11 | Utilize the method for analog gauges display measurement data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310469812.6A CN103528614B (en) | 2013-10-11 | 2013-10-11 | Utilize the method for analog gauges display measurement data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103528614A CN103528614A (en) | 2014-01-22 |
CN103528614B true CN103528614B (en) | 2016-05-18 |
Family
ID=49930810
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310469812.6A Active CN103528614B (en) | 2013-10-11 | 2013-10-11 | Utilize the method for analog gauges display measurement data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103528614B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4789824A (en) * | 1986-06-20 | 1988-12-06 | Brown, Boveri & Cie Ag | Digital measuring instrument for displaying a measured value that varies over time |
CN101017103A (en) * | 2006-02-10 | 2007-08-15 | 矢崎总业株式会社 | Meter |
CN201689028U (en) * | 2010-05-27 | 2010-12-29 | 深圳市兴日生实业有限公司 | Water-temperature and salinity measuring display instrument mounted in seawater creature cultivation box |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5170392B2 (en) * | 2008-02-07 | 2013-03-27 | 日本精機株式会社 | Instrument drive |
-
2013
- 2013-10-11 CN CN201310469812.6A patent/CN103528614B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4789824A (en) * | 1986-06-20 | 1988-12-06 | Brown, Boveri & Cie Ag | Digital measuring instrument for displaying a measured value that varies over time |
CN101017103A (en) * | 2006-02-10 | 2007-08-15 | 矢崎总业株式会社 | Meter |
CN201689028U (en) * | 2010-05-27 | 2010-12-29 | 深圳市兴日生实业有限公司 | Water-temperature and salinity measuring display instrument mounted in seawater creature cultivation box |
Non-Patent Citations (2)
Title |
---|
基于OGRE的虚拟仪表绘制与显示;胡业磊等;《电脑知识与技术》;20101205;第6卷(第34期);第9844-9846页 * |
飞行模拟器虚拟仪表设计;王述运等;《现代计算机》;20111205(第29期);第74-77页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103528614A (en) | 2014-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN203772488U (en) | LNG storage tank leakage and cooling temperature monitoring system based on distributed fiber temperature measurement method | |
CN102879673A (en) | Test method and device for accuracy of touch screen | |
CN103942551A (en) | Image-based arrester leakage current recognition method and system for convertor station | |
CN103900795B (en) | A kind of device and method for testing transparent display screen transparent effect | |
CN110539639B (en) | Instrument-based gradual change circular ring display method, medium, instrument and device | |
CN103528614B (en) | Utilize the method for analog gauges display measurement data | |
RU2014147669A (en) | SYSTEM AND METHOD FOR DISPLAYING THE GRAPHIC REPRESENTATION OF HYDROCARBON PRODUCTION PARAMETERS | |
CN116151651A (en) | Risk early warning method and system for electric energy meter quality detection | |
CN205228425U (en) | Verticality measuring instrument ware | |
CN102879061A (en) | Water gauge error correction method based on fitted equation | |
CN109239955A (en) | A kind of measurement method of display panel, system and display device | |
CN102314387A (en) | Method for measuring accuracy of touch screen | |
CN204807074U (en) | Plane measuring device of large -scale lid type product | |
CN104730217A (en) | Display method and device of flaw distribution of glass substrate | |
AU2014202571B2 (en) | Utility meter with utility configurable sealed data | |
CN102997969A (en) | Fuel consumption rate measuring system | |
CN109682435A (en) | Pressure volume modification method, electronic equipment and storage medium | |
CN204788182U (en) | Magnetic shoe circular arc test fixture | |
CN203084186U (en) | Data processing system based on electric energy metering device | |
CN105588681A (en) | Temperature compensation method and structure of electronic type pressure gauge | |
CN104424074A (en) | Operational condition displaying method of equipment and electronic equipment | |
WO2021008489A1 (en) | Method and apparatus for visualizing periodic change law of economic and financial data, and medium | |
CN202975357U (en) | Spinning detecting system | |
CN202119853U (en) | Distributed control system card member calibrating device | |
CN205679552U (en) | A kind of portable survey oil product volatilization instrument |
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 |