资源描述:
《确定透镜焦面的系统设计-论文》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、确定透镜焦面的系统设计-论文确定透镜焦面的系统设计焦面判读程序:#include#includevoidmain(){floatf二100.0;//阀值intmin=1;//系统所能分辨的最小沿轴移动量,对于lUm的步进屯机,则为lUmintM二N二0;〃循环次数,本程序中最大为10floate,d,aver二0;//aver为d的平均值intz;floata[10];floatf_see二50.864;//待测透镜焦距的目测值intb二10;〃显微镜物镜放大率
2、tag://程序返冋入口z=0;whi1e(z-10<0){d=a[z]二subprograme();//subprograme()用来求解d值z++;}for(inti=0;i<10;i++)aver二aver+a[i];aver二aver/10;//求得d的平均值if(N二二1){if(d二〉x)r++;gototag;}else{e二4/5*b/1*d*min/f;//计算e值if(abs(d-x)0){if(d
3、=>x)r=r-a[N-1];gototag;}else{if(d=>x)r二r+a[NT]/2;gototag;}}else{M++;if(d=>x)r二r-a[NT]/2;gototag;}printfd);〃输出d值}890确定透镜焦面的系统设计步进电机控制程序:MOVDPTR,#adr3:8253控制口LOOP:INCDPTRMOVA,#35H:TO模式二MOVA,@R0MOVX@DPTR,AMOVX@DPTR,MOVA,#75H:T1模式二INCROMOVX@DPTR,AMOVA,@R
4、0MOVX@DPTRMOVX@DPTR,AMOVDPTR#adr0-1MOVR7,#03H电机运行子程序:INCRODJNZR7LOOPRETMOVA,#OB3H:T2模式一SETBP1.1(CLRP1.1);决定电机运行方向CLRP1.0LCALLYSH:延时10ms产生负脉冲,使电机启动SETBP1.0RETThedesigntothesystemofdetermininglensfocalplaneAbstractLensfocalfocusistheimportantparametert
5、odeterminetherelationofobject-image.Atthesametime,whetherthefocusoflensispreciseornotwilldirectlyinfluencethewholelensofopticssystem.Inordertoaccuratelymeasurethefocusoflens,thepositionoffocalplanemustbefirstlydetermined.Intraditionalmethodswhicharef
6、ulloferrorandlackofefficiency,thefocalplaneisinterpreted.Toavoidtheseshortcomingsoftraditionalmethodsandachievetheauto-measurementoffocalplane,basedonthemeasuredfocallengthoflensoflight-utensilseat,thephenomenonofeyesusedasthereceiverwasreplacedbylin
7、earCCD.Andbasedonthetheoryofpointspreadfunction,theautomaticmeasurementsystemwasdesigned・Thesystemdesignofthecompleteproceduresofmeasurefocalplanandacomputer-stepmotorinterfacecircuitandcompletestepmotorcontrolprocedures・Thissystemcananalyzedataacqui
8、sitionfromCCDbycomputersandsendresultstostepmotorsthusdrivingCCDtorealizefastandaccuratedeterminationtolensplane・Keywords:CCD;Focalplane;TechniqueforFocalPlane;stepmotor;确定透镜焦面的系统设计摘要透镜的焦距是确定其物象关系的重要参数,同时透镜的焦距是否精确将直接影响整个光学系统的焦距。而要精确测量焦距,必须先准确地检测出焦面的位