CN111737778B - Optical network drawing method of infrared touch frame - Google Patents
Optical network drawing method of infrared touch frame Download PDFInfo
- Publication number
- CN111737778B CN111737778B CN202010504306.6A CN202010504306A CN111737778B CN 111737778 B CN111737778 B CN 111737778B CN 202010504306 A CN202010504306 A CN 202010504306A CN 111737778 B CN111737778 B CN 111737778B
- Authority
- CN
- China
- Prior art keywords
- lamp
- optical network
- receiving
- module
- transmitting
- 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
- 230000003287 optical effect Effects 0.000 title claims abstract description 37
- 238000000034 method Methods 0.000 title claims abstract description 12
- 238000011161 development Methods 0.000 claims description 8
- 238000013461 design Methods 0.000 claims description 7
- 238000004904 shortening Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 230000007547 defect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000012938 design process Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/206—Drawing of charts or graphs
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Geometry (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Computational Mathematics (AREA)
- Position Input By Displaying (AREA)
- Optical Communication System (AREA)
Abstract
The invention relates to an optical network drawing method of an infrared touch frame, which can obtain an accurate optical network CAD drawing in a few minutes through inputting coordinates and parameter selection, thereby greatly shortening the drawing time and improving the drawing accuracy; compared with the prior art, the invention adopts the tool combination of VBA+excel+AutoCAD, and the drawing is performed through codes, thereby replacing manpower, being different from the prior artificial drawing, and increasing the drawing speed and accuracy.
Description
Technical Field
The invention relates to the technical field of infrared touch frame devices, in particular to an optical network drawing method of an infrared touch frame.
Background
The infrared touch frame is used for detecting the position of a touch point by blocking light rays between a sending lamp and a receiving lamp or not, a dense optical network is formed by combining the light rays, the optical network is required to be drawn for evaluating the rationality of design, the current implementation principle of the infrared touch frame mainly comprises that the sending lamp sends a plurality of light rays to the receiving lamp, when the light rays are blocked by a touch object, the light rays are blocked, a touch area is formed between the blocked light rays, the area of a suspected contact point is determined by two directions, the suspected area is checked by using the light rays in other directions, and the accurate positioning of the false point and the true point is removed.
The optical network is generally drawn by drawing software such as AutoCAD, and the like, and thousands or even tens of thousands of rays exist in the composition of one optical network, so that a mouse and a keyboard need to be clicked for tens of thousands of times when the drawing software is used for manual drawing. As a first step in the development of infrared touch products, optical network design often needs to be pushed over in the design process, and needs a lot of time and effort to design and evaluate each time, so that the development period is seriously affected, a lot of time and effort are consumed, and errors are easily generated in the process.
The invention aims to solve the problems of high drawing difficulty and easy error caused by a large number of light rays, and provides a quick and accurate drawing method.
Disclosure of Invention
The invention aims to provide an optical network drawing method of an infrared touch frame to solve the defects in the prior art.
The technical scheme for solving the technical problems is as follows:
An optical network drawing method of an infrared touch frame comprises the following steps:
s1: a parameter input module, a receiving and transmitting mode selection module, a CAD drawing line instruction generation module, a lamp tube serial number instruction generation module and a lamp tube receiving and transmitting index generation module are manufactured in an Excel table through a VBA programming language;
The parameter input module comprises the following parameters:
1) The length and width of the input infrared touch frame and the shrinking distance of the lamp tube;
2) The input transmitting lamp and receiving lamp coordinates;
the transceiver mode selection module includes the following parameters:
1) The number of light rays emitted continuously;
2) The number of spaced rays;
3) The amount of light emitted by the edge;
generating a connecting line according to the input parameters, generating a lamp number according to the coordinate number of the transmitting lamp and the receiving lamp, reporting errors when the lamp number is equal to 0, and calling a lamp sequence number instruction generating module, a CAD drawing instruction generating module and a lamp receiving and transmitting index generating module to respectively generate a sequence number instruction, a drawing instruction and a receiving and transmitting index for standby when the lamp number is greater than 0;
s2: according to the drawing instruction generated by the CAD drawing instruction generating module, the AutoCad automatically draws to generate an optical network;
S3: evaluating the generated optical network, detecting whether the parameters such as the minimum hole and the like in the optical network accord with the design, and repeating the step S1 if the parameters do not accord with the requirements; if the result is qualified, the next step is carried out;
s4: after the optical network is qualified, the generated receiving and transmitting cable is sent to an algorithm engineer for next development;
The beneficial effects of the invention are as follows: by inputting coordinates and selecting parameters, an accurate optical network CAD drawing can be obtained within a few minutes, the drawing time is greatly shortened, and the drawing accuracy is improved; compared with the prior art, the invention adopts the tool combination of VBA+excel+AutoCAD, and the drawing is performed through codes, thereby replacing manpower, being different from the prior artificial drawing, and increasing the drawing speed and accuracy.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a partial optical network;
fig. 3 is an overall optical network;
FIG. 4 is a schematic diagram illustrating hole detection in an optical network;
FIG. 5 is an input schematic diagram of a parameter input module;
FIG. 6 is a schematic diagram of an input of a transceiver mode module;
Detailed Description
The principles and features of the present invention are described below with reference to the drawings, the examples are illustrated for the purpose of illustrating the invention and are not to be construed as limiting the scope of the invention.
As shown in fig. 1, an optical network drawing method of an infrared touch frame includes the following steps:
s1: a parameter input module, a receiving and transmitting mode selection module, a CAD drawing line instruction generation module, a lamp tube serial number instruction generation module and a lamp tube receiving and transmitting index generation module are manufactured in an Excel table through a VBA programming language;
The parameter input module comprises the following parameters:
1) The length and width of the input infrared touch frame and the shrinking distance of the lamp tube;
2) The input transmitting lamp and receiving lamp coordinates;
FIG. 5 is a schematic diagram of input of the parameter input module according to one embodiment, wherein the following table is a record table of generated parameter inputs:
the transceiver mode selection module includes the following parameters:
1) The number of light rays emitted continuously;
2) The number of spaced rays;
3) The amount of light emitted by the edge;
Fig. 6 is an input schematic diagram of a transceiver mode module in one embodiment:
generating a connecting line according to the input parameters, generating a lamp number according to the coordinate number of the transmitting lamp and the receiving lamp, reporting errors when the lamp number is equal to 0, and calling a lamp sequence number instruction generating module, a CAD drawing instruction generating module and a lamp receiving and transmitting index generating module to respectively generate a sequence number instruction, a drawing instruction and a receiving and transmitting index for standby when the lamp number is greater than 0;
s2: according to the drawing instruction generated by the CAD drawing instruction generating module, the AutoCad automatically draws to generate an optical network;
S3: evaluating the generated optical network, detecting whether the parameters such as the minimum hole and the like in the optical network accord with the design, and repeating the step S1 if the parameters do not accord with the requirements; if the result is qualified, the next step is carried out;
s4: after the optical network is qualified, the generated receiving and transmitting cable is sent to an algorithm engineer for next development;
The key of the invention is an optical network drawing method and tool in the field of infrared touch frames, and the optical network drawing tool is manufactured by combining Excel vba and AutoCAD. The design of the optical network has important position in the field, and the quality of the optical network directly influences the subsequent development work.
The following table shows the generated lamp serial number instruction and CAD drawing instruction in one embodiment:
Fig. 4 is a schematic diagram of evaluating an optical network hole in a specific embodiment, which changes the conventional method of manually using various drawing software to draw a lamp tube according to coordinates, and then connecting the lamp tube, so that a great amount of time and effort are required to be consumed, human errors are easy to occur, and defects of connecting the wrong line can be overcome, an optical network can be quickly generated, the optical network can be detected and evaluated, the development time is greatly shortened, and the production efficiency is effectively improved.
In a specific implementation, after the optical network is detected to be qualified, the transceiving index can be exported to an algorithm engineer for a next development process, where the following table shows a record table of the transceiving index in a specific embodiment:
the foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.
Claims (1)
1. The optical network drawing method of the infrared touch frame is characterized by comprising the following steps of:
s1: a parameter input module, a receiving and transmitting mode selection module, a CAD drawing line instruction generation module, a lamp tube serial number instruction generation module and a lamp tube receiving and transmitting index generation module are manufactured in an Excel table through a VBA programming language;
The parameter input module comprises the following parameters:
1) The length and width of the input infrared touch frame and the shrinking distance of the lamp tube;
2) The input transmitting lamp and receiving lamp coordinates;
the transceiver mode selection module includes the following parameters:
1) The number of light rays emitted continuously;
2) The number of spaced rays;
3) The amount of light emitted by the edge;
Generating a connecting line according to the input parameters, generating a lamp number according to the coordinate number of the transmitting lamp and the receiving lamp, re-executing the step S1 if the lamp number is equal to 0, and calling a lamp sequence number instruction generating module, a CAD drawing line instruction generating module and a lamp receiving and transmitting index generating module to respectively generate a sequence number instruction, a drawing instruction and a receiving and transmitting index for standby if the lamp number is greater than 0;
s2: according to the drawing instruction generated by the CAD drawing instruction generating module, the AutoCad automatically draws to generate an optical network;
S3: evaluating the generated optical network, detecting whether the minimum hole parameter accords with the design or not, and repeating the step S1 if the minimum hole parameter does not accord with the requirement; if the result is qualified, the next step is carried out;
s4: and after the optical network is qualified, the generated receiving and transmitting cable is sent to an algorithm engineer for further development.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010504306.6A CN111737778B (en) | 2020-06-04 | 2020-06-04 | Optical network drawing method of infrared touch frame |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010504306.6A CN111737778B (en) | 2020-06-04 | 2020-06-04 | Optical network drawing method of infrared touch frame |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111737778A CN111737778A (en) | 2020-10-02 |
CN111737778B true CN111737778B (en) | 2024-04-30 |
Family
ID=72649999
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010504306.6A Active CN111737778B (en) | 2020-06-04 | 2020-06-04 | Optical network drawing method of infrared touch frame |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111737778B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004126286A (en) * | 2002-10-03 | 2004-04-22 | Sogo System Service:Kk | Plotting processor, plotting processing method and plotting processing program |
CN103678743A (en) * | 2012-09-17 | 2014-03-26 | 南车青岛四方机车车辆股份有限公司 | Subway limit drawing method |
CN107945246A (en) * | 2017-11-07 | 2018-04-20 | 中船黄埔文冲船舶有限公司 | Method, apparatus, terminal device and the storage medium of Parametric Drawing |
CN110030972A (en) * | 2019-04-24 | 2019-07-19 | 中铁八局集团第三工程有限公司 | Tunnel Overbreak & Underbreak detection method based on ExcelVBA |
-
2020
- 2020-06-04 CN CN202010504306.6A patent/CN111737778B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004126286A (en) * | 2002-10-03 | 2004-04-22 | Sogo System Service:Kk | Plotting processor, plotting processing method and plotting processing program |
CN103678743A (en) * | 2012-09-17 | 2014-03-26 | 南车青岛四方机车车辆股份有限公司 | Subway limit drawing method |
CN107945246A (en) * | 2017-11-07 | 2018-04-20 | 中船黄埔文冲船舶有限公司 | Method, apparatus, terminal device and the storage medium of Parametric Drawing |
CN110030972A (en) * | 2019-04-24 | 2019-07-19 | 中铁八局集团第三工程有限公司 | Tunnel Overbreak & Underbreak detection method based on ExcelVBA |
Non-Patent Citations (1)
Title |
---|
基于Excel VBA与CAD VBA联合编程技术实现快速编制绘图程序;李祥 李遥玉;《企业技术开发》;第34卷(第10期);36-38 * |
Also Published As
Publication number | Publication date |
---|---|
CN111737778A (en) | 2020-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105184394B (en) | Optimal control method based on CPS online data mining of power distribution network | |
CN106294478A (en) | The data processing method of data warehouse and device | |
CN108920140B (en) | Front-end and back-end unified verification method | |
CN109948002A (en) | The nearest wall surface of unstrctured grid based on balance KD tree is apart from method for solving | |
CN105930257A (en) | Method and apparatus for determining target test cases | |
CN111737778B (en) | Optical network drawing method of infrared touch frame | |
CN113836698A (en) | Hydraulic and hydroelectric engineering cable rapid laying design method based on 3DE secondary development | |
CN110686594B (en) | Workpiece size detection method and system | |
CN109299563A (en) | A kind of boiler steel structure space detection method based on NX Three-dimensional Design Software | |
CN106569643B (en) | Method and device for positioning touch point of infrared touch screen | |
CN103631454A (en) | Simulation method and system of infrared touch screen | |
CN105654106A (en) | Decision tree generation method and system thereof | |
CN113743806B (en) | Searching method for non-convex double-target optimal power flow global solution of power system | |
CN111553087B (en) | Measuring field optimization method based on three-dimensional real-time perception | |
CN109522595A (en) | A kind of functional diagram importing automatic diagnosis method based on nuclear power plant's verification platform | |
Paglioni et al. | Defining dependency in HRA | |
CN111352065B (en) | High-precision quick positioning method based on TOA mode in non-line-of-sight environment | |
CN105393197A (en) | Sparse-lamp infrared multi-point touchscreen and implementation method therefor | |
CN104731705A (en) | Dirty data propagation path finding method based on complex network | |
CN113946926A (en) | System and implementation method for analyzing breakage influence of S3D high-energy pipeline | |
Dong et al. | An approach to fully recognizing addressable expression | |
CN113157551A (en) | ROS-oriented differential fuzzy test method | |
CN105786686A (en) | Boundary value testing method and device | |
CN103886083A (en) | Data processing method and system for transient state test of nuclear power unit | |
CN114676522B (en) | Pneumatic shape optimization design method, system and equipment integrating GAN and migration learning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |