【正文】
壞。在硬件焊接部分檢測(cè)結(jié)束以后,可將單片機(jī)內(nèi)燒錄一些小程序,以檢驗(yàn)單片機(jī)及其他的元件是否正常工作。軟件調(diào)試過程中, KEIL調(diào)試輸出窗口排除錯(cuò)誤以后,將程序燒錄入單片機(jī)中,和上位機(jī)正確連接后,測(cè)試程序是否能正常運(yùn)行,若程序正常運(yùn)行,則表明程序基本可以運(yùn)行正常??? 結(jié)針對(duì)現(xiàn)有的測(cè)控儀器產(chǎn)品更新?lián)Q代的速度太快,彼此之間的兼容性差,難以滿足不同層次用戶和不斷變化的要求。本文利用現(xiàn)有的計(jì)算機(jī),加上適當(dāng)設(shè)計(jì)的儀器硬件和應(yīng)用軟件LabVIEW構(gòu)成了基于LabVIEW的智能溫度測(cè)控儀表,使其既具有傳統(tǒng)儀器的基本功能,又能讓用戶根據(jù)自己的需求變化隨時(shí)定義,實(shí)現(xiàn)多種多樣的應(yīng)用要求?;谔摂M儀器的智能溫度測(cè)控儀表不但靈活可變、功能強(qiáng)大,而且使用方便,便于技術(shù)升級(jí)更新,系統(tǒng)的使用維護(hù)費(fèi)用極低,同時(shí)具有極高的可靠性,該系統(tǒng)通過單片機(jī)對(duì)現(xiàn)場(chǎng)的溫度進(jìn)行實(shí)時(shí)采集,并由開發(fā)的軟件平臺(tái)對(duì)采集的信號(hào)進(jìn)行分析與處理,使當(dāng)前溫度值逼近設(shè)定值,從而實(shí)現(xiàn)溫度的實(shí)時(shí)控制。同時(shí)將采集的數(shù)據(jù)存儲(chǔ)到數(shù)據(jù)庫中,以備系統(tǒng)運(yùn)行時(shí)隨時(shí)查閱和分析。在課題的研究試驗(yàn)過程中,主要工作如下:實(shí)現(xiàn)了單片機(jī)與PC機(jī)通過USB的串口通信,能夠及時(shí)的將溫度數(shù)據(jù)傳送給上位PC機(jī)。通過上位機(jī)軟件實(shí)現(xiàn)實(shí)時(shí)溫度報(bào)警功能。充分利用了LabVIEW語言的優(yōu)點(diǎn),在開發(fā)檢測(cè)系統(tǒng)的同時(shí),設(shè)計(jì)了易于操作的菜單界面,可操作性好,界面友好。經(jīng)過自己的努力和老師、同學(xué)們的幫助,本設(shè)計(jì)基本實(shí)現(xiàn)了課題提出的要求,但是還有許多的地方需要完善。首先溫度傳感器的抗干擾性不是很好,溫度測(cè)量有一定誤差;其次,溫度的檢測(cè)速度較慢,溫度檢測(cè)精度高,實(shí)時(shí)性有待改進(jìn)。經(jīng)過這次實(shí)踐,我認(rèn)識(shí)到了自己在這方面還需要更多的學(xué)習(xí)和操作,我要靠自己的努力,慢慢完善這個(gè)設(shè)計(jì),爭取真正的達(dá)到工控儀表的設(shè)計(jì)要求。致 謝本次設(shè)計(jì)及學(xué)位論文實(shí)在我的導(dǎo)師耿欣老師的親切關(guān)懷和悉心指導(dǎo)下完成的,這個(gè)設(shè)計(jì)在實(shí)現(xiàn)的過程中我遇到了很多瓶頸,都是在耿欣老師的悉心指導(dǎo)下完成的。老師不但幫助我突破了設(shè)計(jì)上的一個(gè)又一個(gè)瓶頸,而且還幫助我查找資料讓我參考,我之所以能完成這個(gè)設(shè)計(jì)課題,和老師的幫助是分不開的。在此謹(jǐn)向耿老師致以最誠摯的謝意和最崇高的敬意。這里我還要感謝在一起度過畢業(yè)設(shè)計(jì)階段的論文小組的同學(xué)們,正是有你們的幫助和支持,我才能克服一個(gè)又一個(gè)的困難和疑惑,直至本文的順利完成。在論文完成之際,我的心情無法平靜,從開始進(jìn)入課題到論文的順利完成,有許多的老師、同學(xué)、朋友們給了我?guī)椭?,在這里請(qǐng)接受我誠摯的謝意!最后我還要感謝培養(yǎng)我長大的含辛茹苦的父母,謝謝你們!祝愿我的母校,沈陽理工大學(xué)應(yīng)用技術(shù)學(xué)院,能夠越來越輝煌!參 考 文 獻(xiàn)[1] ,1999(4):69[2] :電子工業(yè)出版社,2002:1213[3] 劉君華,:西安電子科技大學(xué)出版社,2001:2122[4] 胡曉軍,張愛成,USB接口開發(fā)技術(shù)[M],西安電子科技大學(xué)出版社,2005:282291[5] 「D」,2004,107期[6] (第2版)[M].北京:電子工業(yè)出版社,2005:88120.[7] 使用NIVISA軟件控制USB設(shè)備,2011:17[8] 孫煥銘,趙會(huì)成等. ,2010:15[9] ,[10] ,2007:13[11] ,2002[12] ,2009:512[13] ,2010:512,3335附錄A 英文原文A Serial port is a very general puter equipment munication protocol (don39。t and Universal Serial Bus Universal Serial Bus or USB confusion). Most puter contains two based on RS232 serial port. A serial port is also instrumentation equipment general munication protocol, many GPIB patible devices with RS232 also mouth. At the same time serial munication protocol can also be used to obtain the remote data acquisition device.The concept of serial munication is very simple, according to a serial port (bit) send and receive bytes. Although than in bytes (an uploaded file parallel munication is slow, but in the use of a serial port can send data line at the same time with the other one line receive data. It is simple and can realize the long distance munication. For example IEEE488 definition parallel state of traffic, regulation line equipment shall not exceed the total often 20 meters and between any two of the length of the equipment is no more than 2 meters, and for a serial port is concerned, length up to 1200 m.Typically, a serial port for ASCII characters transmission. Communication using the 3 line plete: (1) ground lead, (2) to send, (3) to receive. Because is asynchronous serial munication, port can in a root to send data and online in another root online receive data. Other lines used to shake hands, but not a must. The most important parameters of serial munication is baud rate, data bits, and stop bits and parity. For two for popular port, these parameters must match:1, baud rate, this is a measure of the parameters of the munications speed. It says every second of the number of bit transmission. For example 300 potter says send 300 bit every second. When we talk about the clock cycle, we means baud rate for example if agreement need 4800 baud rate so clock is 4800 Hz. This means that in the serial munication data sampling rate for 4800 Hz. Usually telephone line of baud rate for 14400288 and 36600. Baud rate can be far greater than the value, but baud rate and is inversely proportional to the distance. High baud rate often used in place of very near the munications between the instrument, a typical example is GPIB equipment munications.2, data bits, it is the measure of the actual data munication a parameter. When the puter sends a packet, the actual data won39。t be eight, standard value is 5, 7 and 8 bits. Depends on how to set up the transfer of information you want. For example, the standard ASCII is 0 ~ 127 (seven). Extended ASCII is 0 ~ 255 (eight). If the data using the simple text (standard ASCII), so each packet use seven data. Each packet is refers to a byte, including start/stop bits, data and a parity. Because the actual data depends on the selection of a munication protocol, the term bag refers to any munication.3 and stop bits, used to say the latest in a single package. The typical value is 1, and two. Since the data is in the timing on a transmission line, and each device has its own clock, probably in the munication between two sets of equipment in the small synchronization. So stop bit is not just said the end of the transmission, and provide the opportunity to the clock synchronization puter correction. Apply to stop bits of digits, the more different the clock synchronization of tolerance, the bigger the data transfer rate but also more slowly.4, parity in serial munication of detection of a simple way wrong. There are four kinds of inspection wrong way: accidentally, strange, high and low. Of course no parity can too. For I and calibration of strange situation, serial ports will set parity (data bits of behind a), with a value to ensure that the data have accidentally or a logic39。s high. For example, if the data is 011, and so to the parity checking, parity for 0, ensure the logic high is even digits. If be odd check, check digit a 1, so there39。ll be 3 logical high. High and low not the real inspection data, buy a simple logic high or low logic calibration. This makes the receiving equipment can know a bit of the state, have a chance to evaluate whether noise or whether the munication transmit and receive data is not synchronized.RS232 (ANSI/EIA232 standard) is IBMPC patibles and the serial connection standard. Can be used for many purposes, such as connection the mouse, printers, or Modem, at the same time it can meet industrial instrumentation. Used to drive and the attachment to improve practical application RS232 transmis