透過您的圖書館登入
IP:18.188.171.53
  • 學位論文

利用Matlab編寫低階單晶片程式以建構控制系統之硬體

USING MATLAB TO PROGRAMING MICROCHIPS FOR HARDWARE IMPLEMENTATION

指導教授 : 蕭富元

摘要


本篇論文主要探討如何將Simulink的模型,透過Real-Time Workshop toolbox轉換為C程式語言,並燒入至單晶片中,以簡化硬體實做時的程序。首先,我們先建立一個簡單的simulink模型 來學習如何利用 Real-Time Workshop toolbox 將此模型轉為C碼,此C碼經過必要的修改後,再將之燒錄至單晶片中。經過模擬軟體與實際電路的測試,我們發現此套程序是可行的。於是我們由簡至繁,分別測試各種不同的模型、並透過實作驗證,由Real-Time Workshop toolbox轉譯出來的控制器,在經過簡單修改後,其效能與在Simulink上表現一致。此外,我們亦探討了模型轉譯的過程中,所需記憶體的規模問題。本研究主要為日後相關系統控制實做奠基,期能透過簡單的模型轉譯手段,免除非資工背景工程人員編寫單晶片C碼之不便。

關鍵字

Simulink Real-Time Workshop 單晶片 C碼

並列摘要


This thesis investigates the process to translate a simulink model to C codes, and to implement the C codes on a microchip for control purpose. First of all, we establish a simple simulink model to learn the translation process using the Real-Time Workshop toolbox. After the C codes are generated, it should be slightly modified before microchip usage. This process is verified to be successful by simulations and experiments. Then various control models, including simple and complicated ones, are tested and verified to be functional. Hardware-in-loop simulations demonstrate that the performance of translated system is as good as it was in the simulink. Moreover, we realize that the memory requirement may become an important issue in the translation. As a result, we also investigate this problem in this thesis. This thesis potentially contributes to future hardware implementation for control purpose, since it simplifies the process to coding a microchip, which is not a profession of an engineer with non-computer-science background.

並列關鍵字

Simulink Real-Time Workshop Microchip C code

參考文獻


[2] 鈦思科技股份有限公司,“視覺化建模環境-Simulink 入門與進階”, 鈦思科
技股份有限公司,2001.
[10] Y.C. Chen, F.Y. Hsiao, J.F. Shen, F.C. Hung, and S.Y. Lin, Application of Matlab to the Vision-Based Navigation of UAVs, IEEE, 2010.
[12] Daniel Ernst, Kimon Valavanis, Richard Garcia, and Jeff Craighead, Unmanned Vehicle Controller Design, Evaluation and Implementation: From MATLAB to Printed Circuit Board, Springer, 2007.
[1] 黃永安.馬路.劉慧敏,“MATLAB7.0/Simulink6.0建模仿真開發與高級

被引用紀錄


葉建廷(2015)。應用MATLAB GUI開發建築風載重計算分析系統〔碩士論文,淡江大學〕。華藝線上圖書館。https://doi.org/10.6846/TKU.2015.00933

延伸閱讀