【正文】
................. 31 167。 顯示部分設計 ............................... 29 167。 串口發(fā)送部分設計 ........................... 28 167。 程序框圖 ................................... 26 167。 串口發(fā)送部分設計 ........................... 25 167。 頻率選擇部分設計 ........................... 24 167。 程序框圖 ................................... 22 167。 串口發(fā)送部分設計 ........................... 21 167。 程序框圖 ................................... 20 167。 界面的組件設計 ............................. 19 167。3 .2 人機交互界面設計 ............................... 17 167。 函數(shù)信號發(fā)生器設計思想 .................... 13 第 3 章 上位機設計 .............................................................................. 15 167。 系統(tǒng)框圖 ................................... 11 167。 方案論證 ........................................ 8 167。 上位機與下位機 .................................. 7 167。 開發(fā)環(huán)境 LabVIEW ............................ 5 167。 國內外發(fā)展狀況 .............................. 4 167。 本課題研究的意義 ................................ 3 167。 數(shù)字信號處理技術 ............................ 2 167。 0HZ Cymometer can signal to the frequency measurements. The design of the use of RS232 serial port for data transmission, the realization of the LabVIEW and FPGA munication. At the same time, the generation of simulation and control signals to do a detailed analysis, as well as 河南科技大學畢業(yè)設計 (論文 ) III design issues in detail. The design of a reform aimed at finding an effective way of teaching laboratory. KEY WORDS: Virtual Instrument, LabVIEW, RS232, FPGA 河南科技大學畢業(yè)設計 (論文 ) IV 目 錄 前 言 ......................................................................................................... 1 第 1 章 緒論 ............................................................................................ 2 167。 關鍵詞 : 虛擬儀器 , LabVIEW, RS232, FPGA 河南科技大學畢業(yè)設計 (論文 ) II THE DESIGN OF VIRTUAL INSTRUMENTS PLATFORM BASED ON LABVIEW AND FPGA ABSTRACT Modern production requires electronic instrumentation variety many, strong function, high precision, high degree of automation, and high speed, good realtime in testing, good manmachine interface. Virtual Instruments can meet precisely these requirements. A variety of instruments are used in the electronic experiments, such as signal generator, multimeter, frequency meter, oscilloscope, etc. If we are able to design them to virtual instruments, improve the integration of instruments using puter and reduce the type and number of instruments matched to experiments and the space of laboratory, then we can change the face of the laboratory fundamentally and conquer the shortings of single function of the traditional measuring instruments. The design of this thinking is the starting point of electronic technolog y to the real function of the laboratory signal generator, oscilloscope, frequency meter based on the use of LabVIEW programming to design the virtual function signal generator, virtual storage oscilloscope, the virtual frequency meter, and bined in a virtual platform, to achieve the virtual simulation function, respectively, signal generator, oscilloscope, and frequency of functions, the realization of the true sense of the virtual instrument platform. Its virtual platform for the above function signal generator can produce sine wave, triangle wave, square wave three, and be able to achieve the waveform frequency from 1Hz to 2MHz Adjustable peak peak adjustable from to , a very good real time。同時對仿真信號的生成與控制做了詳細的分析,以及對設計中的問題進行了深入的探討。其虛擬平臺上面的 函數(shù) 信號發(fā)生器可以產(chǎn)生正弦波、三角波、方波三種波形,并能夠實現(xiàn)波形頻率從 1Hz到 2MHz可調,峰峰值從 ,實時性很好 ;示波器能正確的顯示波形,并能實現(xiàn)頻率和幅值的可調;頻率計可以 對 0HZ到 。在電子實驗中使用多種儀器,如信號發(fā)生器、萬用表、頻率計、示波器等,如果能把它們都設計成虛擬儀器,利用計算機來提高儀器的集成度,減少實驗匹配的儀器的種類、數(shù)量和實驗室面積,便能從根本上改變實驗室的面貌,克服傳統(tǒng)測量儀器單一功能的缺點。河南科技大學畢業(yè)設計 (論文 ) I 基于 LabVIEW 和 FPGA 的虛擬儀器平臺設計 摘要 現(xiàn)代生產(chǎn)要求電子儀器品種多、功能強、精度高、自動化程度高,而且要求測試的速度快、實時性好,具有良好的人機界面。虛擬儀器正好可以實現(xiàn)這些要求。 本設計正是以這種思想為出發(fā)點, 以電子技術實驗室的真實函數(shù)信號發(fā)生器 、示波器、 頻率計 為藍本,利用 LabVIEW編程來設計虛擬函數(shù)信號發(fā)生器 、虛擬 存儲 示波器、虛擬頻率計 , 并將其合并在一個虛擬平臺上面, 能夠 分別實現(xiàn)虛擬仿真 函數(shù) 信號發(fā)生器 、 存儲 示波器、及頻率計 的功能 ,實現(xiàn)真正意義上的虛擬儀器平臺 。 本設計利用 RS232串口進行數(shù)據(jù) 的傳輸,實現(xiàn)了 LabVIEW與 FPGA的通信。本設計旨在找到一個能夠改革教學實驗室的有效途徑。 oscilloscope waveform display correctly, and to achieve an adjustable frequency and amplitude。 虛擬儀器的背景 .................................. 2 167。 虛擬儀器技術 ................................ 2 167。 設計的依據(jù)及意義 ............................ 3 167。 關于 LabVIEW..................................... 5 167。 選擇 LabVIEW 的原因 .......................... 5 第 2 章 系統(tǒng)的構想與方案設計 ........................................................... 7 167。 DDS 的工作原理 .................................. 7 167。 系統(tǒng)整體框圖與設計思想 ......................... 11 167。 頻率計設計思想 ............................. 12 167。 LabVIEW 軟件設計思想 ........................... 15 167。 人機交互界面的構成 ......................... 18 167。 主 VI 程序框圖設計 .............................. 20 167。 器件選擇部分設計 ........................... 21 167。 函數(shù)信號發(fā)生器程序框圖的設計 .................. 22 河南科技大學畢業(yè)設計 (論文 ) V 167。 波形類型部分設計 ........................... 23 167。 峰峰值調節(jié)部分設計 ......................... 25 167。 頻率計程序框圖的設計 ........................... 26 167。 發(fā)送數(shù)據(jù)類型控制部分設計 .................. 26 167。 串口接收部分設計 ........................... 28 167。 設計中用到的主要 VI ............................ 29 第 4 章 下位機設計 .............................................................................. 31 167。 主模塊的軟件設計原理總圖 .................. 31 167。 FPGA 軟件中函數(shù)信號發(fā)生器的設計思想 ............ 32 167。 FPGA 軟件中函數(shù)信號發(fā)生器的設計原理 ....... 32 167。 頻率計的軟件設計原理總圖 .................. 34 167。 頻率計的系統(tǒng)模塊設計 ........................... 35 167。 串口轉換模塊 ............................... 38 167。 控制模塊 ................................... 40 167。 頻率計模塊 ................................. 42 167。 串口接收模塊 ............................... 45 河南科技大學畢業(yè)設計 (論文 ) VI 167。 分頻模塊 ................................... 46 167。 ROM 表查詢模塊 ............................. 49 167。 幅值調節(jié)模塊 ............................... 52 167。 串口的編碼