1 / 18

國立台灣大學生物產業機電工程研究所 簡君良

國立台灣大學生物產業機電工程研究所 簡君良. 複製到 WindowsSystem32 資料夾下 在執行視窗中輸入 regsvr32 picocx.ocx. 程式撰寫. 本範例為 Visual Basic 2008 所撰寫 可由 http://www.microsoft.com/express/ 取得. 程式撰寫 ( 第一次使用 ). 程式撰寫 ( 第一次使用 ). 程式撰寫 ( 第一次使用 ). 程式撰寫 ( 第一次使用 ). 程式撰寫 ( 第一次使用 ). 說明接下來的動作 近一步研究構想 是否需要與更多人進行討論? 後續動作 將想法付諸實現.

brenna
Download Presentation

國立台灣大學生物產業機電工程研究所 簡君良

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 國立台灣大學生物產業機電工程研究所 簡君良 National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  2. 複製到Windows\System32\資料夾下 在執行視窗中輸入regsvr32 picocx.ocx National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  3. 程式撰寫 本範例為Visual Basic 2008所撰寫 可由http://www.microsoft.com/express/取得 National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  4. 程式撰寫(第一次使用) National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  5. 程式撰寫(第一次使用) National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  6. 程式撰寫(第一次使用) National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  7. 程式撰寫(第一次使用) National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  8. 程式撰寫(第一次使用) • 說明接下來的動作 • 近一步研究構想 • 是否需要與更多人進行討論? • 後續動作 • 將想法付諸實現 National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  9. 程式撰寫(第一次使用) 在工具箱中已能看見PICOCX Control National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  10. 程式撰寫 National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  11. AxPICOCX1.IP = "192.168.0.200" National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  12. 讀取類比資料 • AxPICOCX1.ADinp(PICOCXLib.PICNIC_PORT.PortA, 5) • 讀取數位資料 • AxPICOCX1.Inp(PICOCXLib.PICNIC_PORT.PortB, 3) National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  13. 數位輸出 • Call AxPICOCX1.Outp(PICOCXLib.PICNIC_PORT.PortB, 4, PICOCXLib.LOGIC.High) • Call AxPICOCX1.Outp(PICOCXLib.PICNIC_PORT.PortB, 4, PICOCXLib.LOGIC.Low) National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  14. Call AxPICOCX1.Dirp(PICOCXLib.PICNIC_PORT.PortB, 4, PICOCXLib.DIR.pinInput) 讀取PORT為輸入或輸出 AxPICOCX1.GetDirp(PICOCXLib.PICNIC_PORT.PortB, 4) National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  15. Port RA0Dirp RA0Value RB4Dirp RB4Value RB4H RB4L RA0Input RA0Output RB4Input RB4Output National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  16. National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  17. National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

  18. National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

More Related