主要内容

本页翻译不是最新的。点击此处可查看最新英文版本。

建模

R2026a
为硬件连接准备模型,添加模块以支持硬件协议

适用于 Simulink® Coder™ Support Package for BeagleBone® Blue Hardware 的一组 Simulink 模块和核心功能。

模块

全部展开

DC Motor blockDC MotorSet power, direction, and stopping action of a DC motor
Servo Motor blockServo MotorSet shaft position of servo motor
Analog Input blockAnalog InputMeasure voltage of specified analog input pin
Button blockButtonRead logical state of button
Digital Read blockDigital Read读取数字输入引脚的逻辑状态
Digital Write blockDigital Write设置数字输出引脚的逻辑状态
LED blockLED点亮内置 LED
PWM blockPWMPulse width modulation of digital output pin
Beaglebone Blue I2C Controller Read block iconI2C Master ReadRead data from I2C peripheral device or I2C peripheral device register
Beagleboneblue I2C Controller Write block iconI2C Master WriteWrite data to I2C peripheral device or I2C peripheral device register
SPI Master Transfer blockSPI Master TransferWrite data to and read data from SPI peripheral device
SPI Register Read blockSPI Register ReadRead data from SPI peripheral device register
SPI Register Write blockSPI Register WriteWrite data to registers of an SPI peripheral device
SCI Write blockSCI WriteSend serial data to UART port
SCI Read blockSCI ReadRead serial data from UART port
TCP/IP Receive blockTCP/IP ReceiveReceive data over TCP/IP network from remote host
TCP/IP Send blockTCP/IP SendSend data over TCP/IP network to another remote host
UDP Receive blockUDP ReceiveReceive UDP packets from another UDP host on an Internet network
UDP Send blockUDP SendSend UDP packets to another UDP host on Internet network
Encoder blockEncoderMeasure incremental position and direction of a rotating motor
Barometer blockBarometerMeasure barometric air pressure around the BMP280 sensor
MPU9250 blockMPU9250Measure acceleration, angular rate, and magnetic field, and calculate fusion values such as Euler angles and quaternion along the axes of MPU-9250 sensor
SDL Video Display blockSDL Video DisplayDisplay video using SDL
V4L2 Video Capture blockV4L2 Video CaptureCapture video from USB camera using V4L2

主题

教程

精选示例