CN104571706B - A kind of assessment setting method of power displacement detector - Google Patents
A kind of assessment setting method of power displacement detector Download PDFInfo
- Publication number
- CN104571706B CN104571706B CN201510007442.3A CN201510007442A CN104571706B CN 104571706 B CN104571706 B CN 104571706B CN 201510007442 A CN201510007442 A CN 201510007442A CN 104571706 B CN104571706 B CN 104571706B
- Authority
- CN
- China
- Prior art keywords
- window
- interface
- assessment
- liquid crystal
- touch screen
- 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.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Investigating Or Analysing Biological Materials (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention relates to a kind of assessment setting methods of power displacement detector, using a piece of arm processor chip as control chip, the setting at curve assessment interface is carried out using mbedded GUI tool emWin and is shown on liquid crystal touch screen, the content and the specific boundary value of each content or threshold value of curve assessment are determined according to facilities, wherein curve assessment content includes any combination of following four method: thread window appraisal procedure passes through window appraisal procedure, block window appraisal procedure, envelope appraisal procedure;After the completion of curve assessment curriculum offering, the result of setting is sent to external FLASH memory space according to instruction and carries out data storage, while the assessment content real-time display of setting being shown on liquid crystal touch screen.
Description
Technical field
It is that inspection is realized using embedded control system the present invention relates to a kind of assessment setting method of power displacement detector
To the setting of curve assessment content to be checked during survey, the assessment content as in detection device, to curve, whether sentence by qualification
Disconnected foundation.
Background technique
Currently, power displacement sensor detection system is when carrying out curve assessment curriculum offering, setting method fixed, man-machine base
Face it is poor and set after content real-time storage, in terms of existing defects, prevent user is from according to detected work
The method and content of the characteristic flexible setting assessment of part, affect the applicability of detection system.
Summary of the invention
Technology of the invention solves the problems, such as: existing power displacement sensor detection system curve assessment method is overcome to fix,
Man-machine interface is poor, the defect of real-time difference etc., devise one kind can flexible setting assessment content, man-machine interface it is friendly, real
When store and display assessment content method.
Technical solution of the invention are as follows:
A kind of assessment setting method of power displacement detector, the present invention are realized using a piece of arm processor chip to liquid
The interface display of brilliant touch screen determines the content and the specific boundary value of each content of curve assessment according to touch screen facilities
Or threshold value, wherein curve assessment content includes any combination of following four method: thread window appraisal procedure passes through window assessment side
Method, block window appraisal procedure, envelope appraisal procedure;After the completion of curve assessment content setting, according to instruction by the result of setting send to
External FLASH memory space carries out data storage, while the assessment content real-time display of setting being carried out on liquid crystal touch screen
Display.
Beneficial effect
The present invention can flexible setting assess content, and man-machine interface is friendly, has the function of real-time storage and display.
Detailed description of the invention
Fig. 1 is structure composition block diagram of the invention.
Fig. 2 is liquid crystal touch screen display interface schematic diagram of the invention.
Fig. 3 is ARM chip and outside FLASH interface circuit figure of the invention.
Fig. 4 is liquid crystal touch screen display interface schematic diagram of the invention.
Fig. 5 is curve assessment setting method main program flow chart of the invention.
Fig. 6 is timer interrupt service program flow diagram of the invention.
Fig. 7 is emWin call back function program flow diagram of the invention.
The invention patent is further described with reference to the accompanying drawing.
It is the composition block diagram of present system as shown in Figure 1:, it is characterized in that: ARM chip 1 is the control core of curve assessment
The heart, the chip are connected with liquid crystal touch screen 1 and FLASH chip 3, carry out curve using tool graphical user interface emWin and comment
The display design for estimating interface, handles the setting information that sends from liquid crystal touch screen 2, and by the assessment combined method set and
The parameter of each assessment content is sent to FLASH chip 3 and is stored.
As shown in Fig. 2, the present invention controls touch screen using TSC2046 chip, the chip and ARM chip are logical by SPI
Letter mode swaps data, is carried out with ARM chip PF6, PF7, PF8, PF9 pin multiplexing at SPI mode in the present invention
The control of TSC2046 chip;The principle that TSC2046 chip reads coordinate is as follows: when X-coordinate to be measured, first by writing control
To touch screen controller, so that applying a determining voltage on X+ and X-, and voltage is not added in word processed on Y+ and Y-, then X+ and
It just will form the parallel voltage field of uniformly continuous between X-.When touching touch screen surface with finger or felt pen, at contact
Voltage reflects position of the contact on X working face.The voltage is drawn out to touch screen controller by Y+ or Y- electrode,
It is converted using wherein A/D, the digital quantity of contact voltage, i.e. X-coordinate can be obtained.Y-coordinate is also measured with same principle.
Controller only needs the reading digital quantity by timer timing.The present invention uses emWin for interface instrument, first
After beginningization is completed liquid crystal and is touched, so that it may the application interface function in the library emwin be called to carry out interface.
As shown in figure 3, ARM core of the invention is attached by SPI port and external FLASH chip, of the invention is outer
Portion's FLASH chip uses W25Q64BVSSIG, and capacity is 8M byte, the SPI clock frequency of up to 80MHz, initialization completion
After it can be written and read.
It is as shown in Figure 4: to be liquid crystal touch screen curve assessment set interface schematic diagram of the invention.The set interface includes:
Four parts are arranged by the setting of window window, the setting of block window window, envelope window in the setting of thread window window.Wherein: if clicking thread
Window button, then the button is highlighted, and indicates to include thread window appraisal procedure in curve assessment content, and thread window is arranged in window 1
The longitudinal length of thread window window is arranged in lateral length, the window 2 of window, after being provided with, the frame of emWin is called to draw application
Interface function GUI_DrawRect (int x0, int y0, int x1, int y1), x0, y0 are thread window the preview window
Left apex coordinate, x1 are the lateral length that x0 adds thread frame, and y1 is the longitudinal length that y0 adds thread frame, the then thread being arranged
Window window carries out real-time display as unit of pixel in preview 1;If clicking through window button by the button is highlighted, table
Show in curve assessment content comprising by window appraisal procedure, the setting of window 3 passes through curve approaching side (upside, downside, the left side of window
And right side), the setting of window 4 is left side (upside, downside, left and right side) by the curve of window, and the window by window is arranged in window 5
The lateral length of mouth, the setting of window 6 after being provided with, also call the identical frame of emWin to draw by the longitudinal length of the window of window
Function processed fills out corresponding parameter, then what is be arranged carries out real-time display by window window as unit of pixel in preview 2;If point
Block window button is hit, then the button is highlighted, and indicates to include block window appraisal procedure in curve assessment content, and block window is arranged in window 7
The longitudinal length of block window window is arranged in lateral length, the window 8 of window, after being provided with, after being provided with, also calls emWin
Identical frame drafting function fills out corresponding parameter, then the block window window being arranged is carried out in preview 3 real-time as unit of pixel
Display;If clicking envelope button, which is highlighted, and indicates to include envelope appraisal procedure, window 9 in curve assessment content
The width for playing/stopping abscissa, the setting envelope of window 10 of envelope is set, after being provided with, on the basis of primary standard curve, with window
What mouth 9 was arranged plays/stops the lateral length section that abscissa is envelope, the data being arranged using window 10 as the width of envelope, passes through
Function depicts one group of polygon array, then application interface function GUI_DrawGraph () is called to draw out standard curve letter
Number recalls the filling that application interface function GUI_FillPolygon () carries out region setpoint color in corresponding position, draws
Envelope shade out.
As shown in figure 5, the curve assessment setting method main program flow chart of ARM controller in the present invention is given, at this
In main program, I/O port, initialization liquid crystal display, initialization touch setting, initialization timer, initialization are initialized respectively
EmWin, emWin interface function design interface is called, Open Timer device interrupts.
As shown in fig. 6, giving timer interrupt service program flow diagram of the invention.In timer interrupt service program
In, call the touch scan interface function GUI_TOUCH_Exec () inside emWin to be scanned touch screen, when there is outside
When touch information, immediately enters and handle corresponding touch information in the call back function of emWin.Due to each control of emWin
Different ID is all distributed, is pressed so different controls can be differentiated according to different ID in call back function, then does
Corresponding processing.
As shown in fig. 7, giving emWin call back function program flow diagram of the invention.Returning according to interface function first
Replying, it is determined whether to enable window settings for number, and successively judge whether it is thread window, by four kinds of window, block window and envelope assessment sides
One of method is a variety of, the parameter in corresponding four kinds of assessment modes is arranged according to the result of return, and save interface and ginseng
Number is into FLASH chip outside piece.
Claims (3)
1. a kind of curve assessment setting method of power displacement detector, it is characterised in that:
The power displacement detector includes ARM chip (1), liquid crystal touch screen (2) and outside FLASH (3);ARM chip (1) is made
For the core processing unit that curve assessment setting method is realized, ARM chip (1) uses mbedded GUI tool
EmWin carries out the design at curve assessment interface and is shown on liquid crystal touch screen (2);ARM chip (1) is by being internally integrated
Liquid crystal driver module be connected with liquid crystal touch screen (2), pass through SPI communication mode and outside FLASH (3) progress data friendship
It changes;Wherein ARM chip (1) carries out that operation is arranged accordingly according to the triggering command of liquid crystal touch screen (2), in the assessment after setting
Appearance is shown on liquid crystal touch screen (2) in real time;Meanwhile the result after being provided with is stored in external FLASH by ARM chip (1)
(3) in;
The curve assessment setting method includes:
Respectively initialize I/O port, initialization liquid crystal display, initialization touch setting, initialization timer, initialize emWin,
EmWin interface function design interface is called, Open Timer device interrupts;
In timer interrupt service program, call the touch scan interface function GUI_TOUCH_Exec () inside emWin right
Touch screen is scanned;
When there is external touch information, immediately enters and handle corresponding touch information in the call back function of emWin;Due to emWin
Each control distribute different ID, be pressed so differentiating different controls according to different ID in call back function,
Then corresponding processing is done;
Wherein, corresponding touch information is handled in the call back function to specifically include:
According to the return function of interface function, it is determined whether to enable window settings, and successively judge whether it is thread window, by window,
One of four kinds of appraisal procedures of block window and envelope are a variety of;It is arranged in corresponding four kinds of assessment modes according to the result of return
Parameter, and save outside interface and parameter to piece in FLASH chip.
2. a kind of curve assessment setting method of power displacement detector according to claim 1, it is characterised in that:
The curve assessment interface of liquid crystal touch screen (2) display includes: thread window set interface is set by window set interface, block window
Four interface, envelope set interface contents are set, the parameter at each interface carries out human-computer interaction interface by liquid crystal touch screen (2)
Setting.
3. a kind of curve assessment setting method of power displacement detector according to claim 1, it is characterised in that: described
ARM chip (1) use processor of the TMS32F429 series A RM as algorithm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510007442.3A CN104571706B (en) | 2015-01-08 | 2015-01-08 | A kind of assessment setting method of power displacement detector |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510007442.3A CN104571706B (en) | 2015-01-08 | 2015-01-08 | A kind of assessment setting method of power displacement detector |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104571706A CN104571706A (en) | 2015-04-29 |
CN104571706B true CN104571706B (en) | 2019-03-15 |
Family
ID=53087951
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510007442.3A Expired - Fee Related CN104571706B (en) | 2015-01-08 | 2015-01-08 | A kind of assessment setting method of power displacement detector |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104571706B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101726385A (en) * | 2008-10-21 | 2010-06-09 | 通用汽车环球科技运作公司 | Pressure sensor with nonlinear characteristic curve |
CN101135580B (en) * | 2006-08-29 | 2011-01-12 | Abb专利有限公司 | Method for determining a characteristic of a sensor arrangement |
-
2015
- 2015-01-08 CN CN201510007442.3A patent/CN104571706B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101135580B (en) * | 2006-08-29 | 2011-01-12 | Abb专利有限公司 | Method for determining a characteristic of a sensor arrangement |
CN101726385A (en) * | 2008-10-21 | 2010-06-09 | 通用汽车环球科技运作公司 | Pressure sensor with nonlinear characteristic curve |
Also Published As
Publication number | Publication date |
---|---|
CN104571706A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9395908B2 (en) | Information processing apparatus, information processing method, and information processing program utilizing gesture based copy and cut operations | |
CA2880345C (en) | Hit testing method and apparatus | |
CN109445676A (en) | The method of the handwritten stroke information of user's input is deleted on handwriting equipment | |
WO2004031933B1 (en) | Method of combining data entry of handwritten symbols with displayed character data | |
CN107422974A (en) | Handwriting display methods and system, storage medium and equipment based on dual system | |
JPH05204538A (en) | Method of reducing overhead at time when inking is conducted to stroke and data processor therefor | |
CN104238768A (en) | Handwriting input apparatus and control method | |
RU2008116281A (en) | METHOD, DEVICE, COMPUTER PROGRAM AND GRAPHIC USER INTERFACE FOR USER ENTRANCE IN ELECTRONIC DEVICE | |
CN106502667B (en) | A kind of rendering method and device | |
CN104267931B (en) | A kind of information processing method and electronic equipment | |
JP2012168619A (en) | Touch drawing display device and operation method therefor | |
CN105653177A (en) | Method for selecting clickable elements of terminal equipment interface and terminal equipment | |
WO2019076118A1 (en) | Information display method and apparatus | |
CN104238938B (en) | It can carry out the image display device and its operating method of screen operation | |
CN104571706B (en) | A kind of assessment setting method of power displacement detector | |
CN108958511A (en) | Interactive display device writes control method, mobile terminal and storage medium | |
CN107132944A (en) | A kind of method for deleting and system for electronic whiteboard | |
CN201860353U (en) | Mobile phone with drawing pad function | |
CN105511772B (en) | The method, device and mobile terminal for touching on-screen button are triggered by gesture operation | |
JP2014026365A (en) | Panel control device, panel control method and panel control program | |
CN207232917U (en) | A kind of smart machine of the method for toch control based on phase difference | |
CN103049097B (en) | A kind of hand-writing input method highlights method and hand-writing input method | |
Cheng et al. | Touch Projector | |
CN105183226B (en) | A kind of screen slides the test method and device of sensitivity | |
JPS6153729B2 (en) |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190315 Termination date: 20200108 |