[go: up one dir, main page]

CN102768237B - A kind of scan method of three-dimensional near-field vector and device - Google Patents

A kind of scan method of three-dimensional near-field vector and device Download PDF

Info

Publication number
CN102768237B
CN102768237B CN201110111655.2A CN201110111655A CN102768237B CN 102768237 B CN102768237 B CN 102768237B CN 201110111655 A CN201110111655 A CN 201110111655A CN 102768237 B CN102768237 B CN 102768237B
Authority
CN
China
Prior art keywords
analyzing spot
thread
data
field vector
queue
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
CN201110111655.2A
Other languages
Chinese (zh)
Other versions
CN102768237A (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.)
Kuang Chi Institute of Advanced Technology
Kuang Chi Innovative Technology Ltd
Original Assignee
Kuang Chi Institute of Advanced Technology
Kuang Chi Innovative Technology 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 Kuang Chi Institute of Advanced Technology, Kuang Chi Innovative Technology Ltd filed Critical Kuang Chi Institute of Advanced Technology
Priority to CN201110111655.2A priority Critical patent/CN102768237B/en
Publication of CN102768237A publication Critical patent/CN102768237A/en
Application granted granted Critical
Publication of CN102768237B publication Critical patent/CN102768237B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Length Measuring Devices With Unspecified Measuring Means (AREA)

Abstract

The invention provides a kind of scan method of three-dimensional near-field vector, undertaken by main thread and the first thread parallel, main thread comprises step: obtain scanning information, and drive motor, to target location, triggers the first thread performing Data Collection.The present invention also provides a kind of parallel scan device of three-dimensional near-field vector to realize said method.Device comprises: main thread operational module 100, and for obtaining scanning information, drive motor, to target location, triggers the first thread module work; First thread operational module 101, for performing Data Collection; Second thread work module 102, exports for performing data.Undertaken by the point in the queue of reading analyzing spot, image data and printing or output data parallel, decrease the serial stand-by period, substantially increase the efficiency of the Data acquisition and issuance of near-field vector scanning system.

Description

A kind of scan method of three-dimensional near-field vector and device
[technical field]
The present invention relates to electromagnetic field detection field, particularly a kind of scan method of three-dimensional near-field vector and device.
[background technology]
Magnetic field and electromagnetic wave in the widespread use of the every field of modern society, such as, are applied to medical instruments field, by the various illnesss of the magnetic field detecting human body excited, have achieved good effect.People have had further understanding for the understanding of three-dimensional near-field vector, field strength and the distribution in direction and the measurement of characteristic.Therefore, to various magnetic elements such as the measurement efficiency of permanent magnet, electromagnet, to acceleration, it seems especially important in the application of different technologies and engineering field to efficient, accurate, visual 3 d-space field vector scan system.
Measure a medium to electromagnetic response characteristic, need to detect the electromagnetic property through each point of its space of the electromagnetic wave after this medium, then utilize certain treatment facility that the electromagnetic property value record of the spatial points detected is got off and analyzed.In electromagnetic field detection process, the collection of data and analysis efficiency seem particularly important.
Prior art can only scan the square region of specifying and data acquisition, and adopts motor to stop data collection mode, and the picking rate making data slowly, when large-area scan sample, often will expend and just can complete for a long time.The process of image data is that serial code controls, often move to an analyzing spot and all need stopping 50 milliseconds to 500 milliseconds, be saved to a data file after obtaining the data in collecting device, then move to next point, until all analyzing spots all data acquisitions.
As shown in Figure 2, prior art often moves to an analyzing spot needs static a period of time, continue mobile after waiting for data acquisition equipment data acquisition again, this problem just causing sweep time long, because when scanning area is very large, when sweep spacing is very little, the quantity of analyzing spot is very surprising, the static stand-by period total so just can not receive, such as, static 50 milliseconds of each analyzing spot, when analyzing spot one panel region is 500mm*500mm, when sweep spacing is 1mm, light waits for that data acquisition time all needs 54 hours, if when sweep spacing is set as 0.1mm, time required for scan task dare not be imagined simply.
Against the background of the prior art, to how to improve prior art, improve the sweep velocity of sample, have vital effect to the Data acquisition and issuance efficiency of three-dimensional near-field vector scanister.
[summary of the invention]
The present invention is directed to existing scan method, often move to analyzing spot need static a period of time to wait for data acquisition just continues movement after completing, thus cause under efficiency, provide a kind of scan method of three-dimensional near-field vector, method is carried out by main thread and the first thread simultaneously
Main thread comprises the following steps: obtain scanning information, and drive motor, to target location, triggers the first thread performing Data Collection.
In the scan method of three-dimensional near-field vector of the present invention, the first thread performs the second thread that data export after triggering.
In the scan method of three-dimensional near-field vector of the present invention, obtain scanning information, drive motor specifically comprises to the step of target location:
S01: the scanning curve or the sweep limit that obtain user's input;
S02: scanning curve or sweep limit are changed into respective scanned dot information, and stored in analyzing spot queue;
S03: judge whether analyzing spot queue is empty, and if so, EOP (end of program), if not, skips to step S04;
S04: the analyzing spot reading the head pointer indication in analyzing spot queue;
S05: drive motor moves to the position of the analyzing spot of head pointer indication in analyzing spot queue, skips to S03.
In the scan method of three-dimensional near-field vector of the present invention, the step performing the second thread of Data Collection comprises:
S11: judge whether motor moves to the position of the analyzing spot of head pointer indication, if so, skips to S12;
S12: starting outfit, collects data;
S13: by data stored in buffer queue, skips to S11.
In the scan method of three-dimensional near-field vector of the present invention, the second thread performs the 3rd thread that data export after triggering.
In the scan method of three-dimensional near-field vector of the present invention, the step that the data of the second thread execution export comprises:
S21: judge whether buffer queue has data, if so, skips to S22, if not, skip to S21;
S22: print or export data.
In the scan method of three-dimensional near-field vector of the present invention, in step S02, analyzing spot information, comprises analyzing spot coordinate information and whether completes the mark of this spot scan.
In the scan method of three-dimensional near-field vector of the present invention, in step S02, use the method for cubic spline interpolation, scanning curve or sweep limit are changed into respective scanned dot information.
In the scan method of three-dimensional near-field vector of the present invention, in step S05, motor is servomotor, has feedback mechanism, constantly detects the position of servomotor in moving.
In the scanister of three-dimensional near-field vector of the present invention, device comprises:
Main thread operational module 100, for obtaining scanning information, drive motor, to target location, triggers the first thread module work;
First thread operational module 101, for performing Data Collection;
Second thread work module 102, exports for performing data
The concurrent working of main thread operational module 100, first thread operational module 101, second thread work module 102.
The present invention is directed to the deficiencies in the prior art, provide a kind of scan method of three-dimensional near-field vector, utilize the feedback mechanism of motor, constantly detect the motor position in moving.Undertaken by the point in the queue of reading analyzing spot, image data and printing or output the parallel of data, decrease the serial stand-by period.
[accompanying drawing explanation]
Fig. 1 is the process flow diagram of the present invention to the scan method main thread of three-dimensional near-field vector;
Fig. 2 is the process flow diagram of the existing scan method of three-dimensional near-field vector;
Fig. 3 is the process flow diagram of the present invention to scan method first thread of three-dimensional near-field vector;
Fig. 4 is the process flow diagram of the present invention to scan method second thread of three-dimensional near-field vector;
Fig. 5 is the data structure schematic diagram of analyzing spot information;
Fig. 6 is the structural representation of the scanister of three-dimensional near-field vector of the present invention;
Fig. 7 is main thread operational module 100 schematic diagram;
Fig. 8 is the structural representation of the first thread operational module 101;
Fig. 9 is the structural representation of the second thread work module 102.
[embodiment]
Below in conjunction with drawings and Examples, the present invention is described in detail.
The scan method of the three-dimensional near-field vector shown in Fig. 1, method is undertaken by main thread and the first thread parallel,
Main thread comprises the following steps:
S01: the scanning curve or the sweep limit that obtain user's input;
Obtain the information to be scanned of user's input, can be a curve, also can be one piece of scope, but also be not limited only to above-mentioned expression way.
S02: scanning curve or sweep limit are changed into respective scanned dot information, and stored in analyzing spot queue;
Innovative point of the present invention is, in S01 step, the scanning curve of user's input or sweep limit use the method for cubic spline interpolation, change into corresponding analyzing spot information, stored in analyzing spot queue.The data structure of each analyzing spot information as shown in Figure 5, after often completing an analyzing spot, will complete mark and be set to True by False, represent that the data acquisition of this analyzing spot information completes.When scanning next time, only need from the position being labeled as True, do not need to start anew.
For in analyzing spot queue, often increase an analyzing spot information, the head pointer of analyzing spot queue is constant, and tail pointer adds one.
S03: judged whether the analyzing spot in the queue of traverse scanning point, if so, EOP (end of program), if not, skips to S04;
In analyzing spot queue, judge whether also there is the analyzing spot do not traveled through in analyzing spot queue, if head pointer overlaps with tail pointer, analyzing spot queue is empty, and traversal completes.
S04: the analyzing spot reading the head pointer indication in analyzing spot queue;
S05: drive motor moves to the position of the analyzing spot of head pointer indication in analyzing spot queue, triggers the first thread simultaneously, skips to S03;
The process flow diagram of scan method first thread of three-dimensional near-field vector as shown in Figure 3.
First thread comprises the following steps:
S11: judge whether motor moves to the position of the analyzing spot of head pointer indication, if so, skips to S12, if not, skip to S11;
Innovative point of the present invention is, the movement of motor in step S05, is separated with two processes of data acquisition in S11, S12.Use the automatic feedback characteristic of servomotor, judge that whether current location is in analyzing spot queue, the analyzing spot of head pointer indication; Utilize the feedback mechanism of servomotor constantly to detect the motor position in moving, namely achieving, obtaining image data when not stopping servomotor.
Such as, suppose that user inputs a square scanning area, coordinate range x:0-10, y:0-10, sweep spacing is 1mm, then can calculate all analyzing spot positions for (0,0), (0,1), (0,2) ..., (0,10), (1,0), (1,1), (1,2), ..., (1,10) ....When task starts, motor at the uniform velocity moves by the position of analyzing spot, because servomotor has automatic feedback function, when motor removing is to a certain analyzing spot, then to collecting device request msg and stored in local data base, consider that the speed of storage may be very slow, therefore, this part adopts asynchronous mode to complete.
S12: starting outfit, collects data;
When current location has moved to analyzing spot queue head pointer analyzing spot, start data acquisition equipment, collect the electromagnetic field related data of current location.
S13: data are skipped to S11 stored in buffer queue.
Innovative point of the present invention is, after step s 13, also comprises the second thread, and run with main thread and the first thread, as shown in Figure 4, it comprises the following steps simultaneously:
S21: judge whether also have data point in buffer queue, if so, skip to S22, if not, skip to S21;
In buffer queue, if when head pointer and tail pointer overlap, in this queue, data export or have printed;
S22: print or export data point.
The invention still further relates to a kind of scanister of three-dimensional near-field vector, as shown in Figure 6, device comprises:
Main thread operational module 100, for obtaining scanning information, drive motor, to target location, triggers the first thread operational module 101;
First thread operational module 101, for Data Collection;
Second thread work module 102, exports for data.
Further, as shown in Figure 7, main thread operational module 100 comprises with lower unit:
Data input cell 1001, for obtaining scanning curve or the sweep limit of user's input;
In this unit, obtain the information to be scanned of user's input, can be a curve, also can be one piece of scope, but also be not limited only to above-mentioned expression way.
Date Conversion Unit 1002, for changing into respective scanned dot information by scanning curve or sweep limit, and stored in analyzing spot queue;
In this unit, the scanning curve using the method for cubic spline interpolation user to be inputted or sweep limit convert corresponding analyzing spot information to, stored in analyzing spot queue.The data structure of each analyzing spot information as shown in Figure 5, after often completing an analyzing spot, will complete mark and be set to True by False, represent that the data acquisition of this analyzing spot information completes.When scanning next time, only need from the position being labeled as True, do not need to start anew.
Data determining unit 1003, for judging whether analyzing spot queue is empty, and if so, EOP (end of program), if not, enters data extracting unit 1004;
Data extracting unit 1004, for reading the analyzing spot of the head pointer indication in analyzing spot queue;
Drive motor units 1005, moves to the position of the analyzing spot of head pointer indication in analyzing spot queue for drive motor, enter data determining unit 1003.
First thread operational module 101, as shown in Figure 8, comprises with lower unit:
Motor position judging unit 1011, for judging whether motor moves to the position of the analyzing spot of head pointer indication, if so, entering and collecting data cell 1012;
Collect data cell 1012, for starting outfit, collect data;
Data stored in buffer queue unit 1013, for by data stored in buffer queue, enter motor position judging unit 1011.
Innovative point of the present invention is, sentences in segment unit in drive motor units 1005 and motor position, utilizing the feedback mechanism of servomotor constantly to detect the motor position in moving, obtaining the data of collection when not stopping servomotor.
Second thread work module 102, as shown in Figure 9, comprises with lower unit:
Buffer queue judging unit 1021, for judging whether buffer queue has data, if so, enters printing or output unit 1022, if not, is back to buffer queue judging unit 1021 and continues to judge;
Print or output unit 1022, for printing or exporting data.
Use method of the present invention, can make often to move the rest time that a point all no longer needs 50 milliseconds, when sweep spacing is set as 0.1mm, compares former method when the sector scanning of 500mm*500mm, save 54 hours.
The present invention is directed to the deficiencies in the prior art, three-dimensional near-field vector scan method inefficiency, provide a kind of scan method of three-dimensional near-field vector, formulate a kind of standard data structure of analyzing spot information, utilize the feedback mechanism of servomotor, constantly detect the motor position in moving, undertaken by the point in the queue of reading analyzing spot, image data and printing or output data parallel, decrease the serial stand-by period, substantially increase the efficiency of the Data acquisition and issuance of near-field vector scanning system.
In the above-described embodiments, only to invention has been exemplary description, but those skilled in the art can carry out various amendment to the present invention without departing from the spirit and scope of the present invention after reading present patent application.

Claims (7)

1. a scan method for three-dimensional near-field vector, is characterized in that, described method is undertaken by main thread and the first thread parallel,
Main thread comprises step: obtain scanning information, and drive motor, to target location, triggers the first thread performing Data Collection;
Described acquisition scanning information, drive motor specifically comprises to the step of target location:
S01: the scanning curve or the sweep limit that obtain user's input;
S02: scanning curve or sweep limit are changed into respective scanned dot information, and stored in analyzing spot queue; Described analyzing spot information comprises analyzing spot coordinate information and whether completes the mark of this spot scan;
S03: judge whether analyzing spot queue is empty, and if so, EOP (end of program), if not, skips to step S04;
S04: the analyzing spot reading the head pointer indication in analyzing spot queue;
S05: drive motor moves to the position of the analyzing spot of head pointer indication described in analyzing spot queue, after often completing an analyzing spot, has been set to described mark, has skipped to S03.
2. the scan method of three-dimensional near-field vector according to claim 1, is characterized in that, the step of the first thread of described execution Data Collection comprises:
S11: judge whether described motor moves to the position of the analyzing spot of described head pointer indication, if so, skips to S12;
S12: starting outfit, collects data;
S13: by described data stored in buffer queue, skip to S11.
3. the scan method of three-dimensional near-field vector according to claim 2, performs the second thread that data export after described first thread triggers.
4. the scan method of three-dimensional near-field vector according to claim 3, is characterized in that, the step that the data of described second thread execution export comprises:
S21: judge whether described buffer queue has data, if so, skips to S22, if not, skip to S21;
S22: print or export described data.
5. the scan method of three-dimensional near-field vector according to claim 3, is characterized in that, in step S02, uses the method for cubic spline interpolation, scanning curve or sweep limit are changed into respective scanned dot information.
6. the scan method of three-dimensional near-field vector according to claim 3, is characterized in that, in step S05, described motor is servomotor, has feedback mechanism, constantly detects the position of servomotor in moving.
7. a scanister for three-dimensional near-field vector, is characterized in that, described device comprises:
Main thread operational module, for obtaining scanning information, drive motor, to target location, triggers the first thread module work;
First thread operational module, for performing Data Collection, with the concurrent working of described main thread operational module;
Wherein, described main thread operational module comprises:
Data input cell, for obtaining scanning curve or the sweep limit of user's input;
Date Conversion Unit, for changing into respective scanned dot information by scanning curve or sweep limit, and stored in analyzing spot queue; Described analyzing spot information comprises analyzing spot coordinate information and whether completes the mark of this spot scan;
Data determining unit, for judging whether analyzing spot queue is empty, and if so, EOP (end of program), if not, enters data extracting unit;
Data extracting unit, for reading the analyzing spot of the head pointer indication in analyzing spot queue;
Drive motor units, moves to the position of the analyzing spot of head pointer indication described in analyzing spot queue for drive motor, after often completing an analyzing spot, be set to by described mark, entered data determining unit.
CN201110111655.2A 2011-04-30 2011-04-30 A kind of scan method of three-dimensional near-field vector and device Active CN102768237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110111655.2A CN102768237B (en) 2011-04-30 2011-04-30 A kind of scan method of three-dimensional near-field vector and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110111655.2A CN102768237B (en) 2011-04-30 2011-04-30 A kind of scan method of three-dimensional near-field vector and device

Publications (2)

Publication Number Publication Date
CN102768237A CN102768237A (en) 2012-11-07
CN102768237B true CN102768237B (en) 2016-04-06

Family

ID=47095710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110111655.2A Active CN102768237B (en) 2011-04-30 2011-04-30 A kind of scan method of three-dimensional near-field vector and device

Country Status (1)

Country Link
CN (1) CN102768237B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395912B (en) * 2017-07-12 2020-08-18 深圳怡化电脑股份有限公司 Image scanning synchronization method, image scanning synchronization device, ATM and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1372644A (en) * 2000-04-28 2002-10-02 株式会社爱德万测试 Field distribution measuring mehtod and device
CN101026670A (en) * 2006-02-17 2007-08-29 明基电通股份有限公司 Pre-scanning device and method thereof
CN101815155A (en) * 2009-02-25 2010-08-25 山东新北洋信息技术股份有限公司 Scanning method and scanning control device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7511485B2 (en) * 2006-01-31 2009-03-31 Hitachi, Ltd. Magnetic field measurement method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1372644A (en) * 2000-04-28 2002-10-02 株式会社爱德万测试 Field distribution measuring mehtod and device
CN101026670A (en) * 2006-02-17 2007-08-29 明基电通股份有限公司 Pre-scanning device and method thereof
CN101815155A (en) * 2009-02-25 2010-08-25 山东新北洋信息技术股份有限公司 Scanning method and scanning control device

Also Published As

Publication number Publication date
CN102768237A (en) 2012-11-07

Similar Documents

Publication Publication Date Title
CN102735861B (en) A kind of sample rack method for supervising and device, a kind of body fluid work station
CN101539572B (en) Up-conversion phosphorescence biological detector and detection method for sample test strip
CN105157810B (en) A kind of full-automatic sound velocimeter and its measurement method
CN102680800A (en) Three-dimensional scanning system for magnetic fields
CN103234851A (en) Digitization resiliometer verification apparatus and verification method
CN108152377A (en) Auto-ultrasonic mold non-destructive detecting device and control system and detection control method
CN104181467B (en) Portable linear motor multi-axis linkage measuring and controlling system
CN103018059B (en) Equipment and method for detecting pressure and pressure sensitivity property of electromagnetic pen
CN102455684B (en) Dynamic characteristic on-line tester of feeding system of numerical control machine
CN102768237B (en) A kind of scan method of three-dimensional near-field vector and device
CN102539043A (en) Method and system for carrying out comprehensive analysis on working conditions of oil pumping unit
CN109883329A (en) A kind of detection system and method for prefabricated components outer dimension
CN109343374B (en) LabVIEW-based pulse synchronization control two-dimensional scanning and signal acquisition method
CN201819839U (en) Non-contact type extensometer
CN204789606U (en) Autoinjection device of immunodetection analytical instrument
CN201166625Y (en) Apparatus for scanning and measuring solid material deflection
CN202661819U (en) Atomic force microscope control system based on digital signal processor (DSP) and field programmable gate array (FPGA)
CN103759694A (en) Thread detection device
CN100534384C (en) Magnetocardiogram signals collecting processing method based on digital signal processing and device thereof
CN102880194A (en) Motion controlling system and method for multiple channel pipetting plates
CN206609832U (en) The accurate positioning of defect in a kind of metallic object
CN102152171A (en) Device for detecting stroke of machine tool
CN102288140B (en) Method and device for detecting location precision of motion control card
CN209425291U (en) Sensor locator
CN102096792A (en) RFID (Radio Frequency Identification) based method for constructing supply chain path

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