* LV的基本组成单位是VI,文件扩展名就是“.vi” 它的含义就是一个虚拟仪器,有前面板和组成框图。Icon/Connector Pane: 要使VI可以被调用,称为子VI,就需要产生一个该子VI的图标(Icon),就向一个元件或模块一样,对外有输入输出接口,或称为连接器(Connector). sub-vi: 子VI; terminal: 端口,指的是函数的输入输出接口。node:节点,表示一条路径上的各个子vi、函数等。 。 求总和(sigma)之前的子VI不需要,可能是版本的不同 * 簇控件:Error in 3D.ctl,包含三个元素:Boolean status, Code, Source。用捆绑(Bundle)或解除捆绑(unbundle)函数(即VI)来接触到簇中的成员。 应养成对程序做一些必要的说明文档的好习惯。对自已产生的子VI,可以为它产生一个简短的帮助文档(Context Help) 波形图是先将数据放在数组中,然后再进行绘制,非实时的。 * 放置探针在连线上时,会自动弹出一个“探针监视窗口”,观测连线在运行中的实时数据。 LabVIEW快速入门.pdf中的实例篇是关于myDAQ的应用,可以不用理会。 * Example –Add2_Nos.vi Construct a VI to add two nums. LabVIEW is graphical, so code is written graphically Step-wise procedure Step 1: Start LabVIEW Blank VI from “Getting Started” screen Step 2: On the Front Panel, add two “Numeric Controls” (inputs) and one “Numeric Indicator” (output) Step 3: Name them x, y and x+y Example –Add2_Nos.vi * Step 4: Switch to the Block Diagram –note the inputs and outputs (same names as Front Panel) Step 5: Right-click on the Block Diagram and choose Add? underNumeric Palette -- drag and drop on the Block Diagram Step 6: Connect the inputs and outputs using the mouse for wiring Example –Add2_Nos.vi (cont.) * Step 7: Save the VI as Add2_Nos.vi Step 8: Modify the icon (top right corner) by right clicking on the icon and choosing Edit icon Step 9: After editing the icon, right click on the icon again and choose Show connector and connect the inputs and output appropriately. Example –Add2_Nos.vi (cont.) * The final VI should look like this To run the VI enter x and y values in the Front Panel Click the icon in the top left corner of the Front Panel Example –Add2_Nos.vi (cont.) * Programming Structures can be found in Structures in the Programming Palette, by right clicking on the Block Diagram LabVIEW supports structures: If / Else For loop While loop * If / Else LabVIEW is graphical, so code of the form below is written graphically Example: Create a VI to add 5 to a number if it is greater than 10, el
您可能关注的文档
最近下载
- 计算材料学课件:能带计算.ppt VIP
- 在线网课学堂《心理统计》单元考核测试答案.pdf VIP
- 《手术烟雾安全指南(2022版)》解读.pdf VIP
- 2024-2025学年扬州八年级数学下学期第一次月考卷【测试范围:苏科版八年级下册第七章-第九章】(全解全析).pdf VIP
- 世界贸易组织WTO规则课件(1-5).ppt VIP
- (六个对照)加强理论武装、执行上级组织决定、严格组织生活、加强党员管理监督、做好群众工作、抓好自身建设党支部2025年度组织生活会班子对照检查材料.docx VIP
- 2025年咸阳职业技术学院高职单招职业技能考试题库完整版带答案解析.docx VIP
- 光纤通信系统 第4版 习题及答案 沈建华 第1--4章.pdf
- 建筑施工测量培训课件.ppt VIP
- CNAS管理评审报告.docx VIP
原创力文档

文档评论(0)