欢迎来到天天文库
浏览记录
ID:52737881
大小:869.35 KB
页数:73页
时间:2020-03-30
《ASAP学习教程脚本语言篇.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Chap3•IntroductiontoCommandScripts•MoreCommandInterfacefeatures•ASAPUser-definedMacros•ASAPPre-definedMacros•SourceApodization•MoreAbouttheBOUNDSCommand•RaySplittingandFresnelReflections•AComprehensiveExerciseASAPCommandScriptsMotivationWhynotjustusetheBuilderanddrop-downmenus?VirtuesoftheASA
2、PBuilder•Context-sensitivecolumnheadingshelpusentercommandparameters.•Cut,paste,drag-anddropandeaseofmodifyingparametersmakeeditingeasy•ManyBuildercommandsprovideaworkingexampleofthefeature.•Thepreviewfeatureoffersbuilt-ingeometryverification.•ThespreadsheetformatmatchesbasicASAPgeometryandso
3、urcefeaturesverywell.•Manyusersaremorecomfortableagraphicaluserinterfacethanacommandlevelinterface.MotivationWhynotjustusetheBuilderanddrop-downmenus?LimitationsoftheASAPBuilderandpull-downmenus•TheBuilderincludesbasicgeometry,sources,ray-traceandanalysisfunctions,butcansometimesbemoretime-co
4、nsumingtoeditamodel•ExecutionofafileisveryslightlyslowerintheBuilderandsometimesmoredifficulttoedit.•ThePreviewislessusefulwhenmorethanGeometryisincludedintheBuilderfile.•Intensiveuseofthedrop-downmenus(whencombinedwiththeuseoftheBuilder)forrepetitivetaskscanbecometediousandinefficient.ASAPCo
5、mmandScripts?WhatcanASAPscriptsofferus?AdvandatesofASAPCommandScripts•Allgeometry,source-building,ray-tracing,andanalysiscommandsandfeaturesareavailableinthecommandlanguage(exceptASAP-implementTolerancing,currently)•AsinglescriptcanincludeallfourelementsofanASAPproject:systemgeometry,sources,
6、ray-traceoptions,andanalysis;orseparatescriptscanhandlecombinationsoftheelements.•AllofthepoweroftheASAPmacrolanguageisavailablewithincommandscripts,givingusallthebasicfeaturesofaprogramminglanguage.•Manyusersaremorecomfortablewithacommandlevelinterfacethanagraphicaluserinterface.•BuildaSyste
7、m•CreateSources•TraceRaysTheFour-StepProcess•PerformAnalysis1.BuildtheSystem:Defineandverifythegeometryandopticalpropertiesofeachcomponentinyouropticalsystem2.Createsources:Defineandverifyasetofraysthataccuratelysimulatestheopticalcharacteris
此文档下载收益归作者所有