首页 > 代码库 > Configure Pi as simulation hardware for Simulink
Configure Pi as simulation hardware for Simulink
1. Only version not older than R2013 supports Raspberry Pi. First, download support package in Matlab:
http://www.mathworks.cn/matlabcentral/fx_files/40313/5/raspberrypi.zip
2. Open raspberrypi.mlpkginstall in Matlab, and just follow the instructions, you will get everything ready.
3. After installation, get your Pi connected into the router in your home, and remember the IP address in management page, because Matlab connecting Pi via SSH.
4. Open Simulink in Matlab, add a new model, configure SinWave and Gain.
5. Open Model Configuration Parameters, or Ctrl+E.
Configure the IP address , user name is pi, password is raspberry.
6. Configure simulation, time is inf, device is External.
7. Run it.
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。