CN101872301A - Measurement program optimizing system and method - Google Patents

Measurement program optimizing system and method Download PDF

Info

Publication number
CN101872301A
CN101872301A CN200910301813A CN200910301813A CN101872301A CN 101872301 A CN101872301 A CN 101872301A CN 200910301813 A CN200910301813 A CN 200910301813A CN 200910301813 A CN200910301813 A CN 200910301813A CN 101872301 A CN101872301 A CN 101872301A
Authority
CN
China
Prior art keywords
program
measurement
code
output
optimization
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.)
Pending
Application number
CN200910301813A
Other languages
Chinese (zh)
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.)
Shenzhen Futaihong Precision Industry Co Ltd
Original Assignee
Shenzhen Futaihong Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Futaihong Precision Industry Co Ltd filed Critical Shenzhen Futaihong Precision Industry Co Ltd
Priority to CN200910301813A priority Critical patent/CN101872301A/en
Publication of CN101872301A publication Critical patent/CN101872301A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a measurement program optimizing system which is operated on a measurement device with a software programming function so as to optimize a measurement source program on the measurement device. The measurement device comprises a central processing unit (CPU) and a measurement source program stored in the measurement device. The measurement source program comprises a program header, a plurality of measurement elements and output codes and a program end. The measurement program optimizing system comprises a source program storage area, an optimization module and an object program storage area for storing an optimized object program. The optimization module reads and optimizes the measurement source program stored in the source program storage area and then correspondingly stores the measurement source program into the object program storage area, thereby acquiring the optimized object program.

Description

Process of measurement optimization system and method
Technical field
The present invention relates to a kind of program optimization system and method, relate in particular to a kind of process of measurement optimization system and method that result's output in the dimensional measurement program is optimized.
Background technology
In product development, production and the course of receiving, for guaranteeing product quality, usually all need for example to adopt special surveying instrument: the video measuring equipment is measured fast product size and by its software that carries the data that record is gathered in real time, gathered and export fast, is beneficial to that product is detected data and carries out statistical study.
At present, most of surveying instruments carry software to all restrictions to some extent of the way of output of measurement data, can only be with fixing text mode output, can't carry out data intuitively and inspect and directly data are carried out further statistical study.The staff is extracting the data that measure, is requiring a great deal of time in the transfer process and makeing mistakes easily.
Summary of the invention
In view of this, be necessary to provide a kind of process of measurement optimization system that result's output in the dimensional measurement program is optimized.
Also be necessary to provide a kind of process of measurement optimization method that result's output in the dimensional measurement program is optimized.
A kind of process of measurement optimization system, it runs on the measuring equipment of a tool software programming function, so that the measurement source program on this measuring equipment is optimized processing; This measuring equipment comprises a central processing unit and is stored in the interior measurement source program of this measuring equipment; This measurement source program comprises a program header, some measurement elements and output code and a program tail; This process of measurement optimization system comprises that an optimal module and is used for the target program memory block of the target program behind the storage optimization; Described optimal module comprises that a read module, sets up database link block, an output module and a closing database link block as a result; Wherein, this read module is used to read the measurement source program that needs optimization; This sets up the database link block, output module and closing database link block are respectively applied for program header at source program, measure element and output code as a result, the corresponding insertion set up database and connected code, output optimize codes and closing database and connect code behind the program tail, and each code after will optimizing deposits in respectively in the target program memory block, thus the target program after being optimized.
A kind of program optimization method, it may further comprise the steps:
Read the measurement source program that needs optimization process line by line;
Behind the program header of measuring source program, insert and set up database connection code, and the program header code after the optimization process is deposited in the target program memory block;
Behind the measurement element of measuring source program and output code, insert the output optimize codes, and deposit the target program memory block in;
Before the program tail of process of measurement, insert closing database and connect code, and the program tail code after the optimization process is deposited in the target program memory block.
Compared to prior art, described process of measurement optimization system and method can be optimized processing to source program according to user's actual demand, make and in measuring process, saved extraction or needed time of converted measurement end value greatly, the loss of effectively having avoided measurement result to bring because of makeing mistakes in extraction or transfer process has improved production efficiency.
Description of drawings
Fig. 1 is the hardware structure figure of process of measurement optimization system one preferred embodiment of the present invention.
Fig. 2 is the source program structure model functional block diagram of process of measurement optimization system of the present invention.
Fig. 3 is the object configuration model functional block diagram after optimizing through process of measurement optimization system of the present invention.
Fig. 4 is the operational flow diagram of process of measurement optimization system of the present invention.
Embodiment
See also Fig. 1, be depicted as the hardware structure figure of process of measurement optimization system one preferred embodiment of the present invention.This process of measurement optimization system 30 runs on the dimensional measurement equipment 10 of a tool software programming function, with to carrying on this dimensional measurement equipment 10 or the process of measurement to be optimized of pre-stored is optimized processing.This dimensional measurement equipment 10 comprises a central processing unit 11 and is stored in measurement source program 13 in this measuring equipment 10.
See also Fig. 2, this measurement source program 13 comprises a program header 131, some measurement elements and output code 133 and a program tail 135.Wherein, described measurement element comprises workpiece for measurement coordinate, distance, linearity, circularity, the depth of parallelism, verticality etc.
Described process of measurement optimization system 30 comprises a source program memory block 31, an optimal module 33 and a target program memory block 35 that communicates to connect each other.Described source program memory block 31 is used to store the measurement source program 13 of pending optimization process.Described optimal module 33 comprises that an optimize codes memory block 330, a read module 331, set up database link block 333, an output module 335 and a closing database link block 337 as a result.
Described optimize codes memory block 330 is used for the stored programme optimize codes, for example: set up database and connect code 3301, output optimize codes 3303, closing database connection code 3305 etc.
Described read module 331 communicates to connect with source program memory block 31, and it is used to read the measurement source program 13 of the need optimization that is stored in the source program memory block 31.
See also Fig. 3, the described database link block 333 of setting up communicates to connect with this read module 331 and optimize codes memory block 330, it is used for the program code that read module 331 reads is inquired about, and keyword query for example is to search out program header 131; And connect code 3301 at these program header that retrieves 131 back databases of setting up that are stored in the code storage district 330 that insert accordingly, and the program header code after will optimizing deposits in the target program memory block 35.
Described output module as a result 335 is set up database link block 333 with this and is communicated to connect, and it is used for the source program code that read module 331 reads is inquired about, and keyword query for example is to search out corresponding measurement element and output code 133; And after this correspondence that retrieves is measured element and output code 133, insert the output optimize codes 3303 that is stored in the code storage district 330, and deposit target program memory block 35 in.Wherein, described measurement element and output code 133 comprise that output characteristic code, output are apart from program code, output straight-forward program code, output circularity program code, output depth of parallelism program code, output verticality program code, outgoing position program code etc.
Described closing database link block 337 is used for the source program code that read module 331 reads is inquired about for example keyword query, to search out program tail 135, and before the program tail 135 of the process of measurement of this retrieval, insert the closing database connection code 3305 that is stored in the code storage district 330 in, and the program tail code after the optimization process deposited in the target program memory block 35, promptly obtain the target program after the optimization shown in Figure 3.
See also Fig. 4, the operational scheme when the program optimization method of described process of measurement optimization system 30 and 30 work of this process of measurement optimization system is as described below.At first, the read module 331 of described process of measurement optimization system 30 reads the measurement source program 13 that the need that are stored in the source program memory block 31 are optimized line by line.
Next, describedly set up the source program code that 333 pairs of read modules 331 of database link block read and inquire about to determine whether being program header 131; If search program header 131, the then corresponding database of setting up that is stored in the code storage district 330 in these program header that retrieves 131 back insertions connects code 3301, and the program header code after the optimization process is deposited in the target program memory block 35.If do not search this program header 131, then return previous step and carry out the relevant inquiring action again.
Again next, 335 pairs of process of measurement codes of described output module are as a result inquired about, to determine whether serving as to measure element and output code 133; If search is to measure element and output code 133, then inserts output optimize codes 3303 in the measurement element and output code 133 backs of process of measurement, and deposits the program code after the optimization process in target program memory block 35.If do not search this measurement element and output code 133, then return previous step and carry out the relevant inquiring action again.
At last, the program code that 337 pairs of read modules 331 of described closing database link block read is inquired about, to search out program tail 135, and before the program tail 135 of the process of measurement of this retrieval, insert the closing database connection code 3305 that is stored in, and the program tail code after the optimization process is deposited in the target program memory block 35 in the code storage district 330 in.If do not search this program tail 135, then returning previous step carries out the relevant inquiring action again and finishes the relevant operation of optimizing, promptly finish the optimization work to described source program 13, the process of measurement code after this optimization process is stored in the target program memory block 35.
The code storage district 330 that is appreciated that described optimal module 33 also can omit, and by actual input optimize codes in optimizing process.
Be appreciated that described source program memory block 31 also can omit, directly read the measurement source program 13 that is stored in this measuring equipment 10 by the read module 331 of this optimal module 33.
Described process of measurement optimization system and method can be optimized processing to source program according to user's actual demand, make and in measuring process, saved extraction or needed time of converted measurement end value greatly, the loss of effectively having avoided measurement result to bring because of makeing mistakes in extraction or transfer process has improved production efficiency.

Claims (10)

1. process of measurement optimization system, it runs on the measuring equipment of a tool software programming function, so that the measurement source program on this measuring equipment is optimized processing; This measuring equipment comprises a central processing unit and is stored in the interior measurement source program of this measuring equipment; This measurement source program comprises a program header, some measurement elements and output code and a program tail; It is characterized in that: this process of measurement optimization system comprises that an optimal module and is used for the target program memory block of the target program behind the storage optimization; Described optimal module comprises that a read module, sets up database link block, an output module and a closing database link block as a result; Wherein, this read module is used to read the measurement source program that needs optimization; This sets up the database link block, output module and closing database link block are respectively applied for program header at source program, measure element and output code as a result, the corresponding insertion set up database and connected code, output optimize codes and closing database and connect code behind the program tail, and each code after will optimizing deposits in respectively in the target program memory block, thus the target program after being optimized.
2. process of measurement optimization system as claimed in claim 1 is characterized in that: described process of measurement optimization system also comprises a source program memory block, is used to store the measurement source program that needs optimization.
3. process of measurement optimization system as claimed in claim 2 is characterized in that: described optimal module also comprises an optimize codes memory block, is used for the stored programme optimize codes.
4. process of measurement optimization system as claimed in claim 3 is characterized in that: this program optimization code comprises that setting up database connects code, output optimize codes and closing database connection code.
5. process of measurement optimization system as claimed in claim 1, it is characterized in that: describedly set up the database link block, the source program code that before optimization process read module read of output module and closing database link block carries out keyword query as a result, to search out corresponding program header, to measure element and output code and program tail, be beneficial to behind the source program code of correspondence, insert optimize codes.
6. process of measurement optimization system as claimed in claim 5 is characterized in that: described measurement element and output code comprise that output characteristic code, output are apart from program code, output straight-forward program code, output circularity program code, output depth of parallelism program code, output verticality program code and outgoing position program code.
7. process of measurement optimization method, it may further comprise the steps:
Read the measurement source program that needs optimization process line by line;
Behind the program header of measuring source program, insert and set up database connection code, and the program header code after the optimization process is deposited in the target program memory block;
Behind the measurement element of measuring source program and output code, insert the output optimize codes, and deposit the target program memory block in;
Before the program tail of process of measurement, insert closing database and connect code, and the program tail code after the optimization process is deposited in the target program memory block.
8. process of measurement optimization method as claimed in claim 7 is characterized in that: described process of measurement optimization system also comprises a source program memory block, is used to store the measurement source program that needs optimization; Accordingly, described process of measurement optimization method comprises that also one reads the step of the measurement source program that is stored in the target program memory block line by line from the source program memory block.
9. process of measurement optimization method as claimed in claim 8, it is characterized in that: this program optimization method also comprise one describedly set up the database link block, the source program code that before optimization process read module read of output module and closing database link block carries out the step of keyword query as a result, to search out corresponding program header, to measure element and output code and program tail, be beneficial to behind the source program code of correspondence, insert optimize codes.
10. process of measurement optimization method as claimed in claim 8 is characterized in that: described measurement element and output code comprise that output characteristic code, output are apart from program code, output straight-forward program code, output circularity program code, output depth of parallelism program code, output verticality program code and outgoing position program code.
CN200910301813A 2009-04-24 2009-04-24 Measurement program optimizing system and method Pending CN101872301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910301813A CN101872301A (en) 2009-04-24 2009-04-24 Measurement program optimizing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910301813A CN101872301A (en) 2009-04-24 2009-04-24 Measurement program optimizing system and method

Publications (1)

Publication Number Publication Date
CN101872301A true CN101872301A (en) 2010-10-27

Family

ID=42997175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910301813A Pending CN101872301A (en) 2009-04-24 2009-04-24 Measurement program optimizing system and method

Country Status (1)

Country Link
CN (1) CN101872301A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1195811A (en) * 1996-12-27 1998-10-14 日本电气株式会社 Language processing system which generates debugging source file corresponding to optimization image and method therefor
WO2005073851A2 (en) * 2004-01-14 2005-08-11 Commissariat A L'energie Atomique System for automatically generating optimised codes
CN1940863A (en) * 2005-09-26 2007-04-04 鸿富锦精密工业(深圳)有限公司 Intelligent generating system and method for sensing programm
CN101118487A (en) * 2006-08-02 2008-02-06 鸿富锦精密工业(深圳)有限公司 Measurement programmed switching system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1195811A (en) * 1996-12-27 1998-10-14 日本电气株式会社 Language processing system which generates debugging source file corresponding to optimization image and method therefor
WO2005073851A2 (en) * 2004-01-14 2005-08-11 Commissariat A L'energie Atomique System for automatically generating optimised codes
CN1940863A (en) * 2005-09-26 2007-04-04 鸿富锦精密工业(深圳)有限公司 Intelligent generating system and method for sensing programm
CN101118487A (en) * 2006-08-02 2008-02-06 鸿富锦精密工业(深圳)有限公司 Measurement programmed switching system and method

Similar Documents

Publication Publication Date Title
CN107992686B (en) Wire harness path generation system for full-automatic wiring machine
CN102736557A (en) Numerical control machine tool error real-time compensation system based on virtual instrument
CN101702182B (en) Automatic generation system of pipeline name in power plant design
CN101540013A (en) System and method for tracing quality data of all life cycle
CN105786912A (en) Data acquisition and transformation method and device
CN114338752B (en) Intelligent docking system and method for third-party Internet of things platform equipment
CN109559054B (en) Electric power engineering construction information processing system
JP2021128776A5 (en)
CN113946294A (en) Distributed storage system and data processing method thereof
CN110659289B (en) Material quality detection test report management method and system
CN105956037A (en) Factory database system
CN113723376B (en) Intelligent screen display data acquisition method, device, equipment and storage medium
CN102117473A (en) Meter reading management system with image and text
CN106202440A (en) Data processing method, device and equipment
CN106134470B (en) A kind of DNC integrated management system and method
CN111339659B (en) Rapid labeling method and device for stepped holes in three-dimensional model
CN101872301A (en) Measurement program optimizing system and method
CN109815297A (en) A kind of tree access arithmetic system not depending on relational database
CN111652470B (en) Manufacturing process multi-mode data causal chain construction system and method
CN101908985A (en) Message checking method and device
CN102918525B (en) The control method of pen recorder, register system and pen recorder
CN107766444B (en) Intelligent conversion system for satellite-ground cooperative remote measurement information
CN103530353A (en) Self-identification method of GPS user data format
CN202074961U (en) Monitoring and measuring integrated machine for nailed pile layouting and project construction planning
CN102722917B (en) A kind of equipment and pipeline layout patrolling and checking management system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101027