1. Technical Field
Embodiments of the present disclosure relate to measurement technology, and particularly to an electronic device and method for controlling probe measurements using the electronic device.
2. Description of Related Art
Measurement is an important phase in manufacturing and is closely related to product quality. In recent years, probe measurement has been used to obtain a plurality of point data of an object by contacting a large number of points on a surface of the object using a probe, processing the data in the points, and subsequently extracting boundary elements including boundary points and boundary characteristics of the object, in order to form a profile image of the object. However, if a configuration file of a probe is not pre-stored in a storage device, the current measuring method cannot measure the object using the probe. Therefore, a more efficient method for controlling probe measurement using an electronic device is desired.
All of the processes described below may be embodied in, and fully automated via, functional code modules executed by one or more general purpose electronic devices or processors. The code modules may be stored in any type of non-transitory computer-readable medium or other storage device. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the non-transitory computer-readable medium may be a hard disk drive, a compact disc, a digital video disc, a tape drive or other suitable storage medium.
The display device 20 may be used to display measuring results of the object, and the input device 22 may be a mouse or a keyboard used to input computer readable data.
In block S1, a user can log into the probe management system 24 to start the measurement.
In block S2, the obtaining module 201 determines if a preset configuration file of the probe 42 is stored in the storage device 23. If the preset configuration file of the probe 42 is stored in the storage device 23, the procedure goes to block S3. If the preset configuration file of the probe 42 is not stored in the storage device 23, the procedure goes to block S4.
In block S3, the obtaining module 201 reads preset identification data of the probe 4 from the preset configuration file, then the procedure goes to block S5. In one embodiment, the identification data may include, but is not limited to, a type and size of each part of the probe 4.
In block S4, the obtaining module 201 receives user-defined identification data of the probe 4 from the input device 22, then the procedure goes to block S5. As mentioned above, the user-defined identification data may include a type and size of each part of the probe 4.
In block S5, the fitting module 202 fits a three dimensional (3D) model of the probe 4 according to the preset identification data or the user-defined identification data of the probe 4, and displays the fitted 3D model on the display device 20.
In block S6, the fitting module 202 determines if the fitted 3D model matches the probe 4. If the fitted 3D model does not match the probe 4, the procedure returns to block S4, the user updates user-defined identification data of the probe 4, and the obtaining module 201 receives the updated user-defined identification data through the input device 22. If the fitted 3D model matches the probe 4, the procedure goes to block S7. A detailed description of determining if the fitted 3D model matches the probe 4 is as follows.
The fitting module 202 obtains a reference 3D model of the probe 4 from the storage device 23, and compares the reference 3D model with the fitted 3D model. If the fitted 3D model matches the reference 3D model, the fitting module 202 determines that the fitted 3D model matches the probe 4. Otherwise, if the fitted 3D model does not match the reference 3D model, the fitting module 202 determines that the fitted 3D model does not match the probe 4.
In block S7, the storing module 203 stores the user-defined identification data of the probe 4 in a user-defined configuration file corresponding to the probe 4, and stores the user-defined configuration file into the storage device 23.
In other embodiments, the method may further include block S8. In block S8, the calibrating module 204 calibrates the probe 4 when the probe 4 needs to be calibrated, and stores the calibration results in the user-defined configuration file. Then, the measuring module 205 controls the probe 4 to execute measurement according to the user-defined configuration file. In one embodiment, if the user-defined configuration file does not store the calibration results of the probe 4 or a calibrating period (e.g., five days) of the probe 4 expires, the calibrating module 204 determines that the probe 4 needs to be calibrated. If the user-defined configuration file stores the calibration results of the probe 4 and the calibrating period of the probe 4 does not expire, the calibrating module 204 determines that the probe 4 does not need to be calibrated.
In one embodiment, the calibration results may include, but is not limited to, a movement speed of the probe 4, a current diameter of the tip 45 of the probe 4, and a current length of the tip 45. For example, if the current diameter of the tip 45 is less than a first percentage (e.g., 95%) of a reference diameter of the tip 45, or the current length of the tip 45 is less than a second percentage (e.g., 90%) of a reference length of the tip 45, the calibrating module 204 sends an alarm message on the display device 20 to prompt the user to replace the probe 4.
It should be emphasized that the above-described embodiments of the present disclosure, particularly, any embodiments, are merely possible examples of implementations, merely set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201110061787.9 | Mar 2011 | CN | national |