【正文】
I 本科畢業(yè)設(shè)計(jì) (論文) 題 目 基于高速數(shù)據(jù)采集卡的虛擬示波器的設(shè)計(jì) 系(院) 信息與控制工程系 基于高速數(shù)據(jù)采集卡的虛擬示波器 的 設(shè)計(jì) 摘要 隨著計(jì)算機(jī)技術(shù)的發(fā)展,儀器工業(yè)正在經(jīng)歷一場(chǎng)巨變。計(jì)算機(jī)強(qiáng)大的處理和顯示能力,使它可以在數(shù)據(jù)采集、分析和表達(dá)中的任意一個(gè)方面提升儀器的性能。以虛擬儀器為代表的新型儀器改變了傳統(tǒng)儀器的思想,它們充分利用了計(jì)算機(jī)強(qiáng)大的軟硬件資源,把計(jì)算機(jī)技術(shù)和測(cè)量技術(shù)緊密結(jié)合起來(lái),是融合了電子測(cè)量、信號(hào)處理、計(jì)算機(jī)和網(wǎng)絡(luò)技術(shù) 的新型測(cè)量?jī)x器,由于成本低、使用方便等優(yōu)點(diǎn)得到了廣泛的應(yīng)用。本文基于 GaGe 公司的高速 II 數(shù)據(jù)采集卡 CS 82G 和通用 PC 平臺(tái),使用 VC++ 編程工具,完成了一種快速虛擬示波器的設(shè)計(jì)。 首先,本文介紹了虛擬儀器的研究背景和意義以及國(guó)內(nèi)外的一些研究進(jìn)展。對(duì)虛擬儀器總體進(jìn)行了概述,討論了虛擬儀器的概念、構(gòu)成、特點(diǎn)、發(fā)展,建立了虛擬儀器的基本框架。然后對(duì)虛擬示波器的重要組成部分-數(shù)據(jù)采集系統(tǒng)進(jìn)行了探討,同時(shí)對(duì) CS 82G數(shù)據(jù)采集卡進(jìn)行了深入的研究,在此基礎(chǔ)上,進(jìn)行了虛擬示波器的系統(tǒng)設(shè)計(jì)。本文的重點(diǎn)是 第五章 虛擬示 波器的具體實(shí)現(xiàn),這部分完成了虛擬示波器各模塊的詳細(xì)設(shè)計(jì),包括數(shù)據(jù)采集模塊、用戶界面模塊、頻譜分析模塊、數(shù)字濾波模塊、波形顯示模塊和參數(shù)計(jì)算模塊的設(shè)計(jì),并給出了設(shè)計(jì)和實(shí)驗(yàn)結(jié)果,還討論和實(shí)現(xiàn)了軟件設(shè)計(jì)中的關(guān)鍵技術(shù),最后進(jìn)行了系統(tǒng)性能分析。文章的最后進(jìn)行了課題的總結(jié)和展望。本文對(duì)相關(guān)高速、大容量數(shù)據(jù)采集系統(tǒng)和虛擬儀器的設(shè)計(jì)有重要的參考價(jià)值。 關(guān)鍵詞: 虛擬儀器 虛擬示波器 數(shù)據(jù)采集 CS 82 II Design of Virtual Oscillograph Based on High Speed Dataacquisition Card Abstract The instrumentation industry is undergoing a variety of exciting changes as a result of the development of PCs, The PC revolution has equipped users with powerful processing and display capabilities of their own. The puter can enhance instrument functionality in any of the three areasdata acquisition, analysis, and presentation. Virtual instrument (VI) changed the ideas of traditional instrument and made full use of the powerful resources of puter. It is a newstyle instrument that bines the technologies of electronic measurement, signal processing, puter and work. In this dissertation, a newstyle fast virtual oscillograph was designed with the use of VC++ programming tool based on a fast dataacquisition card, CS82G and universal PC platform. The research background and significance of VI are introduced in this dissertation firstly including the research status of VI in China and foreign countries. Then, the general technologies of VI are summarized including the definition of VI, the ponent of VI, the characters of VI and the development of VI, which established the framework of VI. Afterwards, the dataacquisition system is discussed detailedly as well as the studying of the dataacquisition card CS82G. On the basis of those work, the system of virtual oscillograph is designed. Chapter 5 is the emphasis of this dissertation. Every module is designed in detail including dataacquisition module, GUI module, FFT module, digital filter module, waveform display module and parameters puting module. Besides, the result of design and experiments is put forward and some key technologies of software are discussed in this chapter. In the end, some existing problems are pointed out as well as the summary work. This dissertation is of important III value to the design of correlative fast, large capability dataacquisition system and VI. Key words:virtual instrument。virtual oscillograph。dataacquisition。CS 82G IV 目錄 第一章 緒 論 ..................................................... 1 引言 .......................................................... 1 研究的背景和意義 ............................................. 1 本文內(nèi)容安排 ................................................. 2 第二章 虛擬儀器技術(shù) ............................................. 4 虛擬儀器的基本概念 ............................................ 4 虛擬儀器的特點(diǎn) ................................................ 5 第三章 基于數(shù)據(jù)采集卡的虛擬示波器的研究 ...................... 6 基于 PC 的數(shù)據(jù)采集系統(tǒng) ......................................... 6 超高速數(shù)據(jù)采集卡 CS 82G ....................................... 6 基于數(shù)據(jù)采集卡的虛擬示波器的原理和結(jié)構(gòu) ....................... 7 虛擬示波器的工作原理 ..................................... 7 系統(tǒng)的結(jié)構(gòu)和特點(diǎn) ......................................... 8 第四章 虛擬示波器的方案設(shè)計(jì) .................................... 9 硬 件和軟件的選擇 .............................................. 9 硬件的選擇 ................................................ 9 軟件開發(fā)環(huán)境的選擇 ....................................... 10 軟件總體方案 ................................................. 11 第五章 虛擬示波器系統(tǒng)的軟件具體實(shí)現(xiàn) .......................... 13 虛擬示波器的系 統(tǒng)軟件功能框圖 ................................. 13 數(shù)據(jù)采集模塊的設(shè)計(jì) .......................................... 13 數(shù)據(jù)采集的編程過(guò)程 ...................................... 13 采集模塊的流程圖 ......................................... 15 軟面板的設(shè)計(jì) ................................................ 15 頻譜分析 模塊的設(shè)計(jì) .......................................... 15 設(shè)計(jì)結(jié)果 ................................................ 18 V 數(shù)字濾波模塊的設(shè)計(jì) ...................................... 21 波形顯示模塊的設(shè)計(jì) .......................................... 23 數(shù)據(jù)內(nèi)插技術(shù) ............................................ 23 波形顯示技 術(shù) ............................................ 23 設(shè)計(jì)結(jié)果 ................................................. 26 ........................... 27 小結(jié) ......................................................... 29 第六章 總結(jié)和展望 ............................................... 31 總結(jié) ......................................................... 31 展望 ........................................................ 31 參考文獻(xiàn) ......................................................... 33 致謝 .............................................................. 34 1 第一章 緒 論 虛擬儀器是隨著計(jì)算機(jī)技術(shù)、電子測(cè)量技術(shù)和通信技術(shù)而發(fā)展起來(lái)的一種新型儀器,虛擬儀器的出現(xiàn)是測(cè)量?jī)x器領(lǐng)域的一個(gè)突破 , 從根本上更新了測(cè)量?jī)x器的概念。它是在以通用計(jì)算機(jī)為核心的硬件平臺(tái)上,由用戶設(shè)計(jì)定義,具有虛擬面板,測(cè)試功能由測(cè)試軟件實(shí)現(xiàn)的一種計(jì)算機(jī)儀 器系統(tǒng)。虛擬儀器技術(shù)充分利用計(jì)算機(jī)系統(tǒng)強(qiáng)大的數(shù)據(jù)處理。 能力 , 利用軟件完成數(shù)據(jù)的采集、控制、數(shù)據(jù)分析和處理以及測(cè)試結(jié)果的顯示等 , 通過(guò)軟、硬件的配合實(shí)現(xiàn)傳統(tǒng)儀器的各種功能 , 大大突破了傳統(tǒng)儀器在數(shù)據(jù)處理、顯示、傳送、存儲(chǔ)等方面的限制 , 使用戶可以方便地對(duì)儀器進(jìn)行維護(hù)、擴(kuò)展和升級(jí)。它的優(yōu)勢(shì)在于可由用定義自己的專用儀器系統(tǒng),且功能靈活,很容易構(gòu)建,所以應(yīng)用面極為廣泛。尤其在科研、開發(fā)、測(cè)量、檢測(cè)、計(jì)量、測(cè)控等領(lǐng)域更是不可多得的好工具。虛擬儀器技術(shù)先進(jìn),十分符合國(guó)際上流行的“硬件軟件化”的發(fā)展趨勢(shì),因而常被稱作“軟 件儀器”。隨著計(jì)算機(jī)技術(shù)的廣泛應(yīng)用,傳統(tǒng)的儀器