没有合适的资源?快使用搜索试试~ 我知道了~
首页labview_通信实现
统基于LabVIEW2010平台,设计了服务器端的应用程序和客户端程序,客户端只需安装通用的浏览器即可远程操作实现B/S模式的通信,也可以通过TCP/IP或DataSocket实现C/S模式的通信。服务器端通过串口与单片机实验板连接,由软件实现了数据的采集、传输和硬件设备的控制等功能,通过LabVIEW Web服务器发布网页,实现远程实验功能;或通过TCP/IP网络数据通道实现远程数据传输。系统综合应用TCP/IP技术、DataSocket技术、远程面板Web技术、虚拟仪器技术、视频监控技术、音频即时传输技术等,实现了实验设备的远程控制、实验现场的实时监测。
资源详情
资源评论
资源推荐

摘要
摘要
此课题以STC89C52单片机实验板为测控研究对象,对有关远程测控系统开关
量控制的网络模式、通信方式、虚拟仪器软件系统开发及视频监控、即使消息及会
话等方面进行了深入研究,并在此基础上开发了基于B/S模式及C/S模式远程测控实
验室系统。
系统基于LabVIEW2010平台,设计了服务器端的应用程序和客户端程序,客
户端只需安装通用的浏览器即可远程操作实现B/S模式的通信,也可以通过TCP/IP
或DataSocket实现C/S模式的通信。服务器端通过串口与单片机实验板连接,由软
件实现了数据的采集、传输和硬件设备的控制等功能,通过LabVIEW Web服务器
发布网页,实现远程实验功能;或通过TCP/IP网络数据通道实现远程数据传输。系
统综合应用TCP/IP技术、DataSocket技术、远程面板Web技术、虚拟仪器技术、视
频监控技术、音频即时传输技术等,实现了实验设备的远程控制、实验现场的实时
监测。
课题的实施,可使大学的实验教学方式更加灵活方便,远程教育的实验教学也
变为可能,提高了实验设备的利用率;学生也可获得真实的实验感受。
关键词:虚拟实验室 远程测控 Web服务器 TCP/IP LabVIEW

ABSTRACT
ABSTRACT
This MCU Board subject to STC89C52 study for the monitoring and control,
remote monitoring and control systems related to the network mode switching control,
communication, virtual instrument software development and video surveillance, even
if the news and in-depth sessions and other aspects of research, and in this developed on
the basis based on B / S model and C / S mode remote monitoring and control
laboratory system.
System is based on LabVIEW2010 platform, designed the application server and
client, the client only need to install universal remote operation of the browser to
achieve B / S mode of communication, or by TCP / IP or DataSocket achieve C / S
mode communication. Server through the serial port connection with the MCU Board,
by the software implementation of data collection, transmission and control of hardware
devices and other functions, publish web pages through the LabVIEW Web server,
remote test function; or through TCP / IP network data access remote data
transmission. Integrated application system TCP / IP technology, DataSocket
technology, remote panel Web technology, virtual instrument technology, video
surveillance technology, real-time audio transmission technology to achieve remote
control of laboratory equipment, laboratory on-site real-time monitoring.
The implementation project will enable the universities more flexible and
convenient experimental teaching methods, distance education, experimental teaching
has become possible to improve the utilization of laboratory equipment; students get
real experimental feel.
KEYWORDS:WebServer VirtualLab RemoteMonitoring&Controlling
LabVIEW TCP / IP

目录
目录
摘要..................................................................................................................................1
ABSTRACT....................................................................................................................2
目录..................................................................................................................................i
第一章 绪论....................................................................................................................1
1.1 虚拟仪器的基本结构................................................................................................1
1.2 虚拟仪器的网络与通信............................................................................................2
1.3 论文主要研究的内容................................................................................................7
第二章 系统总体设计方案的选择与建立....................................................................9
2.1 虚拟仪器的I/O接口设备概述及选择......................................................................9
2.2 虚拟仪器软件概述..................................................................................................12
2.2.1 虚拟仪器的通信软件结构...................................................................................12
2.2.2 虚拟仪器开发平台的选择...................................................................................14
2.3 通信网络模式的选择..............................................................................................16
2.3.1 C/S(Client/Server)模式.................................................................................16
2.3.2 B/S(Browser/Server)模式...................................................................................16
2.3.3 C/S模式和B/S模式的区别..................................................................................17
2.4 系统的总体设计方案..............................................................................................18
2.4.1 系统的总体结构...................................................................................................18
2.4.2 系统硬件的功能...................................................................................................18
2.4.3 系统软件的功能...................................................................................................18
第三章 下位机硬件组成及其软件..............................................................................21
3.1 单片机(下位机)硬件平台..................................................................................21
3.1.1 单片机实验板简介...............................................................................................21
3.1.2 温度采集电路.......................................................................................................21
3.1.3 通信接口电路.......................................................................................................22
3.2 交流负载控制模块的设计......................................................................................22
3.2.1 交流负载控制模块的设计原理...........................................................................22
3.2.2 光耦隔离器件的选型...........................................................................................23
3.2.3 双向可控硅的选型...............................................................................................24
i

目录
3.3 系统下位机应用软件的设计..................................................................................24
3.3.1 软件开发工具Keil uVision3简介.......................................................................24
3.3.2 系统下位机应用软件的具体设计.......................................................................25
3.3.3 下位机代码的调试运行与烧写...........................................................................26
第四章 LabVIEW通信功能函数概述........................................................................29
4.1 LabVIEW串口通信................................................................................................29
4.1.1 LabVIEW中的串口通信功能函数.....................................................................29
4.1.2 LabVIEW串口通信步骤.....................................................................................31
4.2 LabVIEW的TCP/IP通信......................................................................................33
4.2.1 TCP/IP概述.........................................................................................................33
4.2.2 LabVIEW中的TCP功能函数.............................................................................35
4.2.3 在LabVIEW中利用TCP/IP实现网络通信.......................................................41
4.3 LabVIEW的DataSocket通信................................................................................42
4.3.1 DataSocket技术概述...........................................................................................42
4.3.1.1 DataSocket Server Manager...........................................................................43
4.3.1.2 DataSocket Server............................................................................................44
4.3.1.3 DataSocket函数库............................................................................................45
4.3.2 LabVIEW中的DataSocket功能函数.................................................................46
4.3.3 在LabVIEW中利用DataSocket技术实现网络通信.........................................48
4.3.3.1 在LabVIEW中利用DataSocket技术实现网络通信实例一..........................49
4.3.3.2 在LabVIEW中利用DataSocket技术实现网络通信实例二..........................52
第五章 系统的具体实现方案与系统的运行测试......................................................55
5.1 基于C/S模式的GSM网络通信的实现方案..........................................................55
5.1.1 PC与GSM短信模块串口通信概述....................................................................55
5.1.2 PC与GSM短信模块串口通信硬件设计方案....................................................55
5.1.3 PC与GSM短信模块串口通信上位机软件设计方案........................................56
5.2 基于C/S模式的局域网聊天室的实现方案...........................................................58
5.2.1 基于C/S模式的局域网通信概述........................................................................59
5.2.2 TCP/IP实现局域网聊天的具体方案.................................................................59
5.2.3................................................................................................................................59
5.3 基于B/S模式的Web发布方式的实现方案............................................................59
5.3.1 系统上位机应用软件总体设计方案...................................................................59
ii

目录
5.3.2 上位机各软件模块的设计...................................................................................60
5.3.2.1 串口通信模块....................................................................................................60
5.3.2.2 参数设置模块....................................................................................................60
5.3.2.3 数据处理模块....................................................................................................61
5.3.2.4 视频监视模块....................................................................................................62
5.3.2.5 系统帮助模块....................................................................................................63
5.3.3 远程测控的网络配置...........................................................................................64
5.3.3.1 配置LabVIEW Web服务器.............................................................................64
5.3.3.2 配置Web发布工具HTML文件........................................................................65
5.3.4 系统的运行测试...................................................................................................66
5.3.4.1 服务器端系统测试............................................................................................66
5.3.4.2 远程客户端系统测试........................................................................................68
第六章 结论和展望......................................................................................................69
7.1 结论..........................................................................................................................69
7.2 展望..........................................................................................................................69
结束语............................................................................................................................71
参考文献........................................................................................................................73
附录................................................................................................................................75
附录A 下位机程序代码................................................................................................75
附录B 视频节点说明....................................................................................................82
iii
剩余63页未读,继续阅读


















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0