中文英文对照GettingStartedwithTestStand_第1页
中文英文对照GettingStartedwithTestStand_第2页
中文英文对照GettingStartedwithTestStand_第3页
中文英文对照GettingStartedwithTestStand_第4页
中文英文对照GettingStartedwithTestStand_第5页
已阅读5页,还剩141页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Visit/niglobaltoaccessthebranchcontactinformation,supportphonenumbers,emailaddresses,andcurrentevents.Forfurthersupportinformation,refertotheInstrumentswebsiteat/infoandenterrefer/manuals.NIreviewsthisdocumentcarefullyfortechnicalaORIMPLIEDWARRANTIESASTOTHEACCURACYOFTHEINFORMATIONCONTANIwarrantsthatitshardwareproductswillbefreeofdefectsinmaterialsandworkmasubstantiallyconformtotheapplicableNIpublishedspecificationsfordefectsinmaterialsandvoltages;accident,abuse,orneglect,orahazardsuchaslightning,flood,orotheractofnature.THEREMEDIESSETFORTHABOVEAREEXCLUSIVEANDTHECUSTOMER'SSOLEREMEXCEPTASEXPRESSLYSETFORTHHEREIN,PRODUCTSAREPROVIDED"ASIS"WITHOANYKINDANDNIDISCLAIMSALLWARRANTIES,EXPRESSPARTICULARPURPOSE,TITLEORNON-INFRINGEMENT,ANDANYWARRANTIEUSAGEOFTRADEORCOURSEOFDEALOFCORRECTNESS,ACCURACY,RELIABItermsofanyapplicaEnd-UserLicenseAgree·Noticesarelocatedinthe<NationalInstrumentEULAsarelocatedinthe<NationalInstruments>\ShareReview<NationalInstruments>\_LegalInformation.txtforinformationonincludinIfyouareanagency,department,orotherentityoftheUnitedStatesGovernment("Government"),theuse,duplicaRefertotheNITrademarksandLogoGuidelinesat/trademarksformoreinformationonNationalInstrumentsLEGO,theLEGOlogo,WEDO,andMINDSTORMSaretrademarksoftheLEGOGroup.FIELDBUSFOUNDATION"andFOUNDATION"aretrademarksoftheFieldbusFoundation.EtherCAT*isaregisteredtrademarDeviceNet"andEtherNet/IP"aretrademarksofODVAGo!,SensorDAQ,andVernierareregisteredtrademarksofVenierSoftware&Technology.VernierSXilinxistheregisteredtrademarkofXilinx,Inc.FireWire*istheregisteredtrademarkofAppleInc.Linux*istheregisteredtrademarkofLinusTorvaldsintheU.S.andothercountriesHandleGraphics°,MATLAB*,Real-TimeWorkshope,Simulink*,Stateflow°,trademarks,andTargetBox'andTargetLanguageCompiler"aretrademarksofThTektronix*,Tek,andTektronix,EnablingTechTheBluetoth²wordmarkisaregisteThemarkLabWindowsisusedunderalicensefromMicrosoftCorporation.Windowsiandhavenoagency,partnership,orjoint-venturerelationshipwithNationForpatentscoveringNationalInstrumentsproducts/technolosoftware,thepatents.txtfileonyourmedia,ortheNationalInstrumentsPatentNoticeExportCompliancRefertotheExportComplianceInformation/legal/export-compliancefortheNationalInstrumentsglobaltradecompliancepolicyandhowtoobtainAPPLICATION,INCLUDINGTHEAPPROPRIATPERFORMANCE,INCLUDINGINTHEOPERATIONOFNUCLEARFACILITIES;AIRCRAFTNAVIG(COLLECTIVELY,"HIGH-RISKUSES").FURTHER,PRUDENTSTEPSMUSFAILURES,INCLUDINGPROVIDINGBACK-UPANDSHUT-DOWNMECHANISMS.NIEXPRESSLY高清无水印EQ\*jc3\*hps39\o\al(\s\up2(o),e)EQ\*jc3\*hps39\o\al(\s\up2(文),8c)高清无水印 1-4 1-4 2-1 2-3 2-3 2-3 2-4 2-4 2-7 ExecutingaSequenceUsingth 3-6 4-1 4-2 UsingtheExecutionWindowVariablesPane DockingtheVariablesPane 6-1 6-3OverridingaProcessMode 8-1 RunningaSequenceDy ConfiguringTestReport UsingExternalReportViewers AddingAdditionalResultstoReport AddingtoReportsU CreatingandConfigu CallingLabVIEWClassMembe CallingaDynamicallyD EditingExistingVIsfromT CreatingandConfiguringStepswiththeLab CreatingaNewCodeModu 12-5 Tutorial\Solutiondirectory.如果您是第解决方案文件位于<TestStandatc:\Users\Public\Documents\NationalInstruments\TestStandinthismanual.YoucanaccesstheNITestStandHelpinPrograms>NationalInstruments>TestStand>TestStandDocumentation>TestStandUsetheGuidetoTestStandDocumentationtopicintheNITestStandHelptoaccessallTestStanddocumentationinelectronicfresources.YoucanaccesstheGuidetoTestStandDocumentationtopi使用NITestStand中关于TestStand文档主题的指南,可以帮助访问所有电子格式的TestStand文档,并了解更多关于附加TestStand资源的信息。您可以通过以下方式访问TestStand>TestStand(Windows8.1/8)点击开始屏幕上的NI启动器并选择TestStand>TestStandTestStand>TestStandDocumen(Windows7或更早版本)选择Start>AllPrograms>NationalInstruments>TestStand>TestStandDocumentation>TestStandGuidetoDocumentation。TheNITestStandSystemandArchitectureOverviewCard,whichyoucanaccessfromtheGuidetoTestStandDocumentationtopic,includesacompletearchitecturaldiagramofTestStand,descriptionsofthevarioussystemcomponents,anfamiliarizeyourselfwithTestStandconceptsandrefertothecardwhileyoureviewthismanual.NITestStand系统和体系结构概览卡(您可以从指南到TestStand文档主题中访问它)包含完整的TestStand体系结构图、对各种系统组件的描述,以及说明序列文件执行流、执行对象结构和序列文件结构的图表。使用此卡来熟悉TestStand的概念,并在阅读本手册时参考此卡。Afteryoucompletethetutorialsinthismanual,refertotheadditionalresourcesdescribFigure1-1tolearnmoreaboutdevelopingaTestStand-basedtestsystem.完成本手册中的教程之后,请参阅图1-1中描述的附加资源,以了解关于开发基于测试标准的测试系统的Figure1-1.AdditionalTestStandDocumentationandResources附加的GettingStartedwithTestSEQ\*jc3\*hps18\o\al(\s\up5(Cu),co)EQ\*jc3\*hps18\o\al(\s\up5(to),m)EQ\*jc3\*hps18\o\al(\s\up5(e),e)EQ\*jc3\*hps18\o\al(\s\up5(r),s)EQ\*jc3\*hps18\o\al(\s\up5(d),s)EQ\*jc3\*hps18\o\al(\s\up5(cat),an)EQ\*jc3\*hps18\o\al(\s\up5(co),ra)EQ\*jc3\*hps18\o\al(\s\up5(r),n)EQ\*jc3\*hps18\o\al(\s\up5(e),n)EQ\*jc3\*hps18\o\al(\s\up5(s),g)EQ\*jc3\*hps24\o\al(\s\up6(ni),nfo)EQ\*jc3\*hps24\o\al(\s\up6(m),od)EQ\*jc3\*hps24\o\al(\s\up6(/i),e)EQ\*jc3\*hps24\o\al(\s\up6(n),:t)EQ\*jc3\*hps24\o\al(\s\up6(f),s)ArchitectureSeriesEQ\*jc3\*hps24\o\al(\s\up6(ni),fo)EQ\*jc3\*hps24\o\al(\s\up6(/i),e)EQ\*jc3\*hps24\o\al(\s\up6(nf),ts)Locatedin<TestSt试标准的系统Figure1-2shows.创建一个基于TestStand-based标准的测试解决方案是一个过程,包括solution,includinghowtoorganizefiRefertotheMajorSoftwareComponentsofTestStands于为具有复杂项目经验的TestStand用户提intheDeployingTestStandSystemsportionoftheNITestStandHelpsoyoucaninitializeinstruments,performcomplextests,orchangetheflowofexecutions.Usetheyoucreate.Youcancustomizereportanduserinterfacestocreateaunique,robusttestsolutionforanapplication.根据您创建TestStand主要软件组件userinterfaces,moduleadapters,processmodels,anddeploymentutility.TestStand的主要软youwriteinLabVIEWandLabWindows/CVI.TheNITestStandAPIReferencePosterandtheNITestStandUserInterfaceControlsReTestStandAPI.TheNITestStandHelpincludesthedetaileddocumentationfortheTestStand引擎是一组dl1,它导出ActiveX自动化服务器API。序TestStand用户界面使用TestStandAPI,您可以从支持访问ActiveX服务器的任何编TestStandAPI引用海报和NITestStand用户界面控件引用海报包括TestStandAPISettingbreakpoints设置断点 Monitoringvariables,exstationtoprovideacustomGUIforexecuting,debugginLabWindows/CVI,MicrosoftVisualBasic.NET,C#,a定制用户界面。您可以使用任何可以托管ActiveX控件或控件ActiveX自动化服务器的variables,sequenceparameters,stepproperties,andsoon.WiththeuserinterfacesMode,youcanstartmultiple持在您从TestStand序列编辑器或TestStand用户界面执行步骤时进入ADE中的源代码。ofaLabVIEWprojectorcaLabVIEW项目的上下文中调用VIs,或者调用LabVIEW类成员VIs。types.调用DLL中具有各种参数类型的C函数。ActiveX/COMAdapter—CreatesActiveX/COMobjects,callsmsubroutine.TestStandprovidesalaccessTestStandvariablesandpropertiesfromanHTBasicsubroutine.调用HTBasicModules,formoreinformationabTestStand.RefertotheNITestStandHelpformoreinformationaboutusingtheLabVIELabWindows/CVIAdapters.请参考第11章,调用LabVIEWVIs,和第12章,调用operationsineverysequencefileyouwrite.测试UUT不仅仅需要执行一组测试。通常,供ConfiguremodelOptions入口点。此入口点创建Configure菜单项。TestStand系统的授权选项TestStandLicensessectionoftheNITestStandReleaseNot差异的更多信息,请参阅NITestStand帮助或NITestStand发行说明的激活TestStandDesigning,developing,anddebuggingsequences—Youmusthaveoneofthefollowinguserinterface,includingacusTestStandDevelopmentSystemLicense-teststand开发系TestStandCustomSequenceEditorLicense-teststand自定义序列编辑器许可证 TestStandDebugDeploymentEnvironmentLicense-testst DebugDeploymentEnvironmeTestStand,直到软件评估期结束。Sequences加载和运行序列informationabouttheactivewindow,tab,orpaneinthesequenceed器包括用于加载工作区文件、编辑和运行序列文件的菜单、工具栏、窗口和窗格。单击HelpTopic(F1)按钮(如下图所示,位于工具栏上),启动NITestStand帮助,以获取关于RefertotheNITestStandHelpformoreinchapter.有关本章涉及的所有其他特性的更多信息,请参阅NITestStand帮助。TestStandSequenceEditor.(Windows8.1/8)单击开始屏幕上的NI启动器标题,TestStandSequenceEditor.(Windows7或更早版本)选择Start>AllProgrNationalInstruments>TestStand>TestStandSequenceEditorThesequenceeditorlaunchesthemainwindowandtheLogindialogbox.序列编辑主窗口和登录对话框。Passwordfieldempty.在用户名下拉控件中使用默认用户名administrator。将Bydefault,themenubarcontainstheFile,EdControl,Tools,Window,andHelpmenus.Thr⑤⑥7SequenceAnalyzerTo此工具栏还包括“撤消”和“重做”按钮。ButtonforunlockingandlockingtheTestStand论坛。previouslymadetomenus,toolbars,andthedockingstateofpNoteWhenyoulaunchthesequenceeditorforthefirscreenresolution.TLoadSelectedbutton.ClickOKtoclosetheSeq选择序列编辑器配置。在UIConfigurati控件中选择一个示例配置,然后单击LoadSelected按钮。单击OK关闭序列(.tsw)containsreferencestoanynumberoToopenanyfilefromtheWorkspacepane,dworkspace.Youcanalso2.SelectTutorial.tswandclickOpen.。选择Tutorial.tsw,决方案目录,如图2-2所示Figure2-2.WorkspacePanewiththeUsingTestStaNo如果TestStand提示您保存更改。TheSetup,Main,andClinstruments,fixtures,oraUUT.TheMainstepgrouptypstepsthatpowerdownorrestoretheinitialstatsequence,maintainingcounts,orholdingintermediatevalues.序列可以有任意数量的参数和.PaanetensPal/FaTetPoweOnlPas/FsTetKgyboadTeskoroteFhneieLrtTes,NoCorpaton,Kagto1序列文件窗口2步骤窗格3序列窗格4变量窗格34LabVIEW、.net和LabWindows/CVI编写的dll示例。Workspacepanebydouble-clickingComputer.seqinthelistoffiles.从本章以从Workspace窗格中的文件列表中通过双击Computer.seq打开4.SelectMainSequenceontheSindicatesthecurrentlyexBeforetheexecutionbegins,stepasitexecutes.BydefaThefirststepintheSetupsdesignatethecomputercomponent,ifany,youwanttofailduringtheexecution.序列编Figure2-4.MainSequenceE①PesemeroLntTetNoCompsmon⑥4MnsteUmtTetNoCompson.FAMRAasinglePass-Computersea[2]Tes.MComouter.segJsta①5.ClickDone.单击DonecontainsthevalueFailed.观察执“Execution”窗口。ProcessModel使用顺序流程模型执行序列pointperformsaseriesofoperationsbeforeandafterclickOK.单击Model选项卡,验证Sequenti3.SelectExecute>TestUUTs.BeforeexecutingthestepsstepsinMainSequence,thepro单击Done。观察序列执行时的执行窗口。在完成MainSequenceInformationdialogboxagain.单击OK关闭UUTResult横幅。TestStand生成一UUT信息对话框。重复步骤4到7。execution.AfterthepaneoftheExecutionwindowforallthetestedUUTs.单击UUT信息对话框中的StopinformationaboutsupportedversionsofInterne使用批处理流程模型执行序列ExecutionentrypointoftheBatchmodel.完成以下步骤来运行BatchUUT.seq序列文件,使用TestUUTsExecution批量模型入口点<TestStandPublic>\Tutorial\BatchUUT.seq并检查forthistutorial.TheBatchUUT.seqsequencefilealwaysusestofUUTstotestinthebatch.在MultipleUUTSettings部分,将测试套接字的数量更改为2,并启用TileExecutionWindows选项。测试套接字控件的数目指定要在批处理中测试的uut数目。入任意批次序列号和UUT序列号。单击Go。查看BatchModelExample对话框中击OK继续。AftercompletingthestepsinMainSequence,theprocessmodellaunchestheBatchMainSequence中的步骤之后,流程模型将启动BatchRes如果浏览器弹出提示,则启用InternetExplorer运行脚本。10.Repeatsteps6through9forseveraldifferentbatches.对几个NoteCompletedsolutionfilesarelocatedinthe<TestStan1.Open打开<TestStandPublic>\Tutorial\Computer.seq.2.SelectFile》Save<filename>As<TestStandPublic>\Tutorial目录,并将序列文件保存为Computer2.seq。userswillusethetutorialfilesonthesamecomputer,savethefoftheInsertionPalette,tospecifythemoduleadapterthestepuses.单击位于Insertion以从Environment工具栏上的适配器ringcontrol中选择适配器。您选择的适配器仅Workspacepane,toshowtheInsertionPalette.如果你在第2章保持UseaPass/FailTeststeptocallacodemodulethdeterminewhetherthesteppassedorfailed.使用Pass/FailTest步调用返回Pass/Fail结果的代码模块。在代码模块执行之后,Pass/Fail测试步将计算一个布尔表达式,以确定该步是passedorfailed。the<F2>key.通过在Steps窗格上选择step并按<F2>键重命名新步为VideoCompletethefollowingstepstoexamineaSettingspane.在“步”窗格中选择“VideoTest步”,并单击“StepSettings”ifthePowerOnsteppasses.ifthePowerOnsteppasses.在InsertStepStatus部分,从主Step组的Step名称RunSateSequenceMaNumberofLoops—10TestStand将执行视频测试步骤10次,如果10次迭代中通过的次数少于8次,则iterationintherepTutorial\CPU.seqtospecifythesequence“MainSequence”。MainSequenceofCPU.seqinanewSequenceFilewindow以后在执行Computer2.seq时可以识别它includinganymodificationstothetoasequencefiletoed2.Navigatetothe<TestStandPublic>\Tutorialdirectory,selectTutorialStepsfolder.导航到\Tutorial目录,选择Tutori4.IntheTemplateslist,select,dragthestepbelstep.在“模板”列表中,选择Retryifstepandlaunchesth10.ClosetheExecutionwindow.Leayoucreatedintheprevioustutorial.完成以下步来更新步RetryPowerOnstep,以便如果您4.Enter20intheTimenon-criticalmessageduringtesting.在等待控件的时间中输入20,指示该步在继续之dialogbox.Whenthetimeoutreacheszero,theexecutioncontinues7.IntheSequenceFilewindow,d8.RenamethenewtemplatestepTimeoutRifyouwant.Right-clicktheTutorialfolderinthecontextmenutoremovethYoucandebugsequencesbytofChapter5,UsingVariablesandProperties,formo您可以通过跟踪、设置断点和条件断点、逐步执行代码以及包括监视表达式来调试序列。有关Watch表达式的更多信息,请参阅第5章的UsingtheWatchView窗格,UsingRefertotheNITestStandHelpformoreinformatitheStationOptionsdialogbox,clicktheExecutiontab,a1.Open<TestStandPublic>\Tutorial\Comthisoption.选择Execute》BreakonFirstStep以挂起第一步TestStand上执行的一个执行。在菜单选项的左边出现一个复选标记,表示您启用了该选项。StepsintheCleanupstepgrintheCleanupgroupcausesarun-timeerror,executioncontinuestothenextstepintheCleanupStepGroup.",includingthequotationmarks,intheMeNoteYoumustencloseliteralstringTestStandexpressionfield.在任何TestStand表达式字段中,必须用双引号4-1所示47586Completethefollowingstepstostepthroughaon<EndGroup>.allbreakpoints,thebreakpoVariablesandProperties,formoreinformationaboutexpressions.要指定一个条 Pass/FalTest,IhstrSetTest(com46WatchVewStepSetings目OutputWachVewXwaitsforthesubsequencetoreturn.Thesubsequenceinvocatofthecallingsequence.Thesequencethatiscurrentlyexecutsequence.Thechainofactivesequencesthatwaitfornestecalledthecallstac theThreadspane.Ayellowpointeri invocationwhilethesequenceexecutes,asshowninFigure4-2.序列调用步类似于LabVIEW中的subVIs和C/c++中的函数或方法调用。当一个步调用子序列时,包含调用步的序列等待子序列返回。子序列调用嵌套在调用序列的调用中。当前正在执行的序列是嵌套最多的序列。等待嵌套子序列完成的活动序列链称为调用堆栈。调用堆栈中的第一项是嵌套最多的序列调用。“线程”窗格中选择的执行线程的调用堆栈。当序列执行时,最嵌套的序列调用的右侧会出现一个黄色指针图标,如图4-2所示。选择每个序列,以查看每个序列调用。返回到调用堆栈中最嵌套的序列调用BeforeyoureachtheenbuttonuntiltheCleanupMessagest到Cleanup步组中的cleanupMessage步。您必须stepoverVideoTest步的10个循环。NoteCompletedsolutionfilesarelocatedintheCompletethefollowingstepstocreateanlearninthistutorialtosequencefileglobalandstationglobalvariables.完成以下步骤来创建和使用局部变量。您可以将本教程中学习的概念应用于序列文件全局变量和站点全局变量。1.Open<TestStandPublic>\Tutorial\Computer2.seq,whichyou2.SelectFile》Save<filename>AsanVariables窗格。展开local栏以查看当前为MainSequence定义的局部变量properties.TestStandusesthisvariabletostorestepresultsforresultprocessing.每个序menutoinsertanewnumericlocalvariable,andrenamethelocalvariableLooPowerOn,CPUTest,ROM,andRAMstepsbetweentheForandEndsteps.将结followingfigure,tolaunchtheoperators,functions,andtheTestStanfeatures,suchasdrop-downyoucreateexpressions.Atanypointwhileeditinganexpref.ExpandtheLocalsitemontheVariables/Propertiesta择localproperty下的LoopIndex变量,并单击Insert按钮。表达式浏览器输fromthenameofthesubproperty.Forexample,referencetheLoopIndexi.IntheExpressionBrowserdialogbox,clickOKtoreturntotheForLooptaboft序列的StepModeExecution部分启用8.ClickDoneintheTestSimulthevaluesofthesevariablesand“Variables”窗格显示当前在“CallStack”窗格中选择的序列调用的序列环境。序列环境包含所选序列调用中的步可以访问的所有变量和属Table5-1liststhetop-levelpropertiesinthesequencecontext.表5-1列出了序列上下文中的Table5-1.First-LevelPropertiesoftheSequenceContext序列上下文的一级属性包含当前序列中的局部变量。只有当前序列才能访问这些变包含当前序列中的参数变量。只有当前序列或调用序列才能有序列都可以访问这些变量。包含计算机上的站全局变量。当前计算机上的任何序列都可以访问这些变量。站全局变量存储在磁盘上,即使在您关闭TestStand之后,这些值仍然保持不包含对当前序列上下文的引用。通常使用此属性将整个序列包含描述当前执行状态的属性.包含当前执行步中的属性。Step属性仅在执行步时存在。当执行在步之间(例如在断点处)时,该属性不存在。CompletethefollowingstepstousetheVariablespaneoftheExecutionwindowtoexaminevalueoftheLoopIndexvariayoucreatedintheprevioustutorial.在TestStand执行Computer4.seq时,完成以用执行窗口的Variables窗格检查LoopIndex变量的值。您在前一个教程中创建的序列文件。tutorial.在上一教程中创建的For循环的末尾插入一个断点性。Looplndex的数值为0ThesequenceeditorcontainstabbedwindowsandpanesyoucanflSomepanes,suchastheVariablespane,m窗格的选项未又归并单击Debug工具栏上的Resume按钮。执行继续,并在结束步骤时再次挂118.com5.ClickthetabfortheVariablespane,单击Variables窗格的选项卡,将其拖到右侧,并将其放到Steps窗格选项卡上,以调整选项卡的顺序。让执行处于挂起状态,留待下一节教程讨论。NoteSelectView>ResetUIConfigoriginalstate.选择View》ResetUIConfiguration,以便随时将窗格恢复到原TheWatchViewpaneoftheExecutionwindowdisplaysthevaluesofwatchexpressionsyouenter.ThevaluesintheWatchViewpaneupdatewhenWhenyouenabletracing,theseWatchView窗格中的值将更新。当启用跟踪时,序列编辑器还会在每个步骤执行后更新值。“WatchView”窗格以红色文本突出显示已查看和更改的监视表达式值。Enterwatchexpressionstomonitorvaluesofvariablesandpropertiesasyoutraceorstepthroughasequence.Youwatch表达式,在跟踪或单步执行序列时监视变量和属性的值。您可以从变量中拖动单panetotheWatchViewpane.WthepropertytotheWatchViewpane.ThevalueoftheLoopIndexwatc在执行窗口的Variables窗格上选择LoopIndex属性,并将该属性拖动到Watch2.EdittheLoopInde挂起。watch表达式的值从40%更改为60%。4.ClickthebreakpointicontotheleftoftheEndstepintheExecutionwindowtoremovethe6.ClosetheExecutionwindow.filewhennoworkspaceisloaded.选择Debug)Breakpoints/Watches来启动Edit达式”对话框中查看断点和监视表达式选项卡的内容,NoteCompletedsolutionfilesarelocate调用序列文件中的自定义PreUUT回调,而不是流程模型中的默认sequenceswithintheTestUUTsandSinglePassExecutionentrypoints.图6-1显示了默认顺序流程模型使用测试UUTs和单通道执行入口点中的回调序列执行的操作。 Youcanmodifytheprocessmodelsorreplacethemodelsentirelytoalterthebehaviorofthe你可以修改流程模型或完全替换流程模型,以更改所有序列的流程模型copyalltheprocessmodelfilesfromthe<TestStand>\Components\Mod\TestStandModels目录复制到\ComodifythebehaviorofanStoringnewandcustomizedfilesinthe<TestStanViewingProcessModelCallbacks查看流程模型回调<TestStand>\Components\Models\TestS而不是PreUUTLoop回调步,以查看调用DoPreUUT序列的PreUUT回调序列。4.OntheSequencespane,seltimetodeterminethesequencefilepath.如果您在PreUUT回调序列的Steps窗格上双击CallDoPreUUT步来尝试打开DoPreUUT序列,TestStand将返定义回调覆盖PreUUT回调,以更改TestStand获取UUT7.ClosetheExecutionwindow.关闭执行窗口序列Callbacksectionofthischaptertooverridethisc覆盖流程模型回调Completethefollowingstepstooverridetthistechniquewhenyouwanttoperformataskonlyoncebeforeoperatingonmsuchasinitializinghardware.通过在客户端序列文件中创建一个PreUUTLoop回调序列,完成以下步骤,在序列模型中覆盖默认的PreUUTLoop回调序列。当您希望在操作多个uut(例如初始化硬件)之前只执行一次任务时,可以使用此技术。1.Open<TestStandPublic>\Tutorial\Computer4.seq,whichPublic>\Tutorial\Computer4.seq,您在第5章创建的,UsingVariablesandProperties.<TestStandPublic>\Tutorialdirectory.将文件另存为Computer5.seq4.SelectthePreUUTLoopcallexecutionusinganExecutioinsteadofthecallbacksequenceintheSequentialprocessmodelfile.选择PreUUT回调并单击Add。当前列中的值从no变为yes。单击OK关闭序列文序列编辑器在序列文件中创建一个新的空回调序列。现在,当您使用执行入口点启动执行时,TestStand调用序列文件中的回调函数,而不是序列流程模型文件中的ThePreUUTLoopcallbacksequPreUUTLoop回调序列成为sequence窗格上选择的序列,并在andrenamethenewstepPreUUTLoopCallbackMes6.Entertheliteral7.SavethechangesandselectExecute》TestUUTs.TestStandlau并单击OK。userprivileges,groups,groupprivileges,andmembersofgroups.TestStandcanlimittheNoteCompletedsolutionfilesarelocate6.Selecttheuseryoujustcreated,entertheappropriatepassword,andclickOK.选择刚刚创7.Open打开<TestStandPublic>\Tutorial\Computer.seq.privilegestoexecutethem.选择Execute菜单,并注意Execute菜单的SinglePass和disabledbecausetheuserprivilegeshavechanged.右组并从上下文菜单中选择Copyusers,adapters,applicationsettings,aGrantAl1subproperty.ThepropertyPrivileges.GrantAllappliestoall开Debug项,这是一个包含布尔子属性的属性。使用Value列下拉控件,以将

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论