外文翻譯---使用labview fpga模塊開發(fā)可編程自動(dòng)化控制器_第1頁(yè)
已閱讀1頁(yè),還剩13頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、<p><b>  附錄A 譯文</b></p><p>  使用LabVIEW FPGA模塊開發(fā)可編程自動(dòng)化控制器</p><p><b>  綜述</b></p><p>  工業(yè)控制上的應(yīng)用要求高度集成的模擬和數(shù)字輸入輸出、浮點(diǎn)運(yùn)算和多重處理節(jié)點(diǎn)的無(wú)縫連接。因?yàn)樗鼘?duì)這些應(yīng)用的理想解決方案,在工業(yè)控制市場(chǎng)上,

2、可編程自動(dòng)化控制器(PAC)正逐漸被接受。通過(guò)一種普通的軟件開發(fā)環(huán)境NI LabVIEW,國(guó)家儀器公司提供各種可編程自動(dòng)化控制器的解決方案。有了LabVIEW,你可以用像NI LabVIEW FPGA模塊一樣的附加軟件為工業(yè)應(yīng)用開發(fā)自定義輸入輸出界面。</p><p>  為將FPGA技術(shù)的靈活性和可定制性并入工業(yè)PAC系統(tǒng),國(guó)家儀器公司利用LabVIEW FPGA模塊和實(shí)時(shí)輸入輸出(RIO)硬件提供了一種直觀、

3、容易理解的解決方法。無(wú)須了解低級(jí)的硬件描述語(yǔ)言(HDL)或廣泛的硬件設(shè)計(jì)細(xì)節(jié),你可以定義嵌入含有RIO硬件對(duì)象家族的FPGA芯片里的邏輯,也可以快速地為超高速控制、定制的定時(shí)和同步、低級(jí)的信號(hào)處理、用模擬或數(shù)字定制的輸入輸出、一個(gè)單獨(dú)設(shè)備的計(jì)數(shù)器來(lái)定義硬件。你也可以將得到的圖像、分析、運(yùn)動(dòng)控制、比如CAN和RS232一樣的工業(yè)協(xié)議集成到你的定制NI RIO(實(shí)時(shí)輸入輸出)硬件,這樣就可以快速地事先并標(biāo)準(zhǔn)一個(gè)完整的PAC系統(tǒng)。</p

4、><p><b>  1 簡(jiǎn)介</b></p><p>  你可以使用LavVIEW和LavVIEW FPGA 模塊的圖形編程功能在NI RIO器件上配置FPGA(現(xiàn)場(chǎng)可編程門陣列)。將LabVIEW圖形編程功能和FPGA融合在NIRIO硬件上的就是RIO技術(shù)。它為開發(fā)復(fù)雜的測(cè)量和操作系統(tǒng)提供了靈活的平臺(tái),而這些你以前只能用定制設(shè)計(jì)的硬件來(lái)做。  FPG

5、A是一種包含許多未配置邏輯門的芯片。不像那些ASIC(專用集成電路)的芯片只有固定的廠家定制好的功能,你可以為你的特殊的應(yīng)用配置或重新配置FPGA上的邏輯關(guān)系。無(wú)論是開發(fā)制作ASIC(專用集成電路)的成本有限還是一大硬件投入使用就要重新配置都可以使用FPGA。由于FPGA的靈活和可軟件編程的架構(gòu),使得定制算法的高精度實(shí)施、精準(zhǔn)的定時(shí)和同步、快速?zèng)Q策和多功能同時(shí)運(yùn)行更容易。今天,F(xiàn)PGA正出現(xiàn)在儀器、消費(fèi)電子產(chǎn)品、汽車、航天器、復(fù)印機(jī)和專

6、用的計(jì)算機(jī)硬件上。雖然FPGA經(jīng)常用于工業(yè)控制產(chǎn)品,它先前的功能在工業(yè)控制器械上是不容易應(yīng)用的。由于定義FPGA需要使用硬件描述語(yǔ)言和復(fù)雜設(shè)計(jì)工具的專門技術(shù),自古就是硬件設(shè)計(jì)工程師比控制工程師用FPGA的多。</p><p>  有了LabVIEW FPGA模塊和NI RIO硬件,你可以用為測(cè)量和控制應(yīng)用特殊設(shè)計(jì)的LabVIEW這種高級(jí)的圖形開發(fā)環(huán)境來(lái)開發(fā)PAC了,開發(fā)具有FPGA的專門化、靈活性及高精確性的PA

7、C。因?yàn)長(zhǎng)abVIEW FPGA 模塊將定制的電路配置到硬件中,所以你的系統(tǒng)可以快速而精確地處理和產(chǎn)生同步的模擬和數(shù)字信號(hào)。可以用LabVIEW FPGA 模塊來(lái)配置的NI RIO器件。</p><p>  2 可編程自動(dòng)化控制器的NIRIO硬件</p><p>  在以前,F(xiàn)PGA編程僅限于熟習(xí)VHDL或其他低端設(shè)計(jì)工具的工程師,也就是說(shuō)他需要征服艱難的學(xué)習(xí)過(guò)程。有了LabVIEW FP

8、GA 模塊,NI公司讓更多領(lǐng)域的工程師能使用FPGA技術(shù),他們能用LabVIEW圖形開發(fā)功能定義FPGA的邏輯。測(cè)量和控制工程師就可以只關(guān)注他們所擅長(zhǎng)的測(cè)試與控制的應(yīng)用,而不是專注于將邏輯轉(zhuǎn)換成芯片單元的低級(jí)語(yǔ)義。LabVIEW FPGA 模塊模型之所以有如此有用,是因?yàn)樗鼘abVIEW FPGA 模塊與FPGA的商業(yè)的未定制(COTS)硬件結(jié)構(gòu)、周圍輸入輸出元件緊密結(jié)合在一起。</p><p>  NI的可編

9、程自動(dòng)化控制器為你的工業(yè)控制應(yīng)用提供了標(biāo)準(zhǔn)的、未定制的平臺(tái)。有了RIO在PCI、PXI、緊湊型視覺(jué)系統(tǒng)平臺(tái)和基于RIO的緊湊的RIO引入,工程師們正受益于一個(gè)具有FPGA的高性能、靈活性、專用化優(yōu)勢(shì)的商業(yè)未定制平臺(tái),結(jié)果是能隨心所欲地開發(fā)PAC。</p><p>  NI的PCI和PXI的R系列的插件設(shè)備提供了模擬和數(shù)字?jǐn)?shù)據(jù)獲取,針對(duì)高性能、用戶可配置的定時(shí)和同步、在單個(gè)設(shè)備上的板載決定等功能。利用這些未定制設(shè)備

10、,你可以將你的NI PXI或PCI工業(yè)控制系統(tǒng),擴(kuò)展為具有高速離散和模擬信號(hào)控制、自定義傳感器接口、精確定時(shí)和控制的系統(tǒng)。</p><p>  NI 緊湊RIO:一個(gè)以RIO技術(shù)為核心的平臺(tái),提供了一個(gè)小的,工業(yè)上半成品的標(biāo)準(zhǔn)PAC平臺(tái)。它能在系統(tǒng)定時(shí)方面帶給你高性能輸入輸出和空前靈活性。你可以用NI 緊湊的RIO為諸如車載數(shù)據(jù)采集、汽車NVH(噪聲振動(dòng)和聲振粗糙度Noise Vibration Harshnes

11、s)測(cè)試和內(nèi)置機(jī)械控制系統(tǒng)的應(yīng)用,開發(fā)內(nèi)置系統(tǒng)。半成的緊湊RIO系統(tǒng)是工業(yè)評(píng)估與鑒定的,是為在大于50g震動(dòng)和在-40到70°C的溫度范圍內(nèi)設(shè)計(jì)的。</p><p>  NI緊湊型視覺(jué)系統(tǒng)是一個(gè)半成的機(jī)器視覺(jué)包裝,他需要經(jīng)受在機(jī)器人技術(shù)中常見(jiàn)的苛刻的環(huán)境、自動(dòng)化測(cè)試和工業(yè)檢測(cè)系統(tǒng)。NI的CVS-145x設(shè)備為分布式的機(jī)器視覺(jué)應(yīng)用提供了空前的輸入輸出能力和網(wǎng)絡(luò)連接。NI的CVS-145x系統(tǒng)應(yīng)用IEEE的

12、1394(火線)技術(shù),可以與40多種有各種各樣功能、性能和價(jià)值的照相機(jī)兼容。NI的CVS-1455和NI的CVS-1456設(shè)備包含可配置的FPGA,所以你可以在你的機(jī)器視覺(jué)應(yīng)用中實(shí)現(xiàn)計(jì)數(shù)器自定義、定時(shí)或電機(jī)控制。</p><p>  3 利用LabVIEW和LabVIEW FPGA 模塊開發(fā)可編程自動(dòng)化控制器</p><p>  有了LabVIEW 和LabVIEW FPGA 模塊,你就為

13、你的工業(yè)控制硬件增加了重要的靈活性和專用化。因?yàn)樵S多PAC已經(jīng)使用LabVIEW編程的,所以用LabVIEW為FPGA編程很容易,因?yàn)樗彩褂孟嗤琇abVIEW開發(fā)環(huán)境。當(dāng)你把目標(biāo)定為在NI的RIO(實(shí)時(shí)輸入輸出),LabVIEW就只顯示可以在FPGA中實(shí)現(xiàn)的功能,這樣進(jìn)一步使得用LabVIEW為FPGA編程變簡(jiǎn)單LabVIEW FPGA 模塊功能版上包含典型的LabVIEW結(jié)構(gòu)與功能,比如while循環(huán)、for循環(huán)、case結(jié)構(gòu)、se

14、quence結(jié)構(gòu)、一系列專業(yè)的LabVIEW 中FPGA專屬的數(shù)學(xué)函數(shù)、信號(hào)產(chǎn)生于分析、線性與非線性控制、對(duì)比邏輯、數(shù)組和簇操作、Occurrence(意思是事件發(fā)生,Occurrence技術(shù)也用于控制相互獨(dú)立的程序同步運(yùn)行)、信號(hào)輸入與輸出和定時(shí)。你可以用這些功能的組合往你的NI RIO設(shè)備上定義邏輯和嵌入信息。</p><p>  在NI的RIO硬件上實(shí)現(xiàn)PID(比例積分微分)控制算法的FPGA應(yīng)用和一組在W

15、indows機(jī)器或RT對(duì)象和NI的RIO硬件通信的應(yīng)用。這種應(yīng)用讀取模擬輸入操作(AIO),運(yùn)行PID計(jì)算,并將結(jié)果數(shù)據(jù)輸出到模擬輸出操作上(AOO)。當(dāng)FPGA時(shí)鐘運(yùn)行在40MHz時(shí),這個(gè)例子中的循環(huán)運(yùn)行的就很慢,因?yàn)槊恳唤M件需要長(zhǎng)于一個(gè)時(shí)鐘循環(huán)的時(shí)間來(lái)執(zhí)行。模擬控制循環(huán)在FPGA上能運(yùn)行在大約200kHz。你可以指定時(shí)鐘頻率為編譯的時(shí)間。這個(gè)例子只展示了PID的循環(huán),然而,在NI的RIO設(shè)備上創(chuàng)造額外功能僅僅是增加另外一個(gè)while

16、循環(huán)。不像傳統(tǒng)的PC處理器,F(xiàn)PGA是并行處理器。在你的應(yīng)用上增加額外循環(huán)不會(huì)影響你的PID循環(huán)的表現(xiàn)。</p><p>  4 FPGA開發(fā)流程</p><p>  等你創(chuàng)建了LabVIEW FPGA VI后,應(yīng)該編譯將在NI的RIO硬件上運(yùn)行的代碼。根據(jù)你的代碼的復(fù)雜性和開發(fā)系統(tǒng)的規(guī)格,為一個(gè)FPGA VI的編譯時(shí)間將從數(shù)分鐘到數(shù)小時(shí)不等。為了是開發(fā)效能最大,利用R系列的RIO設(shè)備,你

17、可以用精確到1比特的仿真模式,那樣就可以在開始編譯進(jìn)程之前檢驗(yàn)?zāi)阍O(shè)計(jì)的邏輯。當(dāng)你用FPGA仿真設(shè)備是,LabVIEW由該設(shè)備進(jìn)行輸入輸出,并且在Windows電腦上執(zhí)行VI的邏輯。在這種模式,你可以用LabVIEW里的針對(duì)Windows的相同調(diào)試工具,比如重點(diǎn)執(zhí)行、探針、斷點(diǎn)。    一旦LabVIEW FPGA的代碼被編譯,你就創(chuàng)建了一個(gè)LabVIEW “主機(jī)” VI來(lái)將你的NI RIO硬件整合到了

18、PAC系統(tǒng)。圖三闡明了創(chuàng)建FPGA應(yīng)用程序的開發(fā)過(guò)程?!爸鳈C(jī)” VI運(yùn)用在FPGA VI面板的控制器和指示器來(lái)在RIO設(shè)備上的FPGA和“主機(jī)”處理機(jī)械之間傳遞數(shù)據(jù)。這些面板被描述為FPGA上的數(shù)據(jù)寄存器?!爸鳈C(jī)”既可以是運(yùn)行在Windows、個(gè)人計(jì)算機(jī)、PXI控制器或緊湊型視覺(jué)系統(tǒng)的PC或PXI控制器,也可以是運(yùn)行在實(shí)時(shí)操作系統(tǒng)(RTOS)上的緊湊RIO控制器。</p><p>  NI的RIO設(shè)備驅(qū)動(dòng)程序包括

19、一系列為開發(fā)FPGA上通信接口的功能。構(gòu)建主機(jī)VI的第一步是打開一個(gè)對(duì)FPGA VI和RIO設(shè)備的引用。打開了FPGA VI的引用,也就在執(zhí)行時(shí)下載并運(yùn)行了編譯過(guò)的FPGA代碼。打開引用后,你就能用讀寫控制函數(shù)對(duì)在FPGA上的控制器和指示器寄存器進(jìn)行讀寫。一旦你將FPGA引用寫到函數(shù)內(nèi),你只要選擇你想讀寫的控制器和指示器就可以了。你可以將FPGA讀寫函數(shù)封裝在while循環(huán)內(nèi)一邊持續(xù)地對(duì)FPGA進(jìn)行讀寫。最后,LabVIEW主機(jī)VI的最

20、后一個(gè)函數(shù)就是FPGA VI引用的關(guān)閉函數(shù)。它停止了FPGA VI并關(guān)閉了對(duì)設(shè)備的引用?,F(xiàn)在你就能通過(guò)將其他的已編譯FPGA VI下載到設(shè)備來(lái)更改它的功能了。    LabVIEW 主機(jī)VI也能用來(lái)進(jìn)行浮點(diǎn)運(yùn)算、數(shù)據(jù)記錄、網(wǎng)絡(luò)及任何不合適FPGA構(gòu)造的計(jì)算。因?yàn)樵鰪?qiáng)了確定性與可靠性,你可以在一個(gè)有LabVIEW實(shí)時(shí)模塊的RTOS(實(shí)時(shí)操作系統(tǒng))上運(yùn)行你的主機(jī)應(yīng)用。LabVIEW實(shí)施系統(tǒng)能為與FPGA同

21、時(shí)或不同時(shí)的功能提供確切的運(yùn)算器。例如,浮點(diǎn)算法,包括快速傅里葉變換法、PID比例積分微分算法、自定義控制算法,經(jīng)常在La</p><p>  在每個(gè)R系列和緊湊RIO設(shè)備里都有可利用的閃存來(lái)存儲(chǔ)已編譯的LabVIEW 的FPGA VI,都能立即在設(shè)備的電源下運(yùn)行應(yīng)用程序。這種構(gòu)造,因?yàn)镕PGA有電源,它能運(yùn)行FPGA VI,甚至在主機(jī)崩潰或斷電時(shí)。當(dāng)發(fā)生意外時(shí)這對(duì)安全編程的掉電上電序列是很理想的。</p&

22、gt;<p>  5 用NI SoftMotion控制器開發(fā)自定義運(yùn)動(dòng)控制器</p><p>  函數(shù)NI 的SoftMotion開發(fā)模塊可以包括NI RIO設(shè)備、DAQ設(shè)備和緊湊FieldPoint。它為L(zhǎng)abVIEW提供VI和幫助你開發(fā)自定義運(yùn)動(dòng)控制器的函數(shù),作為NI PAC硬件平臺(tái)的一部分。NI的SoftMotion控制器提供各種各樣的函數(shù),這些函數(shù)以存在運(yùn)動(dòng)控制器DSP上為特色。有了Soft

23、Motion,你能解決路徑設(shè)計(jì)、產(chǎn)生軌跡、NI LabVIEW環(huán)境下的位置和速度循環(huán)控制,然后將編碼展開在LabVIEW實(shí)時(shí)系統(tǒng)或基于LabVIEW FPGA的硬件。</p><p>  NI SoftMotion控制包括軌線發(fā)生器、樣條引擎和利用PID算法有完整源代碼的監(jiān)督控制、位置速度控制循環(huán)。監(jiān)督控制和軌線發(fā)生器在LabVIEW實(shí)時(shí)目標(biāo)下運(yùn)行,而且運(yùn)行在毫秒級(jí)循環(huán)速度。樣條引擎和控制循環(huán)及可以運(yùn)行在LabV

24、IEW實(shí)施目標(biāo)毫秒循環(huán)速度下,也可以在LabVIEW FPGA目標(biāo)微妙循環(huán)速度下。</p><p><b>  6 應(yīng)用</b></p><p>  因?yàn)長(zhǎng)abVIEW FPGA模塊可以配置FPGA的低端硬件設(shè)計(jì),也能在標(biāo)準(zhǔn)系統(tǒng)里利用FPGA ,所以這對(duì)需要自定義硬件的工業(yè)控制應(yīng)用是很理想的。這些自定義應(yīng)用包括了數(shù)字模擬信號(hào)的自定義混合,計(jì)時(shí)器的I/O,高達(dá)125KH

25、z的模擬控制,20MHz的數(shù)字控制,及下列控制的自定義數(shù)字協(xié)議界面:</p><p><b>  a.批量控制</b></p><p><b>  b.離散控制</b></p><p><b>  c.運(yùn)動(dòng)控制</b></p><p><b>  d.車載數(shù)據(jù)獲取&l

26、t;/b></p><p><b>  e.機(jī)器條件檢測(cè)</b></p><p><b>  f.快速控制原型</b></p><p><b>  g.工業(yè)控制及獲取</b></p><p>  h.分布式數(shù)據(jù)獲取及控制</p><p>  i.手

27、機(jī)手提NVH(噪聲振動(dòng)和聲振粗糙度Noise Vibration Harshness)分析</p><p><b>  7 結(jié)論</b></p><p>  LabVIEW FPGA 模塊為PAC平臺(tái)帶來(lái)了FPGA的靈活性、性能及專業(yè)化。利用NI RIO設(shè)備和LabVIEW 圖形編程,你可以利用在工業(yè)控制應(yīng)用中經(jīng)常用到的COTS硬件開發(fā)靈活及專業(yè)的硬件。因?yàn)槟阍谟肔a

28、bVIEW,一種在很多工業(yè)控制應(yīng)用中用到的語(yǔ)言,來(lái)定義你的NI RIO硬件,所以沒(méi)有必要學(xué)習(xí)VHDL或其他低端硬件設(shè)計(jì)工具來(lái)開發(fā)專業(yè)硬件。將LabVIEW FPGA 模塊和NI RIO硬件作為你NI PAC能為需要超高速控制、自定義數(shù)字平臺(tái)界面、自定義數(shù)字模擬信號(hào)混合、計(jì)時(shí)器的應(yīng)用增加重要的靈活性和功能。</p><p><b>  附錄B 外文文獻(xiàn)</b></p><p

29、>  Building Programmable Automation Controllers with LabVIEW FPGA</p><p><b>  Overview</b></p><p>  Programmable Automation Controllers (PACs) are gaining acceptance within the in

30、dustrial control market as the ideal solution for applications that require highly integrated analog and digital I/O, floating-point processing, and seamless connectivity to multiple processing nodes. National Instrument

31、s offers a variety of PAC solutions powered by one common software development environment, NI LabVIEW. With LabVIEW, you can build custom I/O interfaces for industrial applications using add-on softwa</p><p&g

32、t;  With the LabVIEW FPGA Module and reconfigurable I/O (RIO) hardware, National Instruments delivers an intuitive, accessible solution for incorporating the flexibility and customizability of FPGA technology into indust

33、rial PAC systems. You can define the logic embedded in FPGA chips across the family of RIO hardware targets without knowing low-level hardware description languages (HDLs) or board-level hardware design details, as well

34、as quickly define hardware for ultrahigh-speed control, customiz</p><p>  1 Introduction </p><p>  You can use graphical programming in LabVIEW and the LabVIEW FPGA Module to configure the FPGA

35、(field-programmable gate array) on NI RIO devices. RIO technology, the merging of LabVIEW graphical programming with FPGAs on NI RIO hardware, provides a flexible platform for creating sophisticated measurement and contr

36、ol systems that you could previously create only with custom-designed hardware.</p><p>  An FPGA is a chip that consists of many unconfigured logic gates. Unlike the fixed, vendor-defined functionality of an

37、 ASIC (application-specific integrated circuit) chip, you can configure and reconfigure the logic on FPGAs for your specific application. FPGAs are used in applications where either the cost of developing and fabricating

38、 an ASIC is prohibitive, or the hardware must be reconfigured after being placed into service. The flexible, software-programmable architecture of FPGAs offer ben</p><p>  With the LabVIEW FPGA Module and NI

39、 RIO hardware, you now can use LabVIEW, a high-level graphical development environment designed specifically for measurement and control applications, to create PACs that have the customization, flexibility, and high-per

40、formance of FPGAs. Because the LabVIEW FPGA Module configures custom circuitry in hardware, your system can process and generate synchronized analog and digital signals rapidly and deterministically. Many of the NI RIO d

41、evices that you can confi</p><p>  2 NIRIO Hardware for PACs </p><p>  Historically, programming FPGAs has been limited to engineers who have in-depth knowledge of VHDL or other low-level design

42、 tools, which require overcoming a very steep learning curve. With the LabVIEW FPGA Module, NI has opened FPGA technology to a broader set of engineers who can now define FPGA logic using LabVIEW graphical development. M

43、easurement and control engineers can focus primarily on their test and control application, where their expertise lies, rather than the low-level semantics o</p><p>  National Instruments PACs provide modula

44、r, off-the-shelf platforms for your industrial control applications. With the implementation of RIO technology on PCI, PXI, and Compact Vision System platforms and the introduction of RIO-based CompactRIO, engineers now

45、have the benefits of a COTS platform with the high-performance, flexibility, and customization benefits of FPGAs at their disposal to build PACs. National Instruments PCI and PXI R Series plug-in devices provide analog a

46、nd digital data acqu</p><p>  NI CompactRIO, a platform centered on RIO technology, provides a small, industrially rugged, modular PAC platform that gives you high-performance I/O and unprecedented flexibili

47、ty in system timing. You can use NI CompactRIO to build an embedded system for applications such as in-vehicle data acquisition, mobile NVH testing, and embedded machine control systems. The rugged NI CompactRIO system i

48、s industrially rated and certified, and it is designed for greater than 50 g of shock at a temperature </p><p>  NI Compact Vision System is a rugged machine vision package that withstands the harsh environm

49、ents common in robotics, automated test, and industrial inspection systems. NI CVS-145x devices offer unprecedented I/O capabilities and network connectivity for distributed machine vision applications.NI CVS-145x system

50、s use IEEE 1394 (FireWire) technology, compatible with more than 40 cameras with a wide range of functionality, performance, and price. NI CVS-1455 and NI CVS-1456 devices contain config</p><p>  3 Building

51、PACs with LabVIEW and the LabVIEW FPGA Module</p><p>  With LabVIEW and the LabVIEW FPGA Module, you add significant flexibility and customization to your industrial control hardware. Because many PACs are a

52、lready programmed using LabVIEW, programming FPGAs with LabVIEW is easy because it uses the same LabVIEW development environment. When you target the FPGA on an NI RIO device, LabVIEW displays only the functions that can

53、 be implemented in the FPGA, further easing the use of LabVIEW to program FPGAs. The LabVIEW FPGA Module Functions palette inclu</p><p>  an FPGA application that implements a PID control algorithm on the NI

54、 RIO hardware and a host application on a Windows machine or an RT target that communicates with the NI RIO hardware. This application reads from analog input 0 (AI0), performs the PID calculation, and outputs the result

55、ing data on analog output 0 (AO0). While the FPGA clock runs at 40 MHz the loop in this example runs much slower because each component takes longer than one-clock cycle to execute. Analog control loops can run </p>

56、;<p>  4 FPGA Development Flow </p><p>  After you create the LabVIEW FPGA VI, you compile the code to run on the NI RIO hardware. Depending on the complexity of your code and the specifications of yo

57、ur development system, compile time for an FPGA VI can range from minutes to several hours. To maximize development productivity, with the R Series RIO devices you can use a bit-accurate emulation mode so you can verify

58、the logic of your design before initiating the compile process. When you target the FPGA Device Emulator, LabVIEW accesse</p><p>  Once the LabVIEW FPGA code is compiled, you create a LabVIEW host VI to inte

59、grate your NI RIO hardware into the rest of your PAC system. the development process for creating an FPGA application. The host VI uses controls and indicators on the FPGA VI front panel to transfer data between the FPGA

60、 on the RIO device and the host processing engine. These front panel objects are represented as data registers within the FPGA. The host computer can be either a PC or PXI controller running Windows or a </p><

61、p>  The NI RIO device driver includes a set of functions to develop a communication interface to the FPGA. The first step in building a host VI is to open a reference to the FPGA VI and RIO device. The Open FPGA VI Re

62、ference function, also downloads and runs the compiled FPGA code during execution. After opening the reference, you read and write to the control and indicator registers on the FPGA using the Read/Write Control function.

63、 Once you wire the FPGA reference into this function, you can simpl</p><p>  The LabVIEW host VI can also be used to perform floating-point calculations, data logging, networking, and any calculations that d

64、o not fit within the FPGA fabric. For added determinism and reliability, you can run your host application on an RTOS with the LabVIEW Real-Time Module. LabVIEW Real-Time systems provide deterministic processing engines

65、for functions performed synchronously or asynchronously to the FPGA. For example, floating-point arithmetic, including FFTs, PID calculations, and cus</p><p>  Within each R Series and CompactRIO device, the

66、re is flash memory available to store a compiled LabVIEW FPGA VI and run the application immediately upon power up of the device. In this configuration, as long as the FPGA has power, it runs the FPGA VI, even if the hos

67、t computer crashes or is powered down. This is ideal for programming safety power down and power up sequences when unexpected events occur.</p><p>  5 Using NI SoftMotion to Create Custom Motion Controllers

68、</p><p>  The NI SoftMotion Development Module for LabVIEW provides VIs and functions to help you build custom motion controllers as part of NI PAC hardware platforms that can include NI RIO devices, DAQ dev

69、ices, and Compact FieldPoint. NI SoftMotion provides all of the functions that typically reside on a motion controller DSP. With it, you can handle path planning, trajectory generation, and position and velocity loop con

70、trol in the NI LabVIEW environment and then deploy the code on LabVIEW Real-Time or</p><p>  NI SoftMotion includes functions for trajectory generator and spline engine and examples with complete source code

71、 for supervisory control, position, and velocity control loop using the PID algorithm. Supervisory control and the trajectory generator run on a LabVIEW Real-Time target and run at millisecond loop rates. The spline engi

72、ne and the control loop can run either on a LabVIEW Real-Time target at millisecond loop rates or on a LabVIEW FPGA target at microsecond loop rates.</p><p>  6 Applications </p><p>  Because th

73、e LabVIEW FPGA Module can configure low-level hardware design of FPGAs and use the FPGAs within in a modular system, it is ideal for industrial control applications requiring custom hardware. These custom applications ca

74、n include a custom mix of analog, digital, and counter/timer I/O, analog control up to 125 kHz, digital control up to 20 MHz, and interfacing to custom digital protocols for the following:</p><p>  a.Batch c

75、ontrol</p><p>  b.Discrete control</p><p>  c.Motion control</p><p>  d.In-vehicle data acquisition</p><p>  e.Machine condition monitoring</p><p>  f.Rapi

76、d control prototyping (RCP)</p><p>  g.Industrial control and acquisition</p><p>  h.Distributed data acquisition and control</p><p>  i.Mobile/portable noise, vibration, and harshn

77、ess (NVH) analysis</p><p>  7 Conclusion </p><p>  The LabVIEW FPGA Module brings the flexibility, performance, and customization of FPGAs to PAC platforms. Using NIRIO devices and LabVIEW graph

78、ical programming, you can build flexible and custom hardware using the COTS hardware often required in industrial control applications. Because you are using LabVIEW, a programming language already used in many industria

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫(kù)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論