基本信息
文件名称:顶级基线应用程序组件模板工具norman kirchner tlbtop level baselineTLBTOP.pptx
文件大小:215.29 KB
总页数:14 页
更新时间:2025-06-10
总字数:约2.39千字
文档摘要

TLB–TopLevelBaselineapplicationandcomponenttemplate/toolNormanKirchner

TopLevel?AVIthatcanbeconsideredtheprimaryofasystemormajorcomponentofasystemTypicallyhasfrontpanelshownbutnotarequirementControlsflowofapplicationandprocessingProcessinghappenswithinexecutedstatesRunsforlifetimeofapplicationorcomponent

GetInstalledInstallVIPackageManager(freecommunityedition)

InstallpackageRestartLVRefreshestoolsmenu

GetDevelopingToolsTLB–NewBaselineFollowInteractiveDialog

BaselineArchitectureApplicationINITonceandonlyoncecodeEventHandlerLoopuserinteractionresponsePrimaryExecutionLoopmainflowofprogramAppCloseclosereferencesshutdown

ApplicationINITSequenceofcasesprimestheapplicationstackedinsteadofflatforcleanlinessNot‘all’init.codegoeshereJustonceandonlyoncestuffEnqueuesspecificsetofstatestoPrimaryExecution

EventHandlerResponsivetobuttonpushesandvaluechangesPre-definedcaseshandlewindowcloseandshutdownSourceofqueuedmessagestoPrimaryExecution

PrimaryExecutionPre-definedcaseshandlecommonfunctionsInitError95%ofworkhappenshere‘Default’casehandlesstatetypos

ApplicationCloseHandlesdisplayconsiderationifbuiltintoEXENorealprocessingshouldhappenhereUse‘Exit’inPrimaryExecution

TheSHIFTERMasterstateclusterALLdataassociatedwithapplicationNEVERsendintosub-VIEasilyaddelementsthroughTypedefshortcut

‘UserParameters’Scalarinputsonthefrontpanelnumerics,strings,etc.Registerfor‘valuechange’eventdynamicallyPreventseventstructurebloatAllterminalsin1state:UpdateUserParam.EnablesallparamtobeaccessibletoentireprogramwithoutneedforlocalVar

‘DisplayData’Scalars,plotsetcAnythingthatneedstogetupdatedonthepanelStoreinshiftertoprovidedataaccesstoentireappInsteadofoutputtingdirectlytoindicatorCall‘UpdateDisplay’statetorefreshdisplay

ExtraHandyThingsGracefullyshutsdownbo