LabVIEW基础教程(NI官方教程基于LV8.0)
LabVIEW基础教程(一)目录
学员指南
A. 关于本手册..............................................................................................................................................................vii
B. 学习本教程前的准备工作................................................................................................................................viii
C. 安装教程软件.........................................................................................................................................................ix
D. 教程目标...................................................................................................................................................................ix
E. 教程的行文规范....................................................................................................................................................ix
第1 课
设计解决方案
A. 软件开发规范.........................................................................................................................................................1-2
B. 问题描述...................................................................................................................................................................1-2
C. 设计.............................................................................................................................................................................1-2
D. 实现.............................................................................................................................................................................1-5
E. 测试.............................................................................................................................................................................1-6
F. 维护.............................................................................................................................................................................1-6
练习 1-1 软件开发规范 ......................................................................................................................................1-7
G. 教程项目...................................................................................................................................................................1-9
第2 课
LabVIEW 导航
A. 虚拟仪器(VI) ..........................................................................................................................................................2-2
B. VI 的组成部分.........................................................................................................................................................2-2
C. 启动VI........................................................................................................................................................................2-4
D. 项目浏览器..............................................................................................................................................................2-7
E. 前面板窗口..............................................................................................................................................................2-10
F. 程序框图窗口.........................................................................................................................................................2-16
练习 2-1 概念:浏览VI .......................................................................................................................................2-23
G. 搜索控件、VI 和函数........................................................................................................................................2-24
练习 2-2 概念:浏览选板 .................................................................................................................................2-26
H. 选择工具...................................................................................................................................................................2-27
练习 2-3 概念:选择工具 .................................................................................................................................2-33
I. 数据流........................................................................................................................................................................2-36
练习 2-4 概念:数据流 ......................................................................................................................................2-37
J. 创建一个简单的VI...............................................................................................................................................2-38
练习 2-5 Simple AAP VI .......................................................................................................................................2-41
第3 课
疑难解答和调试VI
A. LabVIEW 帮助工具..............................................................................................................................................3-2
练习 3-1 概念:帮助指南 .................................................................................................................................3-5
B. 纠正断开的VI.........................................................................................................................................................3-8
C. 调试技术...................................................................................................................................................................3-9
D. 未定义或不可预期数据.....................................................................................................................................3-13
E. 错误检查和处理....................................................................................................................................................3-14
练习 3-2 概念:调试 ............................................................................................................................................3-16
第4 课
实现VI
A. 设计前面板窗口....................................................................................................................................................4-2
B. LabVIEW 数据类型..............................................................................................................................................4-7
C. 为代码添加说明信息..........................................................................................................................................4-13
练习 4-1 Determine Warnings VI ...................................................................................................................4-15
D. While 循环................................................................................................................................................................4-21
练习 4-2 Auto Match VI.......................................................................................................................................4-24
E. For 循环......................................................................................................................................................................4-29
练习 4-3 概念:While 循环与For 循环对比 ...........................................................................................4-32
F. 为VI 设置定时.......................................................................................................................................................4-34
G. 迭代数据传递.........................................................................................................................................................4-34
练习 4-4 Average Temperature VI ...............................................................................................................4-37
H. 数据绘图...................................................................................................................................................................4-40
练习 4-5 Temperature Multiplot VI ................................................................................................................4-45
I. 条件结构...................................................................................................................................................................4-48
练习 4-6 Determine Warnings VI ...................................................................................................................4-53
J. 公式节点...................................................................................................................................................................4-58
练习 4-7 自学:Square Root VI ......................................................................................................................4-59
练习 4-8 自学:Determine Warnings VI (挑战) ...............................................................................4-62
练习 4-9 自学:Determine Warnings VI (挑战) ...............................................................................4-65
第5 课
相关数据
A. 数组.............................................................................................................................................................................5-2
练习 5-1 概念:操作数组 .................................................................................................................................5-7
B. 簇..................................................................................................................................................................................5-13
练习 5-2 概念:簇 .................................................................................................................................................5-18
C. 自定义类型..............................................................................................................................................................5-22
练习 5-3 自定义类型 ............................................................................................................................................5-25
第6 课
存储测量数据
A. 理解文件I/O...........................................................................................................................................................6-2
B. 理解高层文件I/O.................................................................................................................................................6-3
练习 6-1 Spreadsheet Example VI ................................................................................................................6-4
C. 底层文件I/O...........................................................................................................................................................6-7
练习 6-2 Temperature Log VI...........................................................................................................................6-9
练习 6-3 自学:Read VCard VI......................................................................................................................6-11
第7 课
开发模块化应用程序
A. 理解模块化..............................................................................................................................................................7-2
B. 创建图标和连线板...............................................................................................................................................7-3
C. 使用子VI...................................................................................................................................................................7-7
练习 7-1 Determine Warnings VI ...................................................................................................................7-9
第8 课
数据采集
A. 使用硬件...................................................................................................................................................................8-2
B. 与硬件通信..............................................................................................................................................................8-4
C. 模拟一个DAQ 设备............................................................................................................................................8-6
练习 8-1 概念:MAX.............................................................................................................................................8-7
D. 测量模拟输入.........................................................................................................................................................8-12
练习 8-2 触发的模拟输入 VI .............................................................................................................................8-14
E. 产生模拟输出.........................................................................................................................................................8-18
F. 使用计数器..............................................................................................................................................................8-19
练习 8-3 事件计数 VI ...........................................................................................................................................8-20
G. 使用数字I/O...........................................................................................................................................................8-23
练习 8-4 可选:数字计数 VI ............................................................................................................................8-24
第9 课
仪器控制
A. 使用仪器控制.........................................................................................................................................................9-2
B. 使用GPIB..................................................................................................................................................................9-2
C. 使用串口通信.........................................................................................................................................................9-3
D. 使用其它接口.........................................................................................................................................................9-5
E. 软件架构...................................................................................................................................................................9-5
练习 9-1 概念:用MAX 配置GPIB ..............................................................................................................9-7
F. 使用仪器I/O 助手................................................................................................................................................9-9
练习 9-2 概念:仪器I/O 助手 ........................................................................................................................9-10
G. 使用VISA ..................................................................................................................................................................9-16
练习 9-3 VISA 写入 & 读取 VI ..........................................................................................................................9-18
H. 使用仪器驱动程序...............................................................................................................................................9-21
练习 9-4 概念:NI Devsim VI............................................................................................................................9-23
第10 课
常用设计技巧和设计模型
A. 使用顺序编程.........................................................................................................................................................10-2
B. 使用状态编程.........................................................................................................................................................10-4
C. 状态机........................................................................................................................................................................10-5
练习 10-1 State Machine VI ................................................................................................................................10-13
D. 使用并行机制.........................................................................................................................................................10-19
附录 A
分析和处理数值数据
A. 选择分析的正确方法..........................................................................................................................................A-2
B. 分析类别...................................................................................................................................................................A-3
练习 A-1 概念:分析类型 .................................................................................................................................A-5
附录 B
测量基础
A. 使用基于计算机的测量系统...........................................................................................................................B-2
B. 理解测量概念.........................................................................................................................................................B-3
C. 提高测量质量.........................................................................................................................................................B-10
练习 B-1 理论:测量基础 .................................................................................................................................B-14
附录 C
CAN:控制器局域网
A. CAN 的发展历史...................................................................................................................................................C-2
B. CAN 基础..................................................................................................................................................................C-3
练习 C-1 概念:CAN 设备配置 ......................................................................................................................C-6
C. 通道配置...................................................................................................................................................................C-8
练习 C-2 通道配置 .................................................................................................................................................C-11
D. CAN API.....................................................................................................................................................................C-15
E. LabVIEW 中的CAN 编程(通道API).....................................................................................................C-16
练习 C-3 读写CAN 通道 ....................................................................................................................................C-19
练习 C-4 同步CAN 和DAQ..............................................................................................................................C-23
附录 D
补充信息与资源
索引
课程评价
链接: https://pan.baidu.com/s/1ZF_zizRUEl02eX2kJDctgw 提取码: **** Hidden Message ***** 复制这段内容后打开百度网盘手机App,操作更方便哦 谢谢分享 特价工业相机、机器视觉光源、工业镜头、机器视觉教程,就到机器视觉商城https://shop128020756.taobao.com !!!!!!!!!!!!!!!!!!!!!!11 :lol基础教程好啊啊 大大大大大大大大大大大大
谢谢 楼主 真实用 可以看一看,楼主 LabVIEW官方基础教程(LV8.0)支持石鑫华视觉
谢谢,好东西啊!
支持石鑫华视觉,支持机器视觉论坛! 谢谢分享,好资料!