Editor's Note:该文件被选为Matlab CentralPick of the Week
该软件包包含一个指南,该指南以逐步的方式解释了如何开发设备驱动程序块(在目标平台上执行时执行目标特定功能的块)。
示例驱动程序:
- )Arduino数字输出
- )Arduino数字输入
- )arduino模拟输出
-) Arduino编码器读
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.
在本指南中,开发设备驱动程序的第一种方法是基于S功能构建器块。以下章节还分别基于旧版代码工具,MATLAB功能块和系统对象块来描述不同的方法。指南中讨论了每种方法的优势和缺点。
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://www.tianjin-qmedu.com/support/bugreports/1006532, scroll down to the bottom, and follow the instructions therein.
Cite As
Giampiero Campa(2022).设备驱动程序(//www.tianjin-qmedu.com/matlabcentral/fileexchange/39354-device-drivers), MATLAB Central File Exchange. Retrieved.
MATLAB释放兼容性
Platform Compatibility
视窗 苹果系统 LinuxCategories
Tags
Acknowledgements
Inspired by:Simulink Support Package for Arduino Hardware,万博1manbet万博1manbetxx覆盆子Pi硬件的Simulink支持包
Inspired:Driver for Arduino Data Logging Shield,Play a Tune on Arduino,Arduino - Loop Time S-Function,设备驱动程序for the BeagleBone Black,Arduino附加传感器库(DHT,LPS331),Soft Real Time,Data Logger on Arduino UNO,Simulink Library for MiniQ Robot,Rensselaer Arduino支万博1manbetx持包库(Rasplib),Raspberry Pi 万博1manbetxSimulink驱动器块ADC DAC PWM,Arduino Udp Ethernet Shield,3 Note Piano on Arduino with S-Functions,嵌入式编码器Target for Arduino,adlx345 i2c驱动器Arduino Mega,Example Driver blocks for Simulink Hardware Support Packages,Raspberry Pi Driver Block SFunction,Raspberry Pi DC电机H桥驱动器块Sfunction,Raspberry Pi PWM Driver Block SFunction,覆盆子pi正交编码器sfunction,Arduino S Function for MPC4725 I2C DAC,Raspberry Pi MPU6050 SFunction with I2C Communication using WiringPiI2C,RC Receive Driver Block for Arduino,万博1manbetxZumo机器人的Simulink库,Motor Shields,SEN0140 Simulink i2c Driver for Arduino Mega 2560,Controle moteur à courant continu avec arduino
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
开始狩猎!