版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Lesson 4 DevelopmentIntroductionAutomating Development TasksCode ReviewsA. IntroductionThe focus of this stage is development of the applicationFor the LabVIEW Architect, this stage involves:Implementing the software architectureSelecting or developing tools to assist programmers in developing the r
2、est of the projectConducting code reviews to evaluate the code that is developedRequirements GatheringDesignDevelopmentValidationDeploymentDevelopment DeliverablesTools for automating processesCode review documentationCompleted softwareB. Automating Development TasksWhy automate a development task?R
3、educe time spent by developers on common tasksEnsure that task is performed in the same way every timeRoles Regarding Automation ToolsLabVIEW architectDecide which development tasks will be automatedDevelop the tools to automate those tasksLabVIEW developerUse the automation tool throughout developm
4、entProvide feedback to the architect regarding functionality and usability of the toolCommon Development TasksCreating a LabVIEW projectSynchronization with source code controlRunning a build specificationDocumentation of VIsMethods of AutomationProject APIUsing VI Server to access LabVIEW functiona
5、lityVI ScriptingExpands the functionality available to VI ServerLabVIEW start-up wizards and assistantsProject APIProgrammatically accesses the LabVIEW ProjectContains a VI Server and ActiveX InterfaceProject API Use CasesTasks normally performed interactively with the Project ExplorerCreate a proje
6、ct Save and load a project from disk Add or delete a file or VI to or from the project Add or delete a folder to or from the project Use or modify a build specification of the project Class HierarchyClass HierarchyProjectProjectItemBuildSpecificationLibraryxControlLibraryTargetItemXML-Based Project
7、InformationExample of information stored in XML-based file (.lvproj)Project File XML SchemaProject API Create Project ExampleExample: Create a project with a folder and save the projectProject API Create Project Example XML FileExercise 4-1: Project Creation ToolUse the Project API to programmatical
8、ly create a new LabVIEW project.Exercise 4-1: Project Creation ToolIf a previously created VI also has a build script associated with it, that .bld file can be converted into a build specification for the LabVIEW project. The project API allows you perform nearly any method available with the LabVIE
9、W project. What about automatic creation of LabVIEW code?VI ScriptingExposes many additional VI Server classes, properties, and methodsCreate new VIsCreate front panel controlsCreate block diagram objects and wires Traverse diagram object hierarchies Modify codeInstalling VI ScriptingFeature is avai
10、lable for download from NI Developer Zone Downloads are available for:Windows XPWindows VistaMac OSXLinuxInstall and activate (for Windows) VI Scripting VI Scripting APIThree new VIs added to the Functions PaletteNew VIOpen VI Object ReferenceNew VI ObjectVI Scripting Sample Properties and MethodsVI
11、 ScriptingOpen and explore a VI scripting exampleVI Scripting HelpDocumentationmanualsVI Scripting Getting Started.pdfExamplesexamplesVIScriptingTechnical SupportAPI Community on NI Developer ZoneVI Scripting CaveatsTechnical SupportVI Scripting is an NI Labs productNI does not support LabVIEW Scrip
12、ting through Applications EngineeringAll technical issues should be posted on the API CommunityFuture Version SupportThe Scripting API is subject to change between LabVIEW versionsNo guarantees that any feature or behavior associated with the Scripting API will exist, migrate automatically, or have
13、a functionally equivalent behavior in different versions of LabVIEWLabVIEW Start-Up Wizards and AssistantsLabVIEW provides a number of wizards and assistants that can be used to reduce development timeDAQ AssistantInstrument I/O AssistantReal-Time Project WizardC. Code ReviewsOften conducted as a pe
14、er reviewInvolves taking others on a tour of your code“The best code reviews are the ones that actually get done.”Most problems will be found by the author while explaining the codeCode review A systematic examination of source code with the intent of finding and fixing mistakes that were overlooked
15、 during development. Benefits of a Code ReviewIdentify bugs and potential issues earlier in the product life cycleDevelopers improve their programming skills through feedbackAdditional people e familiar with the programCost of NOT Conducting a Code ReviewPotential problems may be missed until after
16、product releasesMaintenance of code es difficult if standards were not adhered toReadabilityScalabilityExcuses for Avoiding Code ReviewsEffort required to follow good coding practicesLack of consistency among code reviewersDeveloper does not have any peers who can review the codeTime involved in pre
17、paring for and performing a code reviewPreparing for a Code ReviewAdd descriptions and block diagram documentationEliminate performance issues and race conditionsUse programming style chosen by your organizationPreparation can be automated using VI AnalyzerEliminate as many problems as possible BEFO
18、RE the review!Choosing Your ReviewersReviews are most effective when both author and reviewers know LabVIEWBug fixes or minor changes Peer reviewNew application or features Manager reviewConducting a Code ReviewIs the code easy to maintain?What happens if the code returns an error?Is too much functi
19、onality located in a single VI?Have global or local variables been overused?Exercise 4-2: Code ReviewReview a code the implementation of a code module for the Theatre Light Control project.Exercise 4-2: Code ReviewIf you have assembled your own list of style and coding guidelines, you can use them i
20、n the place of the LabVIEW Style Checklist.What do we do with the information/corrections that we gather from the review?Post-Review TasksDocument any problems that were not fixed during the reviewCorrect these problems laterBug-tracking software is available online and in many project management to
21、olsFollow-up review after suggested changes have been implementedSummary QuizWhich of the following is the LabVIEW architect responsible for during development? (multiple answers)Designing the software architectureDeveloping application code modulesSelecting tools for automating common development t
22、asksOrganizing code reviewsSummary QuizWhich of the following is the LabVIEW architect responsible for during development? (multiple answers)Software architectureDeveloping application code modulesTools for automating common development tasksOrganizing code reviewsSummary QuizWhich of the following is an example of a task that
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 护理课件制作的个性化学习
- 2025年家庭桌游收纳盒DIY教程
- 护理安全警示教育:强化团队协作防范护理风险
- 2025年极限运动直播数据分析
- 复印设备制造工道德评优考核试卷含答案
- 吸音材料制造工岗前岗中实操考核试卷含答案
- 2026年新科教版高中高一生物下册第一单元细胞呼吸过程卷含答案
- 氟化稀土制备工成果转化评优考核试卷含答案
- 电动工具制造工安全生产规范评优考核试卷含答案
- 栓剂工操作评优考核试卷含答案
- 2026云南玉溪通海县供销合作社社有企业招聘4人考试参考题库及答案解析
- 五月志愿服务课件:青春建功新时代 志愿奉献谱华章
- 科学学习方法小学主题班会课件
- GB/T 17889.7-2026梯子第7部分:可分离式平台梯
- 2026年建安杯信息通信建设行业安全竞赛重点题库(新版)
- 智慧树知到《大学生劳动就业法律问题解读(华东理工大学)》2026章节测试附答案
- 中国电气装备集团笔试内容
- 2026齐商银校园招聘笔试参考题库及答案解析
- 广州医科大学《有机化学》2024 - 2025 学年第一学期期末试卷
- 2026年非金属矿山三级安全教育培训试题及答案
- 中国遗传咨询指南(2025版)
评论
0/150
提交评论