【正文】
摘 要隨著測控技術的研究與發(fā)展,測控技術正在向著自動化,智能化,數(shù)字化和網(wǎng)絡化的方向發(fā)展。美國NI公司提出了“軟件就是儀器”的概念,所以LabVIEW應運而生。LabVIEW是一種業(yè)界標準圖形化編程工具,主要用于開發(fā)測試,測量和控制系統(tǒng)。由于LabVIEW可以用來創(chuàng)建一個通用的應用程序,它被稱為一種通用的編程語言。但是它在測試、測量和自動化等領域有更大的優(yōu)勢,因為LabVIEW提供了大量的工具和功能的數(shù)據(jù)采集、分析、顯示和儲存。檢測指標進行實時檢測體溫在日常生活中常見的溫度是必要的,傳統(tǒng)的溫度計的溫度測量和閱讀都相對的比較繁瑣,傳統(tǒng)水銀溫度計的構造,汞是有毒的,打破后對身體有很大的傷害。與常見的體溫表相比,數(shù)字體溫表更能方便、快捷,并且不會對身體照成危害的測量。所以本文在此基礎上介紹了一種既方便測量、讀取,又不會對身體造成傷害的基于LabVIEW體溫計的設計。本方案采用虛擬儀器的圖形編程,數(shù)據(jù)采集功能,最終實現(xiàn)對體溫的精確測量。實驗結果表明,此方法對體溫的測量簡單、易操作和容易讀數(shù),有著巨大的應用前景。關鍵字:LabVIEW;虛擬儀器;數(shù)字體溫表 ABSTRACTWith the development of measurement and control technology, control technology is toward automation, intelligent, digital and network direction. The United States of America NI pany has put forward the concept of software is the instrument emerge as the times require, so LabVIEW. LabVIEW is a leading industry standard graphical programming tools, and is mainly used for system development and testing, measurement and control. Because LabVIEW can be used to create universal applications, therefore is called a general purpose programming language. But it has more advantage in test, measurement and automation fields, because LabVIEW provides a number of tools and functions for data acquisition, analysis, display and storage.Measure temperature in the daily life of the mon, is very necessary for realtime monitoring of temperature. The traditional thermometer measurement of body temperature and reading are relatively trouble, and the traditional thermometer is posed by mercury, mercury on the body great harm. Compared with the mon thermometer, digital thermometer can be more convenient, fast, and not to the body as a risk measurement. So this paper on the basis of this, presents a convenient measurement, read, and will not cause harm to the design of the thermometer body. The program uses virtual instrument graphical programming, data acquisition function, finally realize the accurate measurement of body temperature, the experimental results show that, this method is simple, easy to measure the temperature of operation and easy reading, has great application prospects.Key words:LabVIEW;virtual instrument。 the digital thermometer 目錄1 緒論 1 LabVIEW簡介 1 工具模塊 2 控件模塊 2 功能函數(shù)模塊 2 LabVIEW的發(fā)展概況及趨勢 3 虛擬儀器的特點 4 性能高 5 擴展性強 5 開發(fā)時間少 5 無縫集成 5 虛擬儀器系統(tǒng)的構成 5 虛擬儀器系統(tǒng)的硬件構成 5 虛擬儀器系統(tǒng)的軟件構成 6 測量技術與儀器發(fā)展趨勢展望 7 本課題研究的主要內(nèi)容及實現(xiàn)功能 72 設計方法及技術的介紹 8 while循環(huán) 8 子VI的介紹與創(chuàng)建及使用 9 公式節(jié)點 10 信號的輸入(數(shù)據(jù)采集) 10 傳感器和變換器 11 信號調(diào)理 11 數(shù)據(jù)采集設備 12 數(shù)據(jù)采集卡 12 數(shù)據(jù)采集系統(tǒng)的開發(fā) 123 程序的設計 15 電阻元件阻值的測量 15 熱敏電阻電壓的測量 15 電壓值轉換為阻抗 17 阻抗轉換為溫度值 174 構建NI ELVIS虛擬數(shù)字溫度計 19 數(shù)字溫度計全面板的設計 19 數(shù)字溫度計程序框圖的設計 195 溫度計的系統(tǒng)調(diào)試 21 NI ELVIS II工作環(huán)境及系統(tǒng)調(diào)試 21 調(diào)試結果分析 22結束語 25參考文獻 26致 謝 281 緒論體溫作為日常生活中常見的檢測指標,對于體溫的實時監(jiān)控是很有必要的。常見的體溫測量是水銀體溫計為代表的測量設備,而對于水銀體溫計,測量時間長,對于老人小孩很難讀懂,不是很方便,打破時水銀對人類和環(huán)境都有一定的危害。對于這些原因,我們尋找更方便、快捷并且不會對身體造成危害的體溫表進行對人體體溫的測量。為了得到更方便快捷的體溫測量系統(tǒng),體溫計逐漸發(fā)展的是數(shù)字體溫計,與傳統(tǒng)的水銀體溫計相比,數(shù)字體溫計具有讀取數(shù)字方便,測量時間短,測量精度高,能記憶并有提示音等優(yōu)點,尤其是數(shù)字體溫計不含水銀,對人體及周圍環(huán)境無害,特別適合于醫(yī)院,家庭使用。 LabVIEW簡介LabVIEW是實驗室虛擬儀器集成環(huán)境(Laboratory Virtual Instrument Engineering Workbench)的簡稱,是美國國家儀器公司(NATIONAL INSTRUMENTS,簡稱NI)的創(chuàng)新軟件產(chǎn)品,也是目前應用最廣、發(fā)展最快、功能最強的圖形化軟件集成開發(fā)環(huán)境。一個最基本的VI由3個部分組成(如圖1所示):前面板、框圖程序和圖標/連接端。圖1 VI的基本構成 工具模塊該模板提供了各種用于創(chuàng)建、修改和調(diào)試VI程序的工具,如圖2所示。如果該模塊不出現(xiàn),則可以在View菜單下選擇 ToolsPalette命令以顯示該模板。當從模板內(nèi)選擇了任一種工具后,鼠標指針將成為該工具相對應的形狀。圖2 工具模塊 控件模塊控制模板是創(chuàng)建前面板對象的工具模塊,如圖3所示。模塊的頂部,每個圖標表示一個子模塊。若控制模板沒有顯示出來,則可以用View菜單下的Cotrols Palette打開,同樣也可以在前面板窗口下的空白任意處