主要内容

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

建模

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

准备 Simulink® 模型以进行硬件连接,添加模块以支持硬件协议,提供各种应用情形的参考示例。

模块

Analog Input blockAnalog InputMeasure the voltage of analog input pin
Analog Output blockAnalog OutputSend analog output signal to DAC0_OUT pin
Digital Read读取数字输入引脚的逻辑值
Digital Write blockDigital WriteSet the logical value of a digital output pin
FXOS8700 6-Axes Sensor blockFXOS8700 6-Axes SensorGet measurement of linear acceleration and magnetic field along the X, Y, and Z axes of the FXOS8700 6-Axes chip
I2C Controller Read blockI2C Controller ReadRead data from I2C peripheral device or I2C peripheral device register
I2C Controller Write blockI2C Controller Write向 I2C 外围设备或 I2C 外围设备寄存器写入数据
Push Button blockPush ButtonRead logical state of Push button
PWM Output blockPWM OutputGenerate pulse waveform on specified output pin
Quadrature Encoder blockQuadrature EncoderMeasure rotation of encoder in ticks
Serial Receive blockSerial ReceiveRead data from UART port
Serial Transmit blockSerial TransmitSend serial data to UART port
TCP Receive blockTCP ReceiveReceive data over TCP/IP network from remote host
TCP Send blockTCP SendSend data over TCP/IP network to remote host
UDP Receive blockUDP ReceiveReceive UDP message from UDP host
UDP Send blockUDP SendSend UDP message to UDP host

主题