| 研究生: |
李佳益 Li, Chia-yi |
|---|---|
| 論文名稱: |
Linux多執行緒即時控制系統之實現 Implementation of Real-Time Control Systems using Linux Multithread |
| 指導教授: |
何明字
Ho, M. T. |
| 學位類別: |
碩士 Master |
| 系所名稱: |
工學院 - 工程科學系 Department of Engineering Science |
| 論文出版年: | 2008 |
| 畢業學年度: | 96 |
| 語文別: | 中文 |
| 論文頁數: | 126 |
| 中文關鍵詞: | 執行緒 |
| 外文關鍵詞: | thread |
| 相關次數: | 點閱:36 下載:3 |
| 分享至: |
| 查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報 |
現今控制系統的發展中,在控制器的硬體型態方面常用數位訊號處理器來實現,而數位訊號處理器雖具運算速度快之優點,但缺乏作業系統的管理,假使需處理複雜性較高的控制系統時,將無法達到多工(multi-task)的性能。本論文旨在發展Linux作業系統下運用多工的機制來實現即時控制系統,而控制的對象是單擺型天車系統,控制之目的為單擺型天車之定位抗搖晃控制,研究中並建構介面可透過網路連線,由遠端電腦下達即時更新輸入控制命令及調設控制器參數。在實作方面採用德州儀器公司(Texas Instruments, TI)所生產的DaVinci嵌入式開發平台,其內建有MontaVista Linux作業系統,核心處理器型號為TMS320DM6446。本論文藉由多工的設計方式,在MontaVista Linux作業系統上規劃出抗搖晃控制法則及遠端接收輸入命令之多執行緒(multithread)程式。首先接收由遠端透過網路所下達之位置命令後,再由DaVinci 嵌入式平台計算所設計的LQR控制力輸出,再搭配D/A轉換介面和馬達驅動電路完成台車定位控制並抑制單擺的搖晃。最後由實驗結果驗證出本論文所發展的系統可達到多工的運作模式,並且控制系統具有即時之性能。
In the modern control systems, digital signal processors (DSP) are commonly used to realize the controllers. Though computational capability of DSP is powerful, due to lack of the operating system, DSP can’t run on the complex control systems and is unable to fulfill multi-tasks. This thesis is to develop a real-time and multi-tasking control system based on Linux. The control objective is to achieve anti-sway control for the pendulum-type crane. In this study through a developed interface, the user can set the control commands and adjust controllers parameter on-line by the Internet. The system is realized through the DaVinci platform produced by Texas Instruments. This platform uses the MontaVista Linux operating system. The processor of this platform is TMS320DM6446. The multi-tasking operation of the system is based on the multithread program technique to carry out the control and the Internet communication processes. First the DaVinci platform receives the position command from the remote computer through the Internet, then this commands to is used to calculate the control voltage by the controller designed by the LQR technique. Finally, the DaVinci platform generates the control voltage to the motor driver through the D/A converter to fulfill position control of the cart and reduce sway of the pendulum. The experimental results show that the control system is able to carry out the multi-tasking operations with real-time performance.
[1] A. Inoue, M. Deng, and T. Tanabe, “Practical Swing-Up Control System Design of Cart-Type Double Inverted Pendulum,” Proceedings of the 2006 Chinese Control Conference, pp. 2141-2146, 2006.
[2] C. H. Choi, Y. C. Seo, and S. Kim, “Brushless DC Motor Controller for Tele-operation Using Embedded Real-Time Linux,” Proceedings of the 30th IEEE Annual Conference, Vol. 3, pp. 2952-2956, 2004.
[3] W. G. Zanardelli, E. G. Strangas, H. K. Khalil, and J. M. Miller, “Wavelet-Based Methods for the Prognosis of Mechanical and Electrical Failures in Electric Motor,” Mechanical Systems and Signal Processing, Vol. 19, No. 2, pp. 411-426, 2005.
[4] Y. Yano, K. Yabugami, and T. Sakabe, “The Development of a Real-Time Control System for the Ultrasonic Motor and the Building of a Speed Controller Used Temperature Characteristics,” Transactions of the Japan Society of Mechanical Engineers, Part C, Vol. 69, No. 1, pp. 18-25, 2003.
[5] D. W. Gage, “Internet Tools for Sharing Unmanned Vehicle Information,” Proceedings of 21st Annual Technical Symposium and Exhibition of the Association for Unmanned Vehicle Systems, pp. 23-25, 1994.
[6] P. Raja, J. Hernandez, and L. Ruiz, “On Real Time Network Integration in a Manufacturing Application,” IEEE Workshop of Real-Time Application, pp. 12-15, 1993.
[7] W. Mansor, M. Z. Awang, and M. N. Taib, “Software Methodology for Remote Monitoring and Control System,” Proceedings of TENCON 2000, Vol. 3, pp. 509-511, 2000.
[8] T. kikuchi, T. Kenio, and S. Fukuda, “Remote Laboratory for a Brushless DC Motor,” IEEE Transactions on Education, Vol. 44, No. 2, pp. 207, 2001.
[9] H. Wong and V. Kapila, “Internet-Based Remote Control of a DC Motor Using an Embedded Ethernet Microcontroller,” Computers in Education Journal, Vol. 15, No. 3, pp. 57-67, 2005.
[10] D. G. Li, J. Chen, and Z. H. Wu, “Research and Development of In-vehicle Information Platform Based on ARM-Linux,” Journal of Zhejiang University (Engineering Science), Vol. 40, No. 9, pp. 1531-1535, 2006.
[11] J. Y. Su and T. C. Li, “Multitask Based Design of High-Performance Universal AC Servo Controller,” Proceedings of the Chinese Society of Electrical Engineering, Vol. 27, No. 18, pp. 55-60, 2007.
[12] R. Sankaran and P. Avirajamanjula “Closed-Loop Real-Time Speed Control of Single Phase Induction Motor Using a PC,” Journal of the Institution of Engineers (India): Electrical Engineering Division, Vol. 86, No. 12, pp. 177-179, 2005.
[13] M. Crocker, “Motor,” Pulp and Paper International, Vol. 44, No. 12, pp. 38, 2002.
[14] 蕭天賜,「以數位訊號處理器為基礎之多功能控制平台的研製」,國立成功大學工程科學系碩士論文,民國九十四年七月。
[15] 林鈺翔,「雙連桿倒單擺系統甩上與平衡控制」,國立成功大學工程科學系碩士論文,民國九十一年七月。
[16] 洪介仁,「車與桿倒單擺系統之平衡控制」,國立成功大學工程科學系碩士論文,民國九十二年七月。
[17] 詹富強,「以數位信號處理器為基礎單板獨立旋轉型倒單擺甩上與平衡控制系統之實現」,國立成功大學工程科學系碩士論文,民國九十三年七月。
[18] 楊志偉,「以視覺伺服為基礎之倒單擺系統平衡控制」,國立成功大學工程科學系碩士論文,民國九十四年七月。
[19] Linux 核心碼網址,http://www.kernel.org.
[20] IEEE Standards Association網址,http://standards.ieee.org/reguath/ posix/index.html
[21] Q. Li and C. Yao, The Real-Time Concepts for Embedded Systems, CMP Media LLC, California, 2003.
[22] Wind River 網址,http://www.windriver.com
[23] QNX Software Systems網址,http://www.qnx.com
[24] J. J. Labrosse, MicroC/OS-II 2nd ed., CMP Media LLC, California, 2002.
[25] FSMLabs網址, http://www.fsmlabs.com/about/profile
[26] 黃悅民,陳敬,侯廷偉,陳中和,黃慶祥,林志敏,「嵌入式系統設計」,滄海書局,民國九十五年。
[27] C. B. Giorgio, Hard Real-Time Computing systems, Springer-Verlag, New York, 2005.
[28] A. Silberschatz, P. B. Galvin, and G. Gagne, Operating System Principles 7th ed., John Wiley, New York, 2004.
[29] 李傳亮,「TCP/IP 網路實驗程式設計」,全華科技圖書股份有限公司,民國九十年。
[30] 歐宗生,「洞悉UNIX網路原理篇」,和碩科技文化有限公司,民國八十五年。
[31] W. R. Stevens and S. A. Rago, Advanced Programming in the UNIX Environment 2nd ed., Addison-Wesley, Mass., 1992.
[32] NFS伺服器的設定網址,http://linux.vbird.org/linux_server/0330nfs.php
[33] TMS320DM6446 Digital Media System-on-Chip data Manual, Texas Instrument Inc., 2006.
[34] J. Corbet, A. Rubini, and G. K. Hartman, Linux Device Driver 3rd ed., O’Reilly, Sebastopol, 2005.
[35] R. Ortega, A. Loria, P. J. Nicklasson, and H. S. Ramirez, Passivity-Based Control of Euler-Lagrange Systems Mechanical, Electrical and Electromechanical Applications, Springer-Verlag, London, 1998.
[36] P. Dorato, C. Abdallah, and V. Cerone, Linear Quadratic Control, Prentice Hall International Editions, Upper Saddle River, New York, 1995.
[37] B. C. Kuo, Automatic Control Systems, Prentice Hall International Editions, Upper Saddle River, NJ., 1997.