資源描述:
《基于虛擬儀器的課程設(shè)計(jì)》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、基于虛擬儀器的課程設(shè)計(jì)摘要現(xiàn)代生產(chǎn)要求電子儀器品種多、功能強(qiáng)、精度高、自動化程度高,而且要求測試的速度快、實(shí)時(shí)性好,具有良好的人機(jī)界面。虛擬儀器正好可以實(shí)現(xiàn)這些要求。在電子實(shí)驗(yàn)中使用多種儀器,如信號發(fā)生器、萬用表、頻率計(jì)、示波器等,如果能把它們都設(shè)計(jì)成虛擬儀器,利用計(jì)算機(jī)來提高儀器的集成度,減少實(shí)驗(yàn)匹配的儀器的種類、數(shù)量和實(shí)驗(yàn)室面積,便能從根本上改變實(shí)驗(yàn)室的面貌,克服傳統(tǒng)測量儀器單一功能的缺點(diǎn)。本設(shè)計(jì)正是以這種思想為出發(fā)點(diǎn),以電子技術(shù)實(shí)驗(yàn)室的真實(shí)函數(shù)信號發(fā)生器、示波器、頻率計(jì)為藍(lán)本,利用LabVI
2、EW編程來設(shè)計(jì)虛擬函數(shù)信號發(fā)生器、虛擬存儲示波器、虛擬頻率計(jì),并將其合并在一個(gè)虛擬平臺上面,能夠分別實(shí)現(xiàn)虛擬仿真函數(shù)信號發(fā)生器、存儲示波器、及頻率計(jì)的功能,實(shí)現(xiàn)真正意義上的虛擬儀器平臺。其虛擬平臺上面的函數(shù)信號發(fā)生器可以產(chǎn)生正弦波、三角波、方波三種波形,并能夠?qū)崿F(xiàn)波形頻率從1Hz到2MHz可調(diào),峰峰值從0.1V到8.0V可調(diào),實(shí)時(shí)性很好;示波器能正確的顯示波形,并能實(shí)現(xiàn)頻率和幅值的可調(diào);頻率計(jì)可以對0HZ到99.99KHZ的信號進(jìn)行頻率的測量。本設(shè)計(jì)利用RS-232串口進(jìn)行數(shù)據(jù)的傳輸,實(shí)現(xiàn)了Lab
3、VIEW與FPGA的通信。同時(shí)對仿真信號的生成與控制做了詳細(xì)的分析,以及對設(shè)計(jì)中的問題進(jìn)行了深入的探討。本設(shè)計(jì)旨在找到一個(gè)能夠改革教學(xué)實(shí)驗(yàn)室的有效途徑。關(guān)鍵詞:虛擬儀器,LabVIEW,RS-232,F(xiàn)PGATHEDESIGNOFVIRTUALINSTRUMENTSPLATFORMBASEDONLABVIEWANDFPGAABSTRACTModernproductionrequireselectronicinstrumentationvarietymany,strongfunction,highp
4、recision,highdegreeofautomation,andhighspeed,goodreal-timeintesting,goodman-machineinterface.VirtualInstrumentscanmeetpreciselytheserequirements.Avarietyofinstrumentsareusedintheelectronicexperiments,suchassignalgenerator,multimeter,frequencymeter,osc
5、illoscope,etc.Ifweareabletodesignthemtovirtualinstruments,improvetheintegrationofinstrumentsusingcomputerandreducethetypeandnumberofinstrumentsmatchedtoexperimentsandthespaceoflaboratory,thenwecanchangethefaceofthelaboratoryfundamentallyandconquerthes
6、hortcomingsofsinglefunctionofthetraditionalmeasuringinstruments.Thedesignofthisthinkingisthestartingpointofelectronictechnologytotherealfunctionofthelaboratorysignalgenerator,oscilloscope,frequencymeterbasedontheuseofLabVIEWprogrammingtodesignthevirtu
7、alfunctionsignalgenerator,virtualstorageoscilloscope,thevirtualfrequencymeter,andcombinedinavirtualplatform,toachievethevirtualsimulationfunction,respectively,signalgenerator,oscilloscope,andfrequencyoffunctions,therealizationofthetruesenseofthevirtua
8、linstrumentplatform.Itsvirtualplatformfortheabovefunctionsignalgeneratorcanproducesinewave,trianglewave,squarewavethree,andbeabletoachievethewaveformfrequencyfrom1Hzto2MHzAdjustablepeakpeakadjustablefrom0.1Vto8.0V,averygoodreal-time;oscillosco