Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples
現在この提出コンテンツをフォロー中です。
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます
編集メモ: This file was selected as MATLAB Central Pick of the Week
simulink-device-drivers
Developing Simulink® Device Driver Blocks: Step-By-Step Guide and Examples
This package contains a guide that explains, in a step-by-step fashion, how to develop device driver blocks (blocks that perform target-specific functions when executed on a target platform). Example drivers for:
-) Arduino digital output, -) Arduino digital input, -) Arduino analog output, -) Arduino encoder read,
are included.
While the examples are built using the Arduino® as the hardware platform (specifically relying on the Simulink Support Package for Arduino), the method applies to any other supported target.
In this guide, the first method to develop device drivers is based on the S-Function Builder block. Following chapters also describe different methods based respectively on the Legacy Code tool, the MATLAB function block, and the System Object block. Advantages and disadvantages of each method are discussed in the guide.
Finally, note that for MATLAB 2013b you will need to apply a fix for the S-Function builder to develop blocks with no input. To do so, go to the following page: http://www.mathworks.com/support/bugreports/1006532 , scroll down to the bottom, and follow the instructions therein.
引用
Giampiero Campa (2026). Device Drivers (https://github.com/giampy1969/simulink-device-drivers/releases/tag/v1.7.0), GitHub. に取得済み.
謝辞
ヒントを得たファイル: Simulink Support Package for Arduino Hardware, Simulink Support Package for Raspberry Pi Hardware
ヒントを与えたファイル: Driver for Arduino Data Logging Shield, Play a Tune on Arduino, Arduino - Loop Time S-Function, Device Drivers for the BeagleBone Black, Arduino Additional Sensors Library (DHT, LPS331), Soft Real Time, Data Logger on Arduino UNO, Rensselaer Arduino Support Package Library (RASPLib), Raspberry Pi Simulink Driver Blocks ADC DAC PWM, Arduino Udp Ethernet Shield, 3 Note Piano on Arduino with S-Functions, ADLX345 i2c Driver for Arduino Mega, Example Driver blocks for Simulink Hardware Support Packages, Raspberry Pi Driver Block SFunction, Raspberry Pi DC Motor H-Bridge Driver Block SFunction, Raspberry Pi PWM Driver Block SFunction, Raspberry Pi Quadrature Encoder SFunction, Arduino S Function for MPC4725 I2C DAC, Raspberry Pi MPU6050 SFunction with I2C Communication using WiringPiI2C, RC Receive Driver Block for Arduino, Motor Shields, SEN0140 Simulink i2c Driver for Arduino Mega 2560, Controle moteur à courant continu avec arduino
一般的な情報
- バージョン 1.7.0 (1.88 MB)
-
GitHub でライセンスを表示
MATLAB リリースの互換性
- すべてのリリースと互換性あり
プラットフォームの互換性
- Windows
- macOS
- Linux
| バージョン | 公開済み | リリース ノート | Action |
|---|---|---|---|
| 1.7.0 | See release notes for this release on GitHub: https://github.com/giampy1969/simulink-device-drivers/releases/tag/v1.7.0 |
||
| 1.6.0.1 | Updated license |
||
| 1.6.0.0 | Added System Object and Legacy Code Tool approach, examples, and documentation.
Also removed the motor shields -related files since updated versions can be found in the "motor shields" file exchange entry. |
||
| 1.5.0.0 | Included drivers for AF Motor Shield V2, and Embedded MATLAB-based examples. |
||
| 1.4.0.0 | Fixed small typos, updated copyright, and added troubleshooting section to the guide. |
||
| 1.2.0.0 | Fixed a few typos and added a troubleshoot page at the end of the guide. |
||
| 1.1.0.0 | The PDF document was slightly refined. |
||
| 1.0.0.0 |
