CN102325409A - Machine vision light source system and control method thereof - Google Patents

Machine vision light source system and control method thereof Download PDF

Info

Publication number
CN102325409A
CN102325409A CN201110251472A CN201110251472A CN102325409A CN 102325409 A CN102325409 A CN 102325409A CN 201110251472 A CN201110251472 A CN 201110251472A CN 201110251472 A CN201110251472 A CN 201110251472A CN 102325409 A CN102325409 A CN 102325409A
Authority
CN
China
Prior art keywords
light source
data
host computer
slave computer
machine vision
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.)
Granted
Application number
CN201110251472A
Other languages
Chinese (zh)
Other versions
CN102325409B (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.)
CHENGDU SIXING HYDRAULIC EQUIPMENT MANUFACTURE Co Ltd
Sichuan University
Original Assignee
CHENGDU SIXING HYDRAULIC EQUIPMENT MANUFACTURE Co Ltd
Sichuan University
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 CHENGDU SIXING HYDRAULIC EQUIPMENT MANUFACTURE Co Ltd, Sichuan University filed Critical CHENGDU SIXING HYDRAULIC EQUIPMENT MANUFACTURE Co Ltd
Priority to CN2011102514720A priority Critical patent/CN102325409B/en
Publication of CN102325409A publication Critical patent/CN102325409A/en
Application granted granted Critical
Publication of CN102325409B publication Critical patent/CN102325409B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention discloses a machine vision light source system which comprises a lower computer, a host computer and a plurality of sets of illumination units. The lower computer comprises a one-chip microcomputer and serial driving chips. The one-chip microcomputer connects with the host computer through a serial port interface. Each set of the illumination units connects with a corresponding serial driving chip. The serial driving chips are in mutual serial connection, wherein one serial driving chip connects with the one-chip microcomputer. Each set of the illumination units is formed by a plurality of mutually independent light sources. According to the invention, an LED lightening state of a corresponding light source is manually set through an operation interface of the host computer, pixel level control of a light source plate is realized, a database parameter can be read, a work state of an LED on the light source plate can be set automatically, the lower computer communicates with the host computer and resolves data downloaded by the host computer into a corresponding LED work state on the light source plate, simultaneously reading a light source plate state through controlling a self flash memory is realized, and LEDs on a corresponding light source plate are set.

Description

A kind of machine vision light-source system and control method thereof
Technical field
The present invention relates to machine vision and use light source field, particularly a kind of machine vision light-source system and control method thereof.
Background technology
In the NI Vision Builder for Automated Inspection, comprise the light source of many types, comprising: area source, point-source of light, ball integration light source, strip source or the like.The denominator of these light sources be stablize, the life-span is long etc., but a shortcoming is arranged also: can only light all LED (as far as led light source) simultaneously.And, requiring that specific LED lights on the light source board in some application scenario, other LED does not then work.At present similar is to be used in the dynamic refresh method of LED advertisement screen, but the dynamic refresh method of this LED advertisement screen can not be applied in the NI Vision Builder for Automated Inspection because stroboscopic is arranged.
Summary of the invention
Goal of the invention of the present invention is, to the problem of above-mentioned existence, a kind of control method that is used for the light-source system of machine vision and realizes this system is provided.Light source described in the present invention has the function of specifying specific light source to light, and can realize the visual control of host computer to light source, thereby reaches proposing special radiation direction in the Machine Vision Detection system, and what light intensity etc. required satisfies.
Technical scheme of the present invention is achieved in that a kind of machine vision light-source system; It is characterized in that: comprise slave computer, host computer and some groups of lighting units; Said slave computer comprises single-chip microcomputer and driven in series chip; Said single-chip microcomputer is connected with host computer through serial interface, and said every group of lighting unit connects with corresponding driven in series chip, and said driven in series chip is connected each other; One of them driven in series chip is connected with said single-chip microcomputer, and said every group of lighting unit is made up of the light source of several independent.
Machine vision light-source system of the present invention, its said slave computer also comprises the flash data unit that is connected with single-chip microcomputer.
Machine vision light-source system of the present invention, its said slave computer also comprises the power supply unit that is connected with single-chip microcomputer.
Machine vision light-source system of the present invention, its said slave computer also comprises electrify restoration circuit and the manual reset circuit that is connected with single-chip microcomputer respectively.
A kind of control method of machine vision light-source system is characterized in that: may further comprise the steps:
1), the single-chip microcomputer of slave computer visit flash memory, read flash data, send to the driven in series chip, the set light source is lighted the light source that the flash data unit is set, and opens serial ports then and interrupts, and waits for the host computer down-transmitting data;
2), host computer down-transmitting data and produce to interrupt, the slave computer response is interrupted, and reads and interrupts data in the buffer memory, resolved data also converts light source control signal into, realizes the light source works state that host computer sets.
The control method of machine vision light-source system of the present invention, it is in said step 2) in, the data that host computer passes are down accomplished through following steps:
A), host computer brings into operation, at first initializing variable detects com-state then automatically; If serial ports is in proper working order, then send handshake, if the handshake of slave computer normal response host computer to slave computer; Then in the interface display successful connection, and wait for user's operation;
B), in user's operation; After the user sets parameters, click control is set, system produces response; Whether system's judges has selected directly to read in the light source setup parameter of storing in the database; If the user has selected to read in parameter in the database, light source works state in the then direct accessing database, and carry out corresponding data router;
C), if the user does not select to read in database data, then the light source works state that the user representes through the check box on the page is read in system, and carries out corresponding data router;
In step b) and step c), the corresponding data router of said execution is: convert the corresponding light source operating state to binary data, convert hexadecimal data then to; After obtaining the light source works state of hexadecimal representation; Send data to slave computer,, then deposit data in database if send successfully; Call in order to next user, and return main interface.
The control method of machine vision light-source system of the present invention, it is in said step c), and the user can operate the corresponding check box of light source; With light source igniting or turn off, the user also can use the mode of row choosing one by one, and a row light source is all lighted or turned off; Behind the check box that has been provided with on the interface; Click light source control is set,, light source is set to slave computer transmission data.
The control method of machine vision light-source system of the present invention, it is in said step 2) in, after interrupting taking place; Slave computer responds, and sends handshake to host computer, if do not receive handshake; Number of times is sent in inquiry, if number of times less than 3 times, then sends handshake once more; If send number of times greater than 3 times, judge that then mistake appears in host computer, get into again and wait for interrupt status; If receive handshake, then read and interrupt data in the buffer memory.
The control method of machine vision light-source system of the present invention, it when detecting com-state, if serial ports can not be opened, then ejects warning in said step a), and the terminator operation; If the serial ports operate as normal is then sent handshake to slave computer, if do not receive handshake, then judge and send number of times, if number of times less than 3, then resends,, and get into display interface if number of times greater than 3 times, then points out user's slave computer to be not ready for.
The control method of machine vision light-source system of the present invention, it is in said step b) and step c), after obtaining the light source works state of hexadecimal representation; Send data to slave computer, get nowhere if send, then number of times is sent in inspection; If number of times less than 3 times, then sends once more, if more than or equal to 3 times; Then stop to send, and point out corresponding mistake, and return main interface.
The present invention can manually be provided with the LED illuminating state of respective sources through on the operation interface of host computer, realizes the Pixel-level control to light source board; And can read in database parameter; The operating state of light source onboard led is set automatically, and slave computer and host computer carry out communication, and the data solver that host computer is passed down becomes LED operating state corresponding on the light source board; Also can realize simultaneously reading in the light source board state from controlling self flash memory of being with, and the LED on the set corresponding light source plate.
Description of drawings
Fig. 1 is the connection sketch map of light-source system of the present invention.
Fig. 2 is a slave computer main program flow chart of the present invention.
Fig. 3 is the interrupt routine flow chart.
Fig. 4 is the host computer main program flow chart.
Fig. 5 is a host computer response user operation sequence flow chart.
Fig. 6 is the host computer procedure user interface map.
Mark among the figure: 1 is lighting unit, and 2 is check box, and 3 are the row choosing.
Embodiment
Below in conjunction with accompanying drawing, the present invention is done detailed explanation.
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
As shown in Figure 1; A kind of machine vision light-source system; Comprise slave computer, host computer and some groups of lighting units 1; Said slave computer comprises single-chip microcomputer, driven in series chip, flash data unit, power supply unit, electrify restoration circuit and manual reset circuit, and said single-chip microcomputer is connected with host computer through the RS232 serial interface, and said every group of lighting unit connects with corresponding driven in series chip; Said driven in series chip is connected each other; One of them driven in series chip is connected with said single-chip microcomputer, and said every group of lighting unit is made up of the light source of several independent, and the single-chip microcomputer of said slave computer is connected with flash data unit, power supply unit, electrify restoration circuit and manual reset circuit respectively.
Wherein, in lighting unit, also be provided with and be used to prevent that overcurrent from burning the current-limiting resistance of led light source.
A kind of control method of machine vision light-source system may further comprise the steps:
1), as shown in Figure 2, the single-chip microcomputer of slave computer after obtaining the power supply unit on-load voltage, automatic electrification reset; Begin to read in flash data, and flash data separated be counted as binary data, send to the driven in series chip; The set light source; Light the light source that the flash data unit is set, open serial ports then and interrupt, wait for the host computer down-transmitting data;
2), as shown in Figure 3, the host computer down-transmitting data also produce to interrupt, the slave computer response is interrupted; Send handshake to host computer, if do not receive handshake, number of times is sent in inquiry; If number of times less than 3 times, then sends handshake once more, if send number of times greater than 3 times; Judge that then mistake appears in host computer, get into again and wait for interrupt status; If after receiving handshake; Read and interrupt data in the buffer memory, the data of reading are carried out the hexadecimal to binary conversion, the data after the conversion are sent to corresponding driven in series chip through data/address bus; Driven in series chip drives light source is realized the light source works state that host computer sets.
In said step 2) in, the data that host computer passes are down accomplished through following steps:
A), as shown in Figure 4, host computer brings into operation, at first initializing variable detects com-state then automatically, if serial ports can not open, then ejects warning, and the terminator operation; If serial ports is in proper working order, then send handshake to slave computer, if do not receive handshake, then judge and send number of times, if number of times less than 3, then resends,, and get into display interface if number of times greater than 3 times, then points out user's slave computer to be not ready for; If the handshake of slave computer normal response host computer then in the interface display successful connection, and is waited for user's operation;
B), as shown in Figure 5, in user operation, after the user sets parameters; Click is provided with control; System produces response, and whether system's judges has been selected directly to read in the light source setup parameter of storing in the database, if the user has selected to read in parameter in the database; Light source works state in the then direct accessing database, and carry out corresponding data router;
C), if the user does not select to read in database data, then the light source works state that the user representes through the check box on the page is read in system, and carries out corresponding data router; As shown in Figure 6, the user can operate the corresponding check box 2 of light source, one by one light source igniting is perhaps turned off; The user also can use row to select 3 mode; One row light source is all lighted or turned off, behind the check box that has been provided with on the interface, click light source control is set; To slave computer transmission data, light source is set.
At above-mentioned steps b) and step c) in, the corresponding data router of said execution is: convert the corresponding light source operating state to binary data, convert hexadecimal data then to, after obtaining the light source works state of hexadecimal representation; Send data to slave computer, get nowhere if send, then number of times is sent in inspection; If number of times less than 3 times, then sends once more, if more than or equal to 3 times; Then stop to send, and point out corresponding mistake, and return main interface; If send successfully, then deposit data in database, call in order to next user, and return main interface.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. machine vision light-source system; It is characterized in that: comprise slave computer, host computer and some groups of lighting units, said slave computer comprises single-chip microcomputer and driven in series chip, and said single-chip microcomputer is connected with host computer through serial interface; Said every group of lighting unit connects with corresponding driven in series chip; Said driven in series chip is connected each other, and one of them driven in series chip is connected with said single-chip microcomputer, and said every group of lighting unit is made up of the light source of several independent.
2. machine vision light-source system according to claim 1 is characterized in that: said slave computer also comprises the flash data unit that is connected with single-chip microcomputer.
3. machine vision light-source system according to claim 1 is characterized in that: said slave computer also comprises the power supply unit that is connected with single-chip microcomputer.
4. according to claim 1,2 or 3 described machine vision light-source systems, it is characterized in that: said slave computer also comprises electrify restoration circuit and the manual reset circuit that is connected with single-chip microcomputer respectively.
5. the control method of a machine vision light-source system is characterized in that: may further comprise the steps:
1), the single-chip microcomputer of slave computer visit flash memory, read flash data, send to the driven in series chip, the set light source is lighted the light source that the flash data unit is set, and opens serial ports then and interrupts, and waits for the host computer down-transmitting data;
2), host computer down-transmitting data and produce to interrupt, the slave computer response is interrupted, and reads and interrupts data in the buffer memory, resolved data also converts light source control signal into, realizes the light source works state that host computer sets.
6. the control method of machine vision light-source system according to claim 5 is characterized in that: in said step 2) in, the data that host computer passes are down accomplished through following steps:
A), host computer brings into operation, at first initializing variable detects com-state then automatically; If serial ports is in proper working order, then send handshake, if the handshake of slave computer normal response host computer to slave computer; Then in the interface display successful connection, and wait for user's operation;
B), in user's operation; After the user sets parameters, click control is set, system produces response; Whether system's judges has selected directly to read in the light source setup parameter of storing in the database; If the user has selected to read in parameter in the database, light source works state in the then direct accessing database, and carry out corresponding data router;
C), if the user does not select to read in database data, then the light source works state that the user representes through the check box on the page is read in system, and carries out corresponding data router;
In step b) and step c), the corresponding data router of said execution is: convert the corresponding light source operating state to binary data, convert hexadecimal data then to; After obtaining the light source works state of hexadecimal representation; Send data to slave computer,, then deposit data in database if send successfully; Call in order to next user, and return main interface.
7. the control method of machine vision light-source system according to claim 6 is characterized in that: in said step c), the user can operate the corresponding check box of light source; With light source igniting or turn off, the user also can use the mode of row choosing one by one, and a row light source is all lighted or turned off; Behind the check box that has been provided with on the interface; Click light source control is set,, light source is set to slave computer transmission data.
8. the control method of machine vision light-source system according to claim 5 is characterized in that: in said step 2) in, after interrupting taking place; Slave computer responds, and sends handshake to host computer, if do not receive handshake; Number of times is sent in inquiry, if number of times less than 3 times, then sends handshake once more; If send number of times greater than 3 times, judge that then mistake appears in host computer, get into again and wait for interrupt status; If receive handshake, then read and interrupt data in the buffer memory.
9. according to the control method of claim 6 or 7 described machine vision light-source systems, it is characterized in that: in said step a), when detecting com-state,, then eject warning if serial ports can not be opened, and the terminator operation; If the serial ports operate as normal is then sent handshake to slave computer, if do not receive handshake, then judge and send number of times, if number of times less than 3, then resends,, and get into display interface if number of times greater than 3 times, then points out user's slave computer to be not ready for.
10. the control method of machine vision light-source system according to claim 9 is characterized in that: in said step b) and step c), after obtaining the light source works state of hexadecimal representation; Send data to slave computer, get nowhere if send, then number of times is sent in inspection; If number of times less than 3 times, then sends once more, if more than or equal to 3 times; Then stop to send, and point out corresponding mistake, and return main interface.
CN2011102514720A 2011-08-30 2011-08-30 Machine vision light source system and control method thereof Expired - Fee Related CN102325409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102514720A CN102325409B (en) 2011-08-30 2011-08-30 Machine vision light source system and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102514720A CN102325409B (en) 2011-08-30 2011-08-30 Machine vision light source system and control method thereof

Publications (2)

Publication Number Publication Date
CN102325409A true CN102325409A (en) 2012-01-18
CN102325409B CN102325409B (en) 2013-12-04

Family

ID=45453053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102514720A Expired - Fee Related CN102325409B (en) 2011-08-30 2011-08-30 Machine vision light source system and control method thereof

Country Status (1)

Country Link
CN (1) CN102325409B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102657121A (en) * 2012-05-10 2012-09-12 上海海洋大学 Multifunctional fish vision experiment device
CN111781913A (en) * 2020-06-24 2020-10-16 北京北方华创微电子装备有限公司 Semiconductor device control system and system monitoring method
CN116047336A (en) * 2023-03-27 2023-05-02 深圳市铂纳特斯自动化科技有限公司 Battery formation monitoring method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281658A (en) * 2008-04-25 2008-10-08 清华大学 Variation illumination dynamic scene three-dimensional capturing system
CN201462479U (en) * 2009-04-24 2010-05-12 武汉大学 Controllable human body venous image gathering infrared lighting device
CN101718974A (en) * 2009-11-24 2010-06-02 昆明理工大学 Shift series connection type digital display meter

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281658A (en) * 2008-04-25 2008-10-08 清华大学 Variation illumination dynamic scene three-dimensional capturing system
CN201462479U (en) * 2009-04-24 2010-05-12 武汉大学 Controllable human body venous image gathering infrared lighting device
CN101718974A (en) * 2009-11-24 2010-06-02 昆明理工大学 Shift series connection type digital display meter

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102657121A (en) * 2012-05-10 2012-09-12 上海海洋大学 Multifunctional fish vision experiment device
CN111781913A (en) * 2020-06-24 2020-10-16 北京北方华创微电子装备有限公司 Semiconductor device control system and system monitoring method
CN116047336A (en) * 2023-03-27 2023-05-02 深圳市铂纳特斯自动化科技有限公司 Battery formation monitoring method and device

Also Published As

Publication number Publication date
CN102325409B (en) 2013-12-04

Similar Documents

Publication Publication Date Title
EP2879125A1 (en) Led lamp panel, control card of led display screen, and led display screen system
CN105472830B (en) With can recording function LED light lamp, lamp string and system
CN101751320A (en) Computer hardware device state indicating circuit
CN102325409B (en) Machine vision light source system and control method thereof
JP2020013758A (en) Lighting system
CN112306821A (en) State indication method, device, equipment and storage medium of server system
CN101726700A (en) Test system and method thereof of circuit board light-emitting element
CN102027715A (en) Method and apparatus for repeating illumination information on a daisy chain bus structure
CN101271420B (en) Operating system hard disk recognition device
CN105761682A (en) Electronic device and backlight control method of display
CN106879113B (en) The method and apparatus of terminal and its intelligent control indicator light
CN203241812U (en) Configurable switch
CN107346609A (en) A kind of cell phone intelligent sensing identification traffic signal system based on Bluetooth technology
CN112395224B (en) Data processing method and system, concatenation device and electronic equipment
CN103516552A (en) State indication method and state indication device of electronic device
CN101424722A (en) LED test system for mainboard and method
CN110149745B (en) Remote upgrading and remote state detection system for light playing files
CN203241987U (en) Storage card debug device
CN1801540A (en) Method for preventing veneer misplug and its realizing apparatus
CN113362616A (en) Intelligent traffic signal control method and control circuit
CN207352599U (en) A kind of offline downloaders of FPGA
CN207833674U (en) Doll machine and its state detection circuit
CN201886461U (en) Testing card capable of testing main boards in different sizes
CN110351171A (en) For the equipment used in configurable network
CN103687226A (en) Parallel connection lamp control system and branch controller thereof

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131204

Termination date: 20180830