1、(用外文写)外文出处:资料1:Virtual instrument based on serial communication and data acquisition system of management . 资料2:LabVIEW serial communication based on Frequency Control Monitoring System 附 件: 资料1:1.翻译译文;2.外文原文。 资料2:1.翻译译文;2.外文原文。附件:资料1翻译译文在自动化控制和智能仪器仪表中, 单片机的应用越来越广泛, 由于单片机的运算功能较差, 往往需要借助计算机系统, 因此单片机和
2、 PC机进行远程通信更具有实际意义, 通信的关键在于互传数据信息。51系列单片机内部的串行口具有通信的功能,该串行口可以作为通信接口, 利用该串行口与 PC机的串行口 COM 1或 COM 2进行串行通信, 将单片机采集的数据传送到 PC机中, 由 PC机的高级语言或数据库语言对数据进行整理及统计等复杂处理就能满足实际的应用需要。软件设计,初始化后,打开数据通道对上下游信号进行采样,并进行相关运算,求峰值R,对R.二是否峰值进行判断,以确保正确求出延时r,从而得出正确的流量。由于一次相关计算所需时间很短,因此,采用计数器控制。PC机和单片机在进行通信时, 首先分别对各自的串行口进行初始化、 确
3、定串行口工作方式、 设定波特率、 传输数据长度等, 然后才开始数据传输, 这些工作是由软件来完成的, 因此对 PC机和单片机均需设计相应的通信软件。DOS环境下, 串行通信一般用中断方式来实现,用户对通信端口进行完全控制。而在 W i ndow s环境下, 系统禁止应用程序直接对硬件进行操作。在W indows环境下提供了完备的 AP I应用程序接口函数, 程序员通过这些函数与通信硬件接口。通信函数是中断驱动的: 发送数据时, 先将其放入缓存区,串口准备好后, 就将其发送出去; 传来的数据迅速申请中断, 使 W i ndow s接收它并将其存入缓冲区, 以供读取。接收方式主要有查询和中断方式。
4、采用查询方式时, CPU要不断测试串口是否有数据,以防接收串口数据时出现错误、 效率低; 而采用中断方式则无需测试串口, 一旦有数据传至, CPU终止当前任务,由中断服务程序完成操作。因此, 中断方式具有效率高、 接收准确、 编程简单等特点。在工业通信及控制领域, 特别是分布式的控制系统中, 常常需要在各设备之间交换和共享数据, 而且对于数据交换的实时性 可靠性要求很高 在这种情况下, 现场总线应运而生了 现场总线由于其良好的实时性 开放性以及工业针对性强的特点, 在工业领域得到了长足的运用和发展 可以说, 现场总线在工业领域正发挥着不可或缺的重要作用。在 PLC 系统的应用中, 经常需要将多
5、台 PLC连成一个网络, 其中每台 PLC 可以实时地获知网络中其它任何一台 PLC 的特定信息, 从而达到整个网络上的数据同步, 实现联动控制;同时在性能上要求良好的实时性和可靠性 而且, 在很多情况下, 通信的开销也不能太高 因此, 怎样以较低的开销, 较好地实现设备间的数据同步功能, 在PLC 及其他工业通信产品的开发中具有很积极的意义。模拟系统需要尽量对指控计算机的各个分系统进行逼真的模拟, 不仅要实时响应指控计算机的请求, 及时回送符合要求的报文,正确监测通信的时序,检测传输过程中的 CRC 校验错, 还需要严格控制通信的误码率, 具有良好的人机界面。鉴于此,模拟系统采用了硬件智能板
6、设计结合软件优化设计的思想, 设计了满足要求的智能高速通信板, 然后在此基础上再开发具有良好用户界面的驱动控制软件。固件程序的主要功能包括自检及初始化通信板器件、提供上层驱动软件接口、 监测双口存储器中标志字节请求、 根据请求完成数据传送、 判断数据传输状态并进行相应处理、 硬件断处理等。固化程序主体可分为自检、初始化、程序主流程、中断处理等几部分。为使系统在某些恶劣环境下也能可靠工作, 满足对信息传输的实时性、 高可靠、 安全性的要求, 在通道的硬件设计上采取了一系列必要的措施,并在固件中作了处理。其中包括超时计时器的设置和通道故障报警等。传统仪器面板上的器件都是实物,而且是用手动和触摸进行
7、操作的,而虚拟仪器面板控件是外形与实物相像的图标,通、断、放大等对应着相应的软件程序. 这些软件已经设计好了,用户不必设计,只需选用代表该种软件程序的图形控件即可,由计算机的鼠标来对其进行操作. 因此,设计虚拟面板的过程就是在面板设计窗口中摆放所需的控件,然后编写相应的程序. 大多数初学者可以学习利用虚拟仪器的软件开发工具,例如LabWindows/CVI、LabVIEW 等编程语言,在短时间内轻松完成美观又实用的虚拟仪器面附件:资料1外文原文(可以用复印件)In automatic control and intelligent instrumentation, the MCU should
8、 more and more widely used, due to poor function of the microcontroller operation is often required to the use of computer systems, remote microcontroller and PC,more meaningful communication, communication is the key to each data channel transmission information. 51 computers with the internal seri
9、al port communications features.The serial port can serve as a communication interface with the PC using the serial port serial port COM 1 or COM 2 serial communication, the monolithic can gather data to the PC machine, the PC, high-level language or database language for data compilation and statis
10、tical processing to the complex to meet the needs of practical application.Software Design,after initialization, open the data channel on the upstream and downstream signals are sampled.And associated operations, find the peak R , on whether the peak for the second sentence R.Off, find the delay to
11、ensure the correct r, to arrive at the correct flow. As A very short time the relevant calculation, therefore, the use of the counter control.Communication during PC, and SCM, the first for their respectiveInitialize the serial port, serial port work to determine and set waves special rate, transmis
12、sion of data length, and then began to data transmission, these work is done by software, so the PC, and microcontroller need to design appropriate communication software.DOS environment, the serial communication interrupt mode generally used to achieve.Users complete control of the communication po
13、rt. In the W i ndow s environment the system prohibits the application directly on the hardware to operate. In w indows in the provision of a complete application program interface functions AP I number of these functions by the programmer hardware interface and communications. Communication letter
14、number is interrupt-driven: to send data, first put it in cache serial ready, it will be sent; application data from the rapid please interrupt, so that W i ndow s receive it and store them in buffer for read. The main methods of inquiry and received interrupt. Using query mode, CPU to constantly te
15、st the serial port for data, to prevent receiver serial data errors and low efficiency; and no use of interrupt need to test the serial port, once the data is transmitted, CPU terminates the current task complete the operation by the interrupt service routine. Therefore, an effective interrupt rate,
16、 to receive accurate, programming and simple.Communication and control in industrial fields, particularly in distributed control system of systems, often require different equipment in the exchange and sharing between the number ofIt is, but also for the reliability of real-time data exchange arehig
17、h in this case ,the field bus came into the scene bus due to its good real-time for open and industrial strong features in the industry have seen significant use and development fair to say, fieldbus is playing in the industrial field is not indispensable role.In the PLC system applications, often n
18、eed more than one PLCconnected into a network, each of them in real time by the Knowledge network PLC network in any other specific information of a PLC to achieve the whole data synchronization on a network, to achieve joint control; while in the performance on the requirements of a good time and r
19、eliability and, in many circumstances case, the communication overhead can not be too high, therefore, how to overhead,achieve better synchronization of data between devices in PLC and other industrial communication products that have very positive. Analog systems require as much as possible the var
20、ious subsystems of the alleged conduct realistic computer simulation, real-time response to allegations of not only the computers request, sent back in time to meet request packet, the correct timing to monitor communications, detection of CRC in the school transfer process test wrong, but also the
21、need for strict control of communication error rate has a good user interface.In view of this, the simulation system uses a combination of hardware, software optimization Intelligent design.The idea of intelligent design to meet the requirements of high-speed communication board, and on this basis f
22、urther development of good user interface drive control software.The main features include firmware and initialize the communication board self-test devices, to mention software interface for the upper drive, monitor flag byte dual-port memory request, according to data transfer request is completed
23、 to determine the state and the corresponding data processing hardware interrupt processing. Body can be divided into self-curing process, the initialization, the program mainstream process, interrupt handling and other parts. To make the system in some harsh environments can be by working to meet t
24、he real-time transmission of information, high reliability, safety requirements.Hardware design of the channel a series of necessary measures taken, and the firmware for the treatment. Including time-out timer settings and channel failure alarm.Traditional instruments are physical devices on the pan
25、el, and is operated by hand and touch, and virtual instrument surface board control is similar to the icon with the physical appearance, pass, off, zoom, etc. correspond to the appropriate software program. The software has been good design, users do not design, just use software program that repres
26、ents the kind of graphical controls can be, by the computer mouse scale to its operations. Therefore the process of designing the virtual panel is placed in the panel needed to design window controls.Then write the appropriate programs. most beginners can learn to use virtual instrument software dev
27、elopment tools, such as LabVIEW and other programming languages easily completed in a short time beautiful and practical surface of the virtual instrument.附件:资料2翻译译文如何将硬件软件化,软件通用化成为虚拟采集系统的研究热点。本课题以串行虚拟采集系统为研究对象,设计了一个硬件成本低,软件功能强的虚拟采集系统。本文首先在介绍虚拟仪器和采集系统发展的基础上,对采集系统的原理进行分析,研制了一个随着计算机软硬件技术的发展,虚拟仪器技术被广泛地
28、应用到数据采集系统,16位精度的RS232数据采集卡。在LabVIEW软件环境下,建立了串行虚拟数据采集系统。随后剖析软件结构,结合组件技术,提出测量功能组件的思想,重点阐述了串口通信、测量功能组件和数据管理模块的实现。最后利用abV工Ew的菜单和Queue技术实现系统的集成。数据记录、 存储模块.数据记录存储模块实现试验数据的记录保存,便于后期分析和历史数据的积累。LabVIEW 提供了很多数据存储的方法,本文采用的是 Excel 表格记录存储数据。数据存储和数据采集及实时显示所需要的采用频率有很大不同。数据的采集和实时显示所需的采样频率很高,若数据存储模块也采用这样的采样频率会产生大量的冗
29、余数据,这些数据将占用大量的硬盘空间,需要采用降低采样频率的方法过滤掉冗余数据,减少存储空间。为此,将采集模块得到的数据设定两个不同的数据流动路线:一路不降低采样频率, 送给实时数据显示程序;一路用抽取一维数组的方法降低采用频率,组成新的数组写入磁盘保存.数据分析处理主要包括:数据的转化及显示、 数据分析、 图形化处理等. 检测系统的硬件组成有多种形式,比较典型的有传感器和变换器、 信号调理盒、 数据采集卡、 计算机。本文采用的硬件组成包括传感器、 智能仪表、 数据转换器. 智能仪表又称测量控制仪集成了信号调理盒、 数据采集卡的功能,能够实现信号的测量、 变换、 显示、 传送、 记录和控制;数
30、据转换器实现不同类型信号的转换. 检测系统一般包括传感器系统,数据采集、 处理、 分析系统。传感器系统将被检信号(压力、 流量、 速度、 温度、振动、 噪声等物理量)转化为电信号(电压值或电流值) ,数据采集、 处理、 分析系统将电信号进行处理分析,最终完成数据的显示、 存储、 打印、 传送等。虚拟仪器技术的核心思想是软件就是仪器。它利用计算机作为一个控制和数据处理中心,使传统仪器的部分硬件被软件代替,用户可以通过仅修改软件就能改变仪器功能。因此在虚拟测量系统中,软件功能强化后,其硬件主要根据信号类型,实现信号的采集功能。而现在的任何一代仪器,其采集功能都具备,有些仪器还具备高速、高精度等特点
31、,同时还留有通用的串行通信。因此本文在硬件上选用串行数据采集系统为研究对象,以硬件和软件两条主线,并在虚拟仪器的思想指导下,对采集系统的软件可重组性、数据管理等方面展开研究。在分析硬件各组成部分的功能及关键技术后,设计实现了高精度的串行RS232数据采集。在软件上,先分析虚拟仪器采集体系结构,在选择适合的虚拟软件环境后讨论了采集卡驱动程序实现的方法,实现串口采集卡的通信。在分析ADO数据库访问技术后,针对LabV工EW提出用LabSQL实现大信息量的存储和管理,实现信息的查询、删除等功能。研究组件技术和秦氏智能控件模型,提出测量功能组件的思想,并应用到设计的虚拟RS232采集系统中,将各测量功
32、能组件化,实现软件的可重新组合,拓宽了设计的测量系统的应用范围。同时利用LabV工EW的的运行技术,实现测量功能组件的集成,这是本文的创新之处。附件:资料2外文原文(可以用复印件)With the development of computer hardware and software technologies, virtual instrumentation technology is widely applied to the data acquisition system,How to hardware and software, software as a virtual unive
33、rsal collection system research focus. The topics to serial acquisition system for the study of virtual design a low cost of hardware, software features powerful virtual collection system. This article first describes the development of virtual instrument and acquisition system based on the principl
34、e of the acquisition system for analysis, developed a 16-bit precision of the RS232 data acquisition card. In the LabVIEW software environment, the establishment of a virtual serial data acquisition system. Subsequent analysis of software architecture, combined with component technology, the idea pr
35、oposed by measuring the functional components and focuses on serial communication, measuring functional components and data management module implementation. Finally abV menu and Queue work Ew technology systems integration.Data recording, storage modules. data records of test data storage module fo
36、r record keeping to facilitate later analysis and the accumulation of historical data. LabVIEW provides a lot of data storage methods, this paper is Excel table to store data records.Data storage and data acquisition and real-time display with the required frequency.are very different. Data acquisit
37、ion and real-time display the required sampling frequency is high, if the data storage module also used this sampling frequency will produce a large number of redundant data, which will take up a lot of hard disk space, need to adopt lowerlow sampling frequency, methods to filter out redundant data,
38、 reduce storage space. As this will be the data acquisition module to set two different data flows Way Line: not all the way to reduce the sampling frequency.Give real-time data display program; all the way with extracted one-dimensional array of ways to reduce with the frequency, form a new array i
39、s written to disk Save. Data analysis include: data conversion and display, data points analysis, graphics processing, etc. Detection system composed of many forms of hardware, typically a sensor devices and converters, signal conditioning box, data acquisition card, the computer. The research is th
40、e hardware used consists of sensors, intelligent instrumentation data converters. Intelligent Instrumentation also known as the integrated measurement and control instrument signal modulation.Case management, data acquisition card functions, can realize the signal measurements, transformation were d
41、isplay, transmit, record and control; data converters to achieve different types of signal conversion. Detection systems typically include sensor systems, data acquisition, processing, analysis system. Sensor system will be seized signals (pressure, flow, speed, temperature,Vibration, noise and othe
42、r physical quantities) into electrical signals (voltage or current value), data acquisition, processing, analysis, processing and analysis system will signal the end to complete the data display, storage, printing, transmission and so on.The core idea of virtual instrumentation is software is the in
43、strument. It uses the computer as a control and dataTreatment center, part of the traditional instruments by the software instead of hardware, the user can modify the software can be changed by only Instrument function. Therefore, the virtual measurement system, the software functions strengthened,
44、mainly based on signal type of its hardware, real is the signal acquisition. Now, any generation of instruments, the collection features are available, some instruments also have high speed, precision and other characteristics, but also left universal serial communication. This article used in the h
45、ardware serial data mining Collection system as the research object to the two main lines of hardware and software, and the idea of virtual instruments under the guidance of the acquisition system.Reconfigurable software systems data management, and start the study specifically as follows.In the ana
46、lysis of the function of the hardware components and key technology designed and implemented a high-precision serial RS232data acquisition. In software, the first virtual instrument collection of architecture, the choice of the virtual software environment for post-discussed the capture card driver
47、to implement the method of communication to achieve serial acquisition card. In the analysis of ADO database access technology, working for LabVIEW realize large amount of information presented by LabSQL storage and management, the information query, delete and so on. Of component technology and Qin
48、 intelligent control model, the ideological measure the functional components and applied to set virtual RS232 meter collection system, the functional components of each measure, realize the software can be re-combination, widened measurement system design applications. LabVIEW while taking advantage of the operation of technology, integration of functional components measured, it is the innovation of this article.忽略此处. .
版权声明:以上文章中所选用的图片及文字来源于网络以及用户投稿,由于未联系到知识产权人或未发现有关知识产权的登记,如有知识产权人并不愿意我们使用,如有侵权请立即联系:2622162128@qq.com ,我们立即下架或删除。
Copyright© 2022-2024 www.wodocx.com ,All Rights Reserved |陕ICP备19002583号-1
陕公网安备 61072602000132号 违法和不良信息举报:0916-4228922