【正文】
畢 業(yè) 設(shè) 計(jì)(論 文) 題 目 : 南京大學(xué)金陵學(xué)院 畢 業(yè) 設(shè) 計(jì)(論 文) 作 者 : (三號(hào)楷體) 學(xué) 號(hào): (三號(hào)楷體) 系 部 : 信息科學(xué)與工程 學(xué)院 專 業(yè) : (三號(hào)楷體) 題 目 : (三號(hào)楷體) (內(nèi)容過長可分兩行) 指導(dǎo)老 師 (姓名) ( 職稱 ) 提交日 期 (三號(hào)楷體) 摘 要 虛擬儀器是 一種利用計(jì)算機(jī)技術(shù)替代傳統(tǒng)儀器的 全新概念儀器,本質(zhì)就是 利用電腦優(yōu)越的 硬件顯示性能 替代傳統(tǒng)儀器 達(dá)不到的顯示效果 , 用多種不同的方式 顯示和存儲(chǔ)采集的信號(hào) , 根據(jù)電腦先進(jìn)的硬件處理設(shè)備來處理和分析采集回來的數(shù)據(jù) , 從而實(shí)現(xiàn)不同調(diào)試功能 的PC 虛擬儀器系統(tǒng) 。 本 畢設(shè)依據(jù) LabView 虛擬儀器 實(shí)現(xiàn) 上位機(jī)與下位機(jī)之 間的 高速通訊 ,并根據(jù) LABVIEW中的 VISA功能 ,將其應(yīng)用于單片機(jī)串口通信中,通過 Labview 發(fā)送循環(huán)計(jì)數(shù)的初值,單片機(jī)接收并顯示在數(shù)碼管上,從接收到的初值開始計(jì)數(shù),同時(shí)單片機(jī) 返回循環(huán)計(jì)數(shù)結(jié)果,最后在Labview 面板內(nèi)容上動(dòng)態(tài)顯示循環(huán)計(jì)數(shù)值 。 虛擬儀器軟件 LabVIEW 的問世 , 大大提高了開發(fā)效率 ,減編寫程序的難度,縮短了研發(fā)周期 , 從而減少研發(fā)成本 , 為我們實(shí)際項(xiàng)目研發(fā)提高了效率,帶來了巨大財(cái)富。 關(guān)鍵詞: LabVIEW; STC51單片機(jī); 串口通訊 ;數(shù)碼管顯示 ; PC and the microcontroller serial munication and indicating lamp control based on LabVIEW ABSTRACT Virtual instrument is a kind of using puter technology to replace traditional instrument instrument of new concept, essence is the use of alternatives to traditiona l function of superior puter display instrument reach display effect, output measurement results in many different ways, and use the puter a powerful software function implementation evaluation of signal data, analysis and processing, plete all kinds of test functions of a puter instrument system. By using LabView virtual instrument was introduced in this paper the tell munication between upper machine and lower machine, using the LabView function, applied to the single chip microputer serial port munication, sent by LabView initial value of the cycle count, microcontroller to receive and display on the digital tube, starting from the received initial count, microcontroller return cycle count results at the same time, the content of the LabView panel on dynamic display cycle count. Virtual instrument software LabVIEW, greatly improves the development efficiency, reduce the difficulty of the program, shorten the development cycle, reducing development costs, for our practical project research and development efficiency, brought huge wealth. Keywords:Labview。 STC51 microcontroller。 A serial port munication。 Digital tube display 目錄 第一章 緒論 課題的背景和意義 ............................................................................................... 6 課題實(shí)現(xiàn)內(nèi)容 ..................................................................................................... 7 第二章 軟硬件介紹 虛擬儀器與 LabVIEW 虛擬儀器的概述 .............................................................................................. 8 虛擬儀器方案的組成 .............................................................................. 9 虛擬儀器方案的優(yōu)勢 .............................................................................. 9 虛擬儀器和傳統(tǒng)儀器的區(qū)別 ................................................................ 10 虛擬儀器的發(fā)展與現(xiàn)狀 ....................................................................... 11 虛擬儀器的應(yīng)用 ................................................................................... 11 LabVIEW 簡介 .............................................................................................. 34 LabVIEW 基本特點(diǎn) ........................................................................................ 34 STC89C51RC 單片機(jī)介紹 ............................................................................ 34 單片機(jī)編程環(huán)境 KEIL 和下載軟件 STCISP 介紹 ........................................ 34 第三章總體設(shè)計(jì)方案 系統(tǒng)總體 方案設(shè)計(jì) ............................................................................................... 18 系統(tǒng)硬件的選擇 ................................................................................................... 18 核心控制器選擇 ...................................................................................... 18 上位機(jī)編程軟件的選擇 .......................................................................... 19 顯示系統(tǒng)選擇 .......................................................................................... 19 第四章 LabVIEW 上位機(jī)介紹 上位機(jī)程序內(nèi)容 ............................................................................................... 20 上位機(jī)框圖 ..................................................................................................... 20 上位機(jī)前面板框圖 .............................................................................. 20 上位機(jī)創(chuàng)建虛擬儀器過程 .................................................................. 21 上位機(jī)程序流程圖 .............................................................................. 21 上位機(jī) Labview 串口通訊的實(shí)現(xiàn) .................................................................. 22 第五章單片機(jī)下位機(jī)設(shè)計(jì) 下位機(jī)流程圖 .................................................................................................... 28 設(shè)計(jì)目的和實(shí)現(xiàn)方案 ........................................................................................ 29 設(shè)計(jì)目的 ................................................................................................ 29 實(shí)現(xiàn)方案 ................................................................................................ 29 系統(tǒng)硬件結(jié)構(gòu) .................................................................................................. 29 系統(tǒng)硬件電路 ........................................................................................ 29 主控系統(tǒng) ................................................................................................ 30 復(fù)位電路 .................................................................................................. 30 串口電路 .................................................................................................. 31 震蕩電路 .................................................................................................. 31 LEd 電路 ...............................