【正文】
5j 0j void wendushuju1 uint bcd_value send_data_s1[0] 1 send_data_s1[1] bcd_value100 send_data_s1[2] bcd_value100 void wendushuju2 uint bcd_value send_data_s2[0] 2 send_data_s2[1] bcd_value100 send_data_s2[2] bcd_value100 void wendushuju3 uint bcd_value send_data_s3[0] 3 send_data_s3[1] bcd_value100 send_data_s3[2] bcd_value100 void main 主函數(shù) uint t SCI_Init while 1 tmpchange 溫度轉(zhuǎn)換 tmp1change1 溫度轉(zhuǎn)換 tmp2change2 溫度轉(zhuǎn)換 Disp tmp wendushuju1 tmp wendushuju2 tmp1 wendushuju3 tmp2 send_packet send_data_s13 send_packet send_data_s23 send_packet send_data_s33 Disp tmp1 for t 0t 100t Disp tmp2 while 1 附錄 II 下位機電路圖 附錄 IILabview 界面顯示 AT89C51 單片機 DS18B20 DS18B20 DS18B20 溫度轉(zhuǎn)換初始化 獲取溫度 信號格式轉(zhuǎn)換 保存到寄存器 SBUF 串口從寄存器讀取 串口通訊模塊 數(shù)據(jù)處理模塊 數(shù)據(jù)顯示模塊 溫度報警模塊 。 C范圍內(nèi)精度為177。 C125176。畢業(yè)論文 基于 LabVIEW 的溫度檢測系統(tǒng)設(shè)計 摘要 溫度是個基本的物理量他是工業(yè)生產(chǎn)過程中最普遍最重要的工藝參數(shù)之一隨著工業(yè)的不斷發(fā)展對溫度測量的要求也越來越高而且測量范圍也越來越廣合理的溫度范圍和精確地溫度的測量隊提高產(chǎn)品的質(zhì)量產(chǎn)量降低消耗實現(xiàn)工業(yè)生產(chǎn)自動化均有積極作用因此溫度檢測技術(shù)的研究具有重大意義 本系統(tǒng)是一個基于 LabVIEW 的溫度檢測系統(tǒng)采用多點溫度檢測能檢測較大區(qū)域內(nèi)的溫度變化主要包括上位機和下位機兩個部分下位機使用的 DS18B20 傳感器 和 AT89C51 單片機上位機和下位機的通訊方式是串口通訊上位機使用的是虛擬儀器 LabVIEW 主要功能是實時溫度的顯示溫度曲線時間軸的顯示歷史溫度曲線的顯示以及超限溫度報警 關(guān)鍵字 Labview 溫度測量 ABSTRACT The temperature is a basic physical quantity it is one of the most mon industrial processes the most important process parameters With the continuous development of industry the requirements for temperature measurement is also getting higher and higher and the increasingly wide range of measurement Reasonable temperature range and accurate temperature measurement team to improve product quality production reduce consumption to achieve the automation of industrial production had an active role in temperature sensing technology is of great significance This system is a temperature sensing system based on LabVIEW using multipoint temperature detection can detect temperature changes within the larger area including two parts of the upper and lower machine The next bit machine using the DS18B20 sensors and AT89C51 microcontroller The upper and lower machine munication is serial munication The host puter using a virtual instrument LabVIEW the main function is to display realtime temperature the temperature curve Timeline display alarm display and gauge the temperature of the historical temperature curve Keywords LabVIEW Temperature survey 目 錄 摘要 I ABSTRACT II 目 錄 III 第 1 章 引言 1 11 背景 1 12 國內(nèi)外研究現(xiàn)狀 2 感器 2 上位機 3 上位機與下位機通訊方式 4 13 研究內(nèi)容 4 第 2 章 系統(tǒng)設(shè)計 5 21 下位機設(shè)計 5 溫度檢測模塊設(shè)計 5 上位機和下位機的通訊方式設(shè)計 6 下位機主控模塊設(shè)計 6 22 上位機設(shè)計 6 第 3 章 下位機的軟硬件實現(xiàn) 9 31 硬件實現(xiàn) 9 DS18B20 溫度傳感器 9 單片機外圍電路 10 32 下位機 軟件設(shè)計 11 第 4 章 上位機實現(xiàn) 13 41 上位機總體模塊 13 42 模塊分析 13 串口通訊模塊 13 數(shù)據(jù)處理模塊 15 數(shù)據(jù)顯示模塊 17 溫度報警模塊 20 第 5 章 調(diào)試 21 51 硬件調(diào)試 21 52 軟件調(diào)試 21 調(diào)試準(zhǔn)備 21 運行結(jié)果 21 第 6 章 結(jié)束語 24 致 謝 25 參考文獻 26 附錄 I 源代碼 27 附錄 II 下位機電路圖 44 附錄 II 上位機程序圖 45 1 章 引言 11Labview 技術(shù)為核心以計算機數(shù)據(jù)采集卡等器件為硬件平臺的溫度檢測系統(tǒng)的設(shè)計方法 12 國內(nèi)外研究現(xiàn)狀 如鉑銅鎳等熱敏電阻是以半導(dǎo)體材料制成的陶瓷器件 如錳鎳鈷等金屬的氧化物與其它化合物按不同配比燒結(jié)而成 輻射式溫度傳感器眾所周知 自然界的所有物體對輻射都具有吸收和反射的能力 1 輻射式溫度傳感器就是利用物體的熱輻射特性制成的被測物體的輻射能被熱敏元件 如熱電 偶熱敏電阻等 吸收時可使其物理參數(shù) 如輸出電勢電阻值等 發(fā)生變化 利用現(xiàn)代測量手段檢測出這種變化就可得被測溫度根據(jù)敏感原理不同 輻射式溫度傳感器可分為全輻射式紅外輻射式光電亮度式和光電比色式等 并能實現(xiàn)非接觸測量 可測溫度高達 3000 ℃以上 全輻射式傳感器中敏感元件接受被測物體的全部輻射能而使參數(shù)發(fā)生變化 紅外輻射式傳感器中敏感元件只接受被