Summary of the invention
Main purpose of the present invention is to overcome the deficiencies in the prior art, provides a kind of method by potentiometer control Polarization Controller, device and OCT system newly, and guarantees the reliability and stability of the control of Polarization Controller.
For achieving the above object, the present invention is by the following technical solutions:
A kind of method being controlled Polarization Controller by potentiometer, described Polarization Controller is using motor as the drive motors realizing Polarization Control angle adjustment, and the deflection angle of motor is controlled by the resistance value of regulator potentiometer, wherein the adjustable electric resistance of potentiometer and the adjustable offset gyration of motor are arranged to positively related one-to-one relationship, and described method comprises system initialization process and system self-correction running;
In described system initialization process, according to the initial resistivity value Ro of potentiometer, motor is made to deflect into the deflection angle corresponding with the initial resistivity value Ro of potentiometer according to described linear regulation relation;
Described system self-correction running comprises the following steps:
B1, by potentiometer from initial resistivity value Ro rotate to resistance value Rx;
B2, judge that whether resistance value Rx is close to 0, if resistance value Rx is close to 0, makes motor move to minimum angles limit-switch positions, otherwise enter next step;
B3, judge that whether resistance value Rx is close to maximum resistance R, if resistance value Rx is close to maximum resistance R, makes motor move to maximum angle limit-switch positions, otherwise enter next step;
B4, judge whether resistance value Rx is greater than initial resistivity value Ro, if Rx is greater than initial resistivity value Ro, enter next step, otherwise go to step b8;
B5, control motor run ((Rx-Ro)/R) * N and walk to maximum deflection direction;
B6, judge whether contact maximum deflection limit switch in motor operation course, if motor contact maximum deflection limit switch, enter next step, otherwise go to step b11;
B7, control motor walk to minimum deflection direction deflection ((R-Rx)/R) * N, then go to step b11;
B8, control motor run ((Ro-Rx)/R) * N and walk to minimum deflection direction;
B9, judge whether contact minimum deflection limit switch in motor operation course, if motor contact minimum deflection limit switch, enter next step, otherwise go to step b11;
B10, control motor, to maximum deflection direction deflection (Rx/R) * N step, then go to step b11;
B11, the initial resistivity value of potentiometer is re-set as Rx.
Further:
Described system initialization process comprises the following steps:
The initial resistivity value Ro of a1, reading potential device;
A2, motor is made first to rotate to minimum angles limit-switch positions;
A3, make motor from minimum angles limit-switch positions rotate to maximum angle limit-switch positions, record the umber of pulse N of whole stroke;
A4, calculate umber of pulse N0=((R-Ro)/R) * N corresponding to the initial resistivity value Ro of potentiometer, wherein R is the maximum resistance of potentiometer; Make motor move N0 step from maximum angle limit-switch positions to minimum angles limit-switch positions, arrive the deflection angle corresponding with the initial resistivity value Ro of potentiometer.
In step b2, if resistance value Rx is the 0-5% of maximum resistance R, then judge that resistance value Rx is close to 0; And/or, in step b3, if resistance value Rx is the 95%-100% of maximum resistance R, then judge that resistance value Rx is close to maximum resistance R.
In step b2, if resistance value Rx is close to 0, first judge whether motor moves to minimum angles limit-switch positions in response to the deflection control signal of potentiometer generation, if not, then moves to minimum angles limit-switch positions by predetermined control sequence control motor; And/or, in step b3, if resistance value Rx is close to maximum resistance R, first judge whether motor moves to maximum angle limit-switch positions in response to the deflection control signal of potentiometer generation, if not, then by predetermined control sequence control motor minimum angles limit-switch positions is moved to.
Described potentiometer adopts rotational potentiometer.
A kind of device being controlled Polarization Controller by potentiometer, comprise Polarization Controller, be coupled to the motor of described Polarization Controller and be coupled to the potentiometer of described motor, described motor adopts motor to realize Polarization Control angle adjustment, described device runs, by the deflection angle regulating the resistance value of described potentiometer to control described motor according to described method.
A kind of OCT system, comprises the described device being controlled Polarization Controller by potentiometer, described device for changing the described flashlight of OCT system and/or the light polarization state of reference light, to improve the interference signal intensity of described flashlight and described reference light.
Further:
Described OCT system comprises light source, first beam splitting module, reference arm module, sample arm module, detecting module and processing module, the described device being controlled Polarization Controller by potentiometer is provided with in wherein said sample arm module, described device is for regulating the polarisation of light state propagated in described sample arm module, described light source sends light and is passed to described first beam splitting module, the light received is divided into two bundles and is supplied to described reference arm module and described sample arm module respectively by described first beam splitting module, wherein light beam is passed to described reference arm module, the light transmission received is returned in described first beam splitting module to form reference light by described reference arm module, another light beam enters to inject eyes to be detected after described sample arm module, after the optical fundus scattering in described eyes, form flashlight and return described first beam splitting module, described flashlight and described reference light produce interference light after interfering, described detecting module receive and after gathering described interference light by Signal transmissions to described processing module, signal described in described processing module process.
Described light source is super-radiance light emitting diode, it sends near infrared from detecting light, described near infrared from detecting light is passed to described first beam splitting module, described first beam splitting module is one 2 × 2 fiber optic splitters, and it is supplied to described reference arm module and described sample arm module after described near infrared from detecting light received is divided into two bundles respectively; And/or described reference mirror is plane mirror, the detection light that described first beam splitting module provides is got back in described first beam splitting module after described plane mirror vertical reflection, to form described reference light.
Described Polarization Controller changes by changing the angle being coiled into the optical fiber of ring-type in described sample arm module the polarisation of light state propagated in optical fiber.
Described processing module is computer.
Beneficial effect of the present invention:
Different from the control program that existing employing computer software control motor drives to realize the indirect control of Polarization Controller, the invention provides a kind of method and apparatus being controlled Polarization Controller by potentiometer newly, adopt the resistance value of potentiometer (as adopted rotational potentiometer, namely change the angle of knob) regulation and control with Polarization Controller Angle ambiguity one to one mode regulate, resistance value is changed by potentiometer, determine the anglec of rotation of Polarization Controller, and be urged to the position wanting to reach by motor.Its communication scheme is simple, and manipulation is got up easy and directly perceived, makes user be easy to operate.In order to realize the regulation and control of potentiometer to the drive motors of Polarization Controller, the present invention, by adopting the self-correction means in system initialization and system operation, effectively can guarantee the reliability and stability of the control of Polarization Controller.When after equipment energising, by system initialization process, Polarization Controller is driven into the angle corresponding with the initial resistivity value of potentiometer, completes the initialization of module.Further, by increasing fault tolerant mechanism to the control of some specific positions, comprise potentiometer reach the limit of position and the drive motors of Polarization Controller does not reach the limit of position time fault tolerant mechanism, and potentiometer do not reach the limit of position and the drive motors of Polarization Controller has reached the limit of position time fault tolerant mechanism, the present invention can find the offset error of motor in time and be corrected, and prevents the step-out phenomenon because motor likely produces and causes the corresponding relation between the deflection of motor and the resistance variations of potentiometer to produce deviation.
Detailed description of the invention
Below embodiments of the present invention are elaborated.It is emphasized that following explanation is only exemplary, instead of in order to limit the scope of the invention and apply.
Consult Fig. 1, in one embodiment, a kind of method being controlled Polarization Controller by potentiometer, described Polarization Controller is using motor as the drive motors realizing Polarization Control angle adjustment, and the deflection angle of motor is controlled by the resistance value of regulator potentiometer, wherein the adjustable electric resistance of potentiometer and the adjustable offset gyration of motor are arranged to the one-to-one relationship with positive correlation.Described potentiometer can adopt rotational potentiometer, is carried out the adjustment of resistance value by the knob of rotational potentiometer.Described method comprises system initialization process and system self-correction running.
In described system initialization process, according to the initial resistivity value Ro of potentiometer, motor is made to deflect into the deflection angle corresponding with the initial resistivity value Ro of potentiometer according to described linear regulation relation.
As shown in Figure 1, in a preferred embodiment, described system initialization process specifically comprises the following steps:
The initial resistivity value Ro of a1, reading potential device;
A2, motor is made first to rotate to minimum angles limit-switch positions;
A3, make motor from minimum angles limit-switch positions rotate to maximum angle limit-switch positions, record the umber of pulse N of whole stroke;
A4, calculate umber of pulse N0=((R-Ro)/R) * N corresponding to the initial resistivity value Ro of potentiometer, wherein R is the maximum resistance of potentiometer; Make motor move N0 step from maximum angle limit-switch positions to minimum angles limit-switch positions, arrive the deflection angle corresponding with the initial resistivity value Ro of potentiometer.
In another kind of embodiment, described system initialization process also can make motor first rotate to maximum angle limit-switch positions in step a2, in step a3, motor is rotated to minimum angles limit-switch positions from maximum angle limit-switch positions, make motor move (Ro/R) * N from minimum angles limit-switch positions to maximum angle limit-switch positions in step a4 to walk, to arrive the deflection angle corresponding with the initial resistivity value Ro of potentiometer
Said system self-correction running realizes in system works, and self-correction during step lost by motor.As shown in Figure 1, described system self-correction running comprises the following steps:
B1, by potentiometer from initial resistivity value Ro rotate to resistance value Rx;
B2, judge that whether resistance value Rx is close to 0, if resistance value Rx is close to 0, makes motor move to minimum angles limit-switch positions, otherwise enter next step;
B3, judge that whether resistance value Rx is close to maximum resistance R, if resistance value Rx is close to maximum resistance R, makes motor move to maximum angle limit-switch positions, otherwise enter next step;
B4, judge whether resistance value Rx is greater than initial resistivity value Ro, if Rx is greater than initial resistivity value Ro, enter next step, otherwise go to step b8;
B5, control motor run ((Rx-Ro)/R) * N and walk to maximum deflection direction;
B6, judge whether contact maximum deflection limit switch in motor operation course, if motor contact maximum deflection limit switch, enter next step, otherwise go to step b11;
B7, control motor walk to minimum deflection direction deflection ((R-Rx)/R) * N, then go to step b11;
B8, control motor run ((Ro-Rx)/R) * N and walk to minimum deflection direction;
B9, judge whether contact minimum deflection limit switch in motor operation course, if motor contact minimum deflection limit switch, enter next step, otherwise go to step b11;
B10, control motor, to maximum deflection direction deflection (Rx/R) * N step, then go to step b11;
B11, the initial resistivity value of potentiometer is re-set as Rx.
Those skilled in the art can understand, and above-mentioned steps is not constrained to be needed according to strict time order and function order.Such as, the order of step b2 and step b3 can be exchanged, and the order of step b5-b7 and step b8-b10 also can be exchanged.
In the process of above-mentioned steps b5-b7, under normal circumstances, when knob resistance value Rx does not arrive maximum resistance R, the deflection of motor can not arrive maximum deflection position and trigger maximum deflection limit switch.If there is triggering situation in motor process, illustrate that the knob inflection point of potentiometer and the deflection of motor occur not corresponding, therefore system is with maximum deflection position for reference point, again motor is driven in the angle corresponding with resistance value Rx.After whole step completes, then the knob resistance value Rx arrived is designated as the initial resistivity value Ro next time controlled.
The process of above-mentioned steps b8-b10 is similar, and under normal circumstances, when knob resistance value Rx does not arrive minimum resistance 0, the deflection of motor can not arrive minimum deflection position and trigger minimum deflection limit switch.If there is triggering situation in motor process, illustrate that the knob inflection point of potentiometer and the deflection of motor occur not corresponding, therefore system is with minimum deflection position for reference point, again motor is driven in the angle corresponding with resistance value Rx.After whole step completes, then the knob resistance value Rx arrived is designated as the initial resistivity value Ro next time controlled.
In a preferred embodiment, in step b2, if resistance value Rx is close to 0, first judge whether motor moves to minimum angles limit-switch positions in response to the deflection control signal of potentiometer generation, if not, then by predetermined control sequence control motor minimum angles limit-switch positions is moved to.In said process, if knob is close to Minimum deviation angle (Rx is close to 0), and when the corresponding rotation of motor does not run to Minimum deviation angle, illustrate that the deflection of motor occurs that error needs to revise.By this fault-tolerant measure, avoid appearance potential device arrival least limit position and Polarization Controller does not arrive least limit position in response to potentiometer.
Can judge that whether resistance value Rx is close to 0 according to a predetermined scope.In a preferred embodiment, in step b2, if resistance value Rx is the 0-5% of maximum resistance R, then judge that resistance value Rx is close to 0.
In a preferred embodiment, in step b3, if resistance value Rx is close to maximum resistance R, first judge whether motor moves to maximum angle limit-switch positions in response to the deflection control signal of potentiometer generation, if not, then by predetermined control sequence control motor minimum angles limit-switch positions is moved to.In said process, if knob is close to maximum deflection angle (Rx is close to R), and when the corresponding rotation of motor does not run to maximum deflection angle, illustrate that the deflection of motor occurs that error needs to revise.By this fault-tolerant measure, avoid appearance potential device arrival maximum limit position and Polarization Controller does not arrive maximum limit position in response to potentiometer.
Can judge that whether resistance value Rx is close to maximum resistance R according to a predetermined scope.In a preferred embodiment, in step b3, if resistance value Rx is the 95%-100% of maximum resistance R, then judge that resistance value Rx is close to maximum resistance R.
In another kind of embodiment, a kind of device being controlled Polarization Controller by potentiometer, comprise Polarization Controller, be coupled to the motor of described Polarization Controller and be coupled to the potentiometer of described motor, described motor adopts motor to realize Polarization Control angle adjustment, described device runs, by the deflection angle regulating the resistance value of described potentiometer to control described motor according to described method.
In another kind of embodiment, a kind of OCT system, comprise the described device being controlled Polarization Controller by potentiometer, described device for changing the described flashlight of OCT system and/or the light polarization state of reference light, to improve the interference signal intensity of described flashlight and described reference light.
As shown in Figure 2, according to further embodiment, a kind of OCT system comprises light source 100, first beam splitting module 200, reference arm module 300, sample arm module 500, detecting module 600 and processing module 700, the described device (not shown) being controlled Polarization Controller by potentiometer is provided with in wherein said sample arm module 500, described device is for regulating the polarisation of light state propagated in described sample arm module 500, described light source 100 sends light and is passed to described first beam splitting module 200, the light received is divided into two bundles and is supplied to described reference arm module 300 and described sample arm module 500 respectively by described first beam splitting module 200, wherein light beam is passed to described reference arm module 300, the light transmission received is returned in described first beam splitting module 200 to form reference light by described reference arm module 300, another light beam enters to inject eyes to be detected after described sample arm module 500, after the optical fundus scattering in described eyes, form flashlight and return described first beam splitting module 200, described flashlight and described reference light produce interference light after interfering, described detecting module 600 receive and after gathering described interference light by Signal transmissions to described processing module 700, described processing module 700 processes described signal.Light path between sample arm module 500 and the first beam splitting module 200 also can arrange lens 400.
Wherein said processing module 700 can be computer.The eyes 800 that this OCT system can detect can be human eyes, also can be the eyes of other animals.
In a preferred embodiment, described light source 100 can be super-radiance light emitting diode, it sends near infrared from detecting light, described near infrared from detecting light is passed to described first beam splitting module 200, described first beam splitting module 200 is one 2 × 2 fiber optic splitters, and it is supplied to described reference arm module 300 and described sample arm module 500 after described near infrared from detecting light received is divided into two bundles respectively.
In a preferred embodiment, described reference mirror can be plane mirror, and the detection light that described first beam splitting module 200 provides is got back in described first beam splitting module 200 after described plane mirror vertical reflection, to form described reference light.
In a preferred embodiment, described Polarization Controller changes by changing the angle being coiled into the optical fiber of ring-type in described sample arm module 500 the polarisation of light state propagated in optical fiber.
Above content combines concrete/preferred embodiment further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention; without departing from the inventive concept of the premise; its embodiment that can also describe these makes some substituting or modification, and these substitute or variant all should be considered as belonging to protection scope of the present invention.