Arduino和Matlab上位机编程.docx

  1. 1、本文档共7页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
1. 下载Matlab的ArduinoIO: /matlabcentral/fileexchange/32374-matlab-support-package-for-arduino--aka-arduinoio-package- 将下载的文件解压缩,将里边的文件adioes.pde烧录到Arduino开发板中(作为和Matlab交互的程序) 2. 使用Matlab的GUIDE界面设计工具 命令行输入 : guide 弹出图形界面生成窗口,编辑你的GUI。 保存,运行。首次运行可能会出错误,在命令行执行: clear all.? 然后再执行刚才的GUI程序即可。 3. matlab的GUI程序生成可执行文件的方法 如何把Matlab语言编写的函数文件编译成可独立执行的*.exe文件(即可脱离Matalab环境的执行程序),首先要安装和配置好Matlab Compiler,一般来说,在安装Matlab时就已经安装了相应版本的Matlab Compiler。 Matlab Compiler下载地址: ?/support/compilers/R2012b/win64.html#matlab ? ?? ? 在命令窗口输入 mbuild –setup mbuild -setup ? Welcome to mbuild -setup.? This utility will help you set up ? a default compiler.? For a list of supported compilers, see ? /support/compilers/R2012b/win64.html? ? Please choose your compiler for building shared libraries or COM components:? ? Would you like mbuild to locate installed compilers [y]/n? N ? Select a compiler:? [1] Microsoft Software Development Kit (SDK) 7.1? [2] Microsoft Visual C++ 2005 SP1? [3] Microsoft Visual C++ 2008 SP1? [4] Microsoft Visual C++ 2010? ? [0] None? ? Compiler: 2 ? Warning: The default location for Microsoft Visual C++ 2005 SP1 compiler is:? ???????? C:\Program Files (x86)\Microsoft Visual Studio 8? ???????? but either that directory does not exist or the configuration? ???????? is invalid.? ? Use C:\Program Files (x86)\Microsoft Visual Studio 8 anyway [y]/n? N Please enter the location of your compiler: [C:\Program Files (x86)\Microsoft Visual Studio 8] D:\Program Files (x86)\Microsoft Visual Studio 8 ? Please verify your choices:? ? Compiler: Microsoft Visual C++ 2005 SP1 ? Location: D:\Program Files (x86)\Microsoft Visual Studio 8? ? Are these correct [y]/n? Y ? ***************************************************************************? ? Warning: Support for Microsoft Visual C++ 2005 SP1 will be discontinued in a ? ?????????? future release, at which time new versions will be supported. ? ?????????? For a list of currently supported compilers see: ? ?????????? /support/compilers/R2012b/wi

文档评论(0)

a13355589 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档