CN107148106A - A kind of long-range control method of the digital light based on labview - Google Patents
A kind of long-range control method of the digital light based on labview Download PDFInfo
- Publication number
- CN107148106A CN107148106A CN201710278068.XA CN201710278068A CN107148106A CN 107148106 A CN107148106 A CN 107148106A CN 201710278068 A CN201710278068 A CN 201710278068A CN 107148106 A CN107148106 A CN 107148106A
- Authority
- CN
- China
- Prior art keywords
- light source
- light
- labview
- source controller
- control
- 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
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/10—Controlling the intensity of the light
Abstract
The present invention relates to a kind of long-range control method of the digital light based on labview, including:Light source is selected, because being able to ensure that the clear light source of shooting according to the different choice of industrial environment.Lighting system is selected, according to the characteristic of detected target object, selects suitable lighting system to need the feature of process part to protrude.Light source controller is configured.Electric energy needed for being provided indirectly to light source by using light source controller, meanwhile, make its working condition controllable.The serial communication protocol of light source controller is checked, is to carry out communication with light source controller to prepare, so as to reach remote control light source controller.Labview programmings are carried out according to selected light source and light source controller related protocol, the control for digital light is realized.
Description
Technical field
The present invention relates to a kind of method of remote control digital light, belong to remote control field.
Background technology
In recent ten years with the development of China's industry-by-industry, the vision technique such as machine vision, computer vision is automatic
Change field is increasingly taken seriously, and also achieves the development of great-leap-forward, and whether vision technique can have flaw for detection product,
This technology is higher than former hand inspection precision, reduces personnel's spending, improves the degree of whole factory automation, reduction life
Produce cost, Improving The Quality of Products.Highly important link is exactly additional light filling in vision technique, without suitable light
Words, camera or camera cannot get ideal image, and algorithm and judgement that can be to after be impacted, and then influence whole system
The performance of system.Needed based on this, a kind of digital light remote control technology based on labview is proposed here, it can root
Concrete application and natural lighting according to system, to select suitable light source and polishing mode so that camera or camera
Obtain relatively good image.
The content of the invention
It is an object of the invention to provide a kind of long-range control method of digital light, can according to live lighting condition and
The requirement of whole detecting system carries out light filling so that vision system front end can obtain preferable image, so that preferably complete
Into ensuing visual tasks, this invention utilizes labview combination LED digital light controllers, realize it is with an automatic light meter with it is online
Control the function of light source.Technical scheme is as follows:
A kind of long-range control method of the digital light based on labview, comprises the following steps:
(1) light source is selected, because being able to ensure that the clear light source of shooting according to the different choice of industrial environment.
(2) lighting system is selected, according to the characteristic of detected target object, selects suitable lighting system to be needed to protrude
Want the feature of process part.
(3) light source controller has been configured.Electric energy needed for being provided indirectly to light source by using light source controller, meanwhile,
Make its working condition controllable.
(4) serial communication protocol of light source controller is checked, is to carry out communication with light source controller to prepare, so as to reach
Remote control light source controller.
(5) labview programmings are carried out according to selected light source and light source controller related protocol, realized for digital light
Control.
(6) labview is packaged, opens labview, set serial ports, baud rate, parity check bit and operation
Mode, operation program just can realize with an automatic light meter and manual control light-source brightness;Digital light based on labview is used
Two kinds of control models, one kind is that normal bright pattern one kind is coding mode, under normal bright pattern, is adjusted according to the change of environment light source
Brightness degree is saved, light source is taken pictures camera and carries out suitable light filling;Under coding mode:Illumination change over time and
Change the adjustment brightness degree, it is necessary to regular, light-source brightness is gathered in real time, labview can receive data, control digital light
Controller adjusts light-source brightness so that NI Vision Builder for Automated Inspection obtains optimal shooting effect.
In order to improve the service life of light source, we can use triggering pattern, if but triggering pattern grasps bad
The time of setting, the work of camera and light source can be caused to mismatch, cause the working effect obtained by system poor.Triggering pattern
When, when target object is by optoelectronic switch, optoelectronic switch exports a rising edge trigger signal to camera, in the camera
Set delay time, camera is according to the time triggered light source controller of setting, when exhausting the time of setting, LED/light source and
Camera is worked simultaneously, and the pattern is played a part of being as good as with normal bright pattern, but can play a part of protecting light source.
Brief description of the drawings
Digital light remote control front panel of Fig. 1 present invention based on labview
The normal bright pattern of digital light of Fig. 2 present invention based on labview
Digital light coding mode of Fig. 3 present invention based on labview
Embodiment
The present invention is further detailed elaboration with instantiation below in conjunction with the accompanying drawings.
It is the digital light remote control labview front panels of the invention based on labview referring to Fig. 1:Global procedures are set
Meter is carried out using software labview, it can be seen that the program man-machine interface write using labview is succinct, the program of diagram form
It is easily understood.When writing program, to note the communications protocol of digital light controller to be observed the moment, can so ensure with
The communication of digital light controller is good., it is necessary to " resource name " " baud rate " " odd even of the inside before operation program is clicked on
Three ports of check bit " are configured, and remaining parameter can be arranged to system default value in default situations.Serial ports, i.e.,
Communication port in program, the serial port resource quantity that general hardware device is supported is four, when in use, specifically with which
Individual serial ports is not known, it is therefore desirable to all included, in a program, we are provided with five serial ports, will using sentence is judged
Different serial ports are connected with logical value, correspond, acquiescence for COM1.Baud rate, ripple carries the change of parameter in the unit interval,
The baud rate of each usual hardware is different, but when in use, the baud rate of equipment is certain, and specific baud rate is basis
Digital light controller used and select.The problem of having also related to verification in program, check bit has three kinds:Odd, idol
Verification, no parity check.In light source control proces, using closely, by the communication of Serial Port Line, the interference being subject to is few, no
The control information between host computer and controller can be influenceed to transmit, therefore even-odd check need not be carried out, no parity check is defaulted as.
When in view of actual use, operating personnel change corresponding parameter by touch-screen, and serial ports parameter is matched somebody with somebody
Only need to be configured on startup when putting, we are not intended to because the imprudence of operating personnel touches three input controls above
It is abnormal that part causes program to occur, so needing to be limited, the method that we use is when setting three serial ports parameters, only
When opening serial ports button and press, serial ports parameter can become to forbid write state, and serial ports button is closed until pressing.
Referring to Fig. 2, Fig. 3, this two flow charts are respectively the both of which of the digital light of the invention based on labview,
Both patterns can be switched over as needed., it is necessary to adjust brightness according to the change of environment light source under normal bright pattern
Grade, enables light source to take pictures camera and carries out suitable light filling.Under production environment, at night, the illumination of factory building is main by shining
Bright lamp is produced, more stable, substantially only needs to once dim;On daytime, the illumination of factory building is essentially from sunshine, over time
Change and change, at this moment, it is necessary to regular adjustment brightness degree, sensor can gather light-source brightness in real time, labview
Data, control digital light controller regulation light-source brightness so that NI Vision Builder for Automated Inspection can obtain optimal shooting can be received
Effect.
In order to improve the service life of light source, we can use triggering pattern, if but triggering pattern grasps bad
The time of setting, the work of camera and light source can be caused to mismatch, cause the working effect obtained by system poor.Triggering pattern
When, when target object is by optoelectronic switch, optoelectronic switch exports a rising edge trigger signal to camera, in the camera
Set delay time, camera is according to the time triggered light source controller of setting, when exhausting the time of setting, LED/light source and
Camera is worked simultaneously, and the pattern is played a part of being as good as with normal bright pattern, but can play a part of protecting light source.
Claims (1)
1. a kind of long-range control method of the digital light based on labview, comprises the following steps:
(1) light source is selected, because being able to ensure that the clear light source of shooting according to the different choice of industrial environment;
(2) lighting system is selected, according to the characteristic of detected target object, selects suitable lighting system to need place to protrude
Manage the feature of part;
(3) light source controller has been configured;Electric energy needed for being provided indirectly to light source by using light source controller, meanwhile, make it
Working condition it is controllable;
(4) serial communication protocol of light source controller is checked, is to carry out communication with light source controller to prepare, so as to reach long-range
Control light source controller;
(5) labview programmings are carried out according to selected light source and light source controller related protocol, realizes the control for digital light
System;
(6) labview is packaged, opens labview, set serial ports, baud rate, parity check bit and operation side
Formula, operation program just can realize with an automatic light meter and manual control light-source brightness;Digital light based on labview uses two
Control model is planted, one kind is that normal bright pattern one kind is coding mode, under normal bright pattern, is adjusted according to the change of environment light source
Brightness degree, enables light source to take pictures camera and carries out suitable light filling;Under coding mode:Illumination change over time and become
Change the adjustment brightness degree, it is necessary to regular, light-source brightness is gathered in real time, labview can receive data, control digital light control
Device processed adjusts light-source brightness so that NI Vision Builder for Automated Inspection obtains optimal shooting effect.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710278068.XA CN107148106A (en) | 2017-04-25 | 2017-04-25 | A kind of long-range control method of the digital light based on labview |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710278068.XA CN107148106A (en) | 2017-04-25 | 2017-04-25 | A kind of long-range control method of the digital light based on labview |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107148106A true CN107148106A (en) | 2017-09-08 |
Family
ID=59775245
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710278068.XA Pending CN107148106A (en) | 2017-04-25 | 2017-04-25 | A kind of long-range control method of the digital light based on labview |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107148106A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102802320A (en) * | 2012-08-31 | 2012-11-28 | 哈尔滨工业大学 | Digital LED (Light-Emitting Diode) light source controller facing machine vision |
CN202634848U (en) * | 2012-07-02 | 2012-12-26 | 陕西科技大学 | Light emitting diode (LED) intelligent lighting control system based on ZigBee and LabVIEW |
CN204669681U (en) * | 2015-06-05 | 2015-09-23 | 芜湖徽福电子科技有限公司 | With the machine vision light source controller that brightness detects |
CN105848385A (en) * | 2016-04-18 | 2016-08-10 | 珠海市广浩捷精密机械有限公司 | Light source system and method thereof |
-
2017
- 2017-04-25 CN CN201710278068.XA patent/CN107148106A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202634848U (en) * | 2012-07-02 | 2012-12-26 | 陕西科技大学 | Light emitting diode (LED) intelligent lighting control system based on ZigBee and LabVIEW |
CN102802320A (en) * | 2012-08-31 | 2012-11-28 | 哈尔滨工业大学 | Digital LED (Light-Emitting Diode) light source controller facing machine vision |
CN204669681U (en) * | 2015-06-05 | 2015-09-23 | 芜湖徽福电子科技有限公司 | With the machine vision light source controller that brightness detects |
CN105848385A (en) * | 2016-04-18 | 2016-08-10 | 珠海市广浩捷精密机械有限公司 | Light source system and method thereof |
Non-Patent Citations (3)
Title |
---|
贺敏: "分布式LED数字光源控制器的研究与应用", 《中国优秀硕士学位论文全文数据库》 * |
赖伊琦,刘益民,陈锦儒: "机器视觉系统中的光源控制器的设计与研究", 《电脑知识与技术》 * |
黄诗阳: "LED晶粒AOI目检机光源控制器开发", 《中国优秀硕士学位论文全文数据库》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102768816B (en) | LED display automated correction method | |
CA2579196A1 (en) | Lighting zone control methods and apparatus | |
CN106304538B (en) | The control method of lighting controller and luminaire | |
CN104659460A (en) | Automatic tuning method and system for cavity filter | |
CN106426229A (en) | Virtual reality monitoring control system for line patrol robot and control method | |
CN105702201A (en) | White balance control system and method for LED display screen | |
CN110035588A (en) | A kind of programmable lamp system and lamp imitate output method, vehicle | |
CN100562134C (en) | A kind of test macro of digital display device and method of testing thereof | |
CN104914581B (en) | A kind of video glass for facilitating control | |
CN106131334A (en) | Control the method and device of mobile terminal screen state | |
CN101336024A (en) | Centralized control type light modulating apparatus for scene lighting | |
CN104010079A (en) | Method for lighting screen of mobile phone | |
CN201993902U (en) | Light-emitting diode (LED) display screen wireless remote control debugging system | |
CN104871644B (en) | System and method for selecting participants of a lighting system | |
CN112731734A (en) | Remote color correction processing equipment and color correction system of external flash lamp | |
CN107300378A (en) | A kind of personal identification method for positioning object, device and system | |
CN107148106A (en) | A kind of long-range control method of the digital light based on labview | |
CN104252826A (en) | LED (Light Emitting Diode) display screen brightness monitoring method and device and LED display controller | |
CN105873336A (en) | Lamp light control method for carrying out control according to touch and pressing force | |
CN103279265A (en) | Terminal and system for displaying network information interface and interface generating method | |
CN101650908B (en) | Benchmark brightness obtaining method, point-to-point correction system and correction method | |
CN103970126B (en) | For the ground detection of engine electronic control | |
CN201247577Y (en) | Device for adjusting display parameter of LED display screen | |
TW200511003A (en) | Real time monitoring device for host and the monitoring method therefor | |
CN112058706A (en) | Power-on self-inspection system for DMX lamp |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170908 |
|
WD01 | Invention patent application deemed withdrawn after publication |