【正文】
t Server 連接,用戶必須為數(shù)據(jù)提供一個附加到 URL 的標識Tag,DataSocket 連接利用 Tag 在 DataSocket Server 上為一個特殊的數(shù)據(jù)項目指定地址,目前應(yīng)用虛擬儀器技術(shù)組建的測量網(wǎng)絡(luò)大多采用該協(xié)議;(2)(Hyper Text TransferProtocol,超文本傳輸協(xié)議);(3)ftp(File Transfer Protocol,文件傳輸協(xié)議);(4)opc(OLEfor Process Control,操作計劃和控制);特別為實時產(chǎn)生的數(shù)據(jù)而涉及,例如工業(yè)自動化操作而產(chǎn)生的數(shù)據(jù)。在資源定位符中標明數(shù)據(jù)的傳輸協(xié)議、網(wǎng)絡(luò)計算機標志和數(shù)據(jù)緩沖區(qū)變量。DataSocket Server 不會占用測控計算機 CPU 的工作時間,測控應(yīng)用程序可以運行得更快。DataSocket Server 通過內(nèi)部數(shù)據(jù)自描述格式對 TCP/IP 進行優(yōu)化和管理,簡化 Internet 通信方式,提供自由的數(shù)據(jù)傳輸,可以直接傳送虛擬儀器程序所采集到的布爾型、數(shù)字型、字符串型、數(shù)組型和波形等常用類型的數(shù)據(jù)。Manager 對 DataSocket Server 的配置必須在本地計算機上進行,而不能遠程配置或通過運行程序來配置。Manager 是一個獨立運行的程序,主要功能有:設(shè)置 DataSocket Server 連接的客戶端程序的最大數(shù)目和創(chuàng)建數(shù)據(jù)項的最大數(shù)目:創(chuàng)建用戶組和用戶;設(shè)置用戶創(chuàng)建和讀寫數(shù)據(jù)項的權(quán)限;限制身份不明的客戶對服務(wù)器進行訪問和攻擊。用戶只需要知道數(shù)據(jù)源和數(shù)據(jù)宿及需要交換的數(shù)據(jù)就可以直接進行高層應(yīng)用程序的開發(fā),實現(xiàn)高速數(shù)據(jù)傳輸,而不必關(guān)心底層的實現(xiàn)細節(jié),從而簡化通信程序的編寫過程,提高編程效率。DataSocket 是 NI 公司提供的基于 Microsoft 的 COM 和 ActiveX 技術(shù),源于 TCP/IP協(xié)議并對其進行高度封裝,用于共享和發(fā)布實時數(shù)據(jù),是一種易用的高性能數(shù)據(jù)交換編程接口。 DataSocket 遵循了 TCP/IP 協(xié)議,并對底層進行了高度封裝,所提供的參數(shù)簡單友好,用類似與 Web 中的統(tǒng)一資源定位符(Uniform Resource Locator,URL)定位數(shù)據(jù)源,URL 不同的前綴代表了不同的數(shù)據(jù)類型。 DataSocket 可以訪問本地文件以及 HTTP 和 FTP 服務(wù)器上的數(shù)據(jù),并為低層通信協(xié)議提供了統(tǒng)一的 API 函數(shù),編程人員無需為不同的數(shù)據(jù)格式和通信協(xié)議編寫具體的通信程序代碼。借助它可以在不同的應(yīng)用程序和數(shù)據(jù)源之間共享數(shù)據(jù)并進行實時數(shù)據(jù)(Live data)的傳輸。 Data Socket 技術(shù)的介紹瀏覽器Lab VIEWLab windows/CVI Internet Data Socket服務(wù)器采集應(yīng)用程序圖12 Data Socket的體系結(jié)構(gòu)LabVIEW 具有強大的網(wǎng)絡(luò)通信功能,這種功能使得 LabVIEW 的用戶可以很容易地編寫出具有強大網(wǎng)絡(luò)通信能力的 LabVIEW 應(yīng)用軟件,實現(xiàn)遠程虛擬儀器。 遠程虛擬儀器是虛擬儀器在網(wǎng)絡(luò)領(lǐng)域的拓展,除了具備虛擬儀器的全部優(yōu)點外,主要優(yōu)勢還在于不受地域、環(huán)境的限制。遠程虛擬儀器結(jié)構(gòu)模式如圖11所示。 另一方面還有利于遠程教育實驗教學的開展,從而解決限制遠程教育中的實驗教學進行的難題。數(shù)據(jù)傳送與接收的一致性問題 7第二章 整體方案 9 系統(tǒng)總體方案設(shè)計 9第三章 振動測試系統(tǒng)的硬件結(jié)構(gòu) 11 11第四章 振動測試系統(tǒng)軟件結(jié)構(gòu) 15 15 15 17 數(shù)據(jù)傳輸控制 19 客戶端程序設(shè)計 20 20 22第五章遠程振動測試實驗調(diào)試部分 23結(jié)束語 25致謝 26參考文獻 27附錄 30附錄一:硬件前端電路實物圖 30附錄二:參考外文文獻 31附錄三:參考外文譯文 40華東交通大學畢業(yè)設(shè)計(論文)第一章虛擬儀器遠程振動測試的進展遠程虛擬儀器就是虛擬儀器在網(wǎng)絡(luò)領(lǐng)域的擴展。 遠程測控系統(tǒng)的組成 4 關(guān)鍵詞:遠程測試;振動測試;虛擬儀器;LabVIEW;DataSocketIAbstractDesign on Test system of Remote vibration Based on Virtual instrument technologyAbstractWith the development and bine of technology of puter, network and electron, the technology of virtual instrument and network testing building on Internet are be further developed, which make it easy to set up plicated, remote and wide area the network testing system. The system provide convenience to realize resources share and finish together testing, especially in the place which is dangerous and unable to get in, such as nuclear explosion, the bottom of the sea, the mountain area of high and cold, the internal part of channel and so on. So it is necessary to design the remote virtual testing system.Remote testing system based on virtual instrument is a network testing system in Internet, which is based on the technology of virtual instrument, Web publish and puter network. In order to design and realize the remote virtual testing system, this dissertation includes the following work:First, the dissertation analyze the model of network testing system network test system, and bring forward to design the remote virtual testing system with the C/S and B/S hybrid model, and analyze and study the technology of virtual instrument, remote data acquire and remote data transmission.Then, according to system requirements, design the overall program of remote virtual testing system based on the LabVIEW software platform, and through designing onsite testing server unit, server monitoring unit and remote users testing unit to plete the detailed design of the system. Finally, According to the traditional mechanical vibration test equipment shortage. Lans LabVIEW software design based on a remote vibration parameters testing and dynamic characteristic analysis system, this system in the server using DataSocket vibration signal collecting technologies to realize data transmission?;贚abVIEW軟件平臺下設(shè)計了一種遠程振動參數(shù)測試及動態(tài)特性分析系統(tǒng),該系統(tǒng)在服務(wù)器端采集振動信號,利用DataSocket技術(shù)實現(xiàn)數(shù)據(jù)傳輸;在客戶端程序?qū)π盘栠M行實時處理!顯示以及頻譜分析,對固有頻率!阻尼比等參數(shù)進行估計。并通過對現(xiàn)場測試服務(wù)器單元、服務(wù)器監(jiān)控單元和遠程用戶測試單元的詳細設(shè)計完成了系統(tǒng)的設(shè)計。本文圍繞遠程虛擬測試系統(tǒng)的設(shè)計與實現(xiàn),做了以下工作:首先,分析了網(wǎng)絡(luò)化測試系統(tǒng)模型,提出了采用 C/S 和 B/S 混合模型來設(shè)計遠程虛擬測試系統(tǒng),并對系統(tǒng)中的虛擬儀器技術(shù)、遠程數(shù)據(jù)采集和遠程數(shù)據(jù)傳輸技術(shù)進行了深入的研究。摘要基于虛擬儀器技術(shù)的遠程振動測試系統(tǒng)設(shè)計專 業(yè):測控技術(shù)與儀器 學 號:20070310110214學生姓名:王通海 指導老師:周建民摘要隨著計算機技術(shù)、網(wǎng)絡(luò)技術(shù)、電子技術(shù)與儀器技術(shù)的發(fā)展及深層次的結(jié)合,虛擬儀器技術(shù)及以 Internet 為核心的網(wǎng)絡(luò)化測控系統(tǒng)得到進一步發(fā)展,使得人們組建復雜、遠程和范圍較大的測試任務(wù)變得相對容易,為實現(xiàn)資源共享,共同完成測試任務(wù)提供了很大方便,尤其在危險的、測試人員難以進入的場地,如核爆炸現(xiàn)場、海底、高寒山區(qū)、管道內(nèi)部等。因此,將網(wǎng)絡(luò)技術(shù)和虛擬儀器技術(shù)相結(jié)合和組建遠程虛擬測試系統(tǒng)就顯得非常必要基于虛擬儀器的遠程測試系統(tǒng)是以虛擬儀器技術(shù)、Web 發(fā)布技術(shù)、計算機網(wǎng)絡(luò)技術(shù)為基礎(chǔ),建立的一種 Internet 環(huán)境下的網(wǎng)絡(luò)測試系統(tǒng)。然后,根據(jù)系統(tǒng)功能要求,設(shè)計了基于 LabVIEW 軟件平臺下的遠程虛擬測試系統(tǒng)總體方案。最后,針對傳統(tǒng)的機械振動測試儀器的不足。基于虛擬儀器的遠程測試系統(tǒng)應(yīng)用計算機網(wǎng)絡(luò)技術(shù),虛擬儀器技術(shù)以及 LabVIEW 語言的特點,實現(xiàn)了測試系統(tǒng)的網(wǎng)絡(luò)化、遠程化、自動化,降低了測試系統(tǒng)成本,提高了測試效率,在自動控制、測控領(lǐng)域以及教學科研中具有廣泛的應(yīng)用。 In the client program realtime processing of signal. Display and spectral analysis, on the natural frequencies! The damping ratio estimated parameters.Remote testing system based on virtual instrument uses the technology of puter network, virtual instrument and features of LabVIEW language, realize the network, remote, automated of testing system. Remote virtual test system reduces costs and improves the efficiency of the test system. Remote virtual test system will be wide applied in the field and range of automatic control, monitoring and control, teaching and research.Key Words: Remote Testing System;vibration measurement;Virtual Instrument;LabVIEW;DataSocketIII目錄摘要 IAbstract II第一章虛擬儀器遠程振動測試的進展 1 1 Data Socket 技術(shù)的介紹 2 遠程測控技術(shù)的實現(xiàn) 4基于C/S模式的DataSocket技術(shù) 5 遠程虛擬儀器技術(shù)結(jié)合了虛擬儀器技術(shù)與網(wǎng)絡(luò)技術(shù),將虛擬儀器的應(yīng)用范圍拓展到整個Internet網(wǎng)上,使信號采集、傳輸和處理一體化,一方面可以使許多昂貴的硬件資源得以共享,充分利用現(xiàn)有的實驗室資源。因此構(gòu)建基于Internet上的遠程虛擬儀器實驗系統(tǒng)已經(jīng)成為虛擬儀器應(yīng)用發(fā)展的一個重要的環(huán)節(jié)。 客戶端硬件儀器服務(wù)器WWW客戶端客戶端圖11 遠程虛擬儀器的結(jié)構(gòu)模式遠程虛擬儀器的實現(xiàn),無論哪種遠程虛擬儀器系統(tǒng),都是將硬件儀器(傳感器、調(diào)理放大器、A/D卡)搭載到遠端服務(wù)器上,加上應(yīng)用軟件并和本地的筆記本電腦、臺式 PC 機或工作站等各種計算機通過網(wǎng)絡(luò)相連而構(gòu)成的,實現(xiàn)了用計算機和網(wǎng)絡(luò)技術(shù)的全數(shù)字化的采集測試分析,因此遠程虛擬儀器的發(fā)展跟計算機和網(wǎng)絡(luò)技術(shù)的發(fā)展步伐完全同步,顯示出其靈活性和強大的生命力,Internet為實現(xiàn)遠程虛擬儀器系統(tǒng)提供了一個很好的平臺,利用瀏覽器/服務(wù)器模式,操控者可以在瀏覽器端控制遠程服務(wù)器進行測試以及進行遠程實驗的操作,從而實現(xiàn)對遠地實驗系統(tǒng)的遠程控制和監(jiān)控。用網(wǎng)絡(luò)技術(shù)組建的遠程虛擬儀器系統(tǒng),可以使信號采集、傳輸和處理一體化,不但可以共享許多昂貴的硬件資源,而且還便于擴展測試系統(tǒng)、提高測試效率,所以應(yīng)用極為廣泛,是