主要内容

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

建模

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

可用于为您的 Android® 设备创建 App 的一组 Simulink® 模块和核心功能。

模块

全部展开

Accelerometer blockAccelerometerMeasure linear acceleration along X, Y, and Z axes in m/s2
Ambient Temperature Sensor blockAmbient Temperature SensorMeasure ambient temperature in degree Celsius
Gyroscope blockGyroscopeMeasure rotational speed around X, Y, and Z axes in rad/s
Humidity Sensor blockHumidity SensorMeasure relative air humidity as percentage
Light Sensor blockLight SensorMeasure ambient light level in lux (lx)
Location Sensor blockLocation SensorMeasure global positioning system data
Pressure Sensor blockPressure SensorMeasure ambient air pressure in hectopascals (hPa)
Magnetometer blockMagnetometerMeasure magnetic field along X, Y, and Z axes
Orientation blockOrientationMeasure device rotation along X, Y, and Z axes
BLE Send blockBLE SendSend data using Bluetooth Low Energy (BLE) protocol
BLE Receive blockBLE ReceiveReceive data using Bluetooth Low Energy (BLE) protocol
UDP Send blockUDP SendSend data over UDP network to remote host
UDP Receive blockUDP ReceiveReceive data over UDP network from remote host
ThingSpeak Write blockThingSpeak WritePublish data to Internet of Things using ThingSpeak
ThingSpeak Read blockThingSpeak ReadRead data stored in ThingSpeak channel
TCP/IP Send blockTCP/IP Send通过 TCP/IP 网络将数据发送到另一个远程主机
TCP/IP Receive blockTCP/IP Receive通过 TCP/IP 网络从远程主机接收数据
Serial Transmit blockSerial TransmitSend buffered data to the serial port
Serial Receive block iconSerial ReceiveReceive an [Nx1] array of data on the serial port and write it to the data block output. When data is not available, write 0 to the data block output
Android TalkBack Read block iconTalkBack ReadRead command(s) from TalkBack ID on ThingSpeak TalkBack server
Android TalkBack Write block iconTalkBack WriteWrite command(s) to TalkBack ID on ThingSpeak TalkBack server
Android MQTT Subscribe block iconMQTT SubscribeSubscribe to an MQTT topic and receive message from the broker (自 R2023a 起)
Android MQTT Publish block iconMQTT PublishPublish message to an MQTT broker with the specified Topic (自 R2023a 起)
Android MQTT Subscribe block iconHTTP ClientSend and receive data from HTTP server over URL connection (自 R2023a 起)
Audio Capture blockAudio CaptureCapture audio stream from device microphone
Audio File Read blockAudio File ReadAdd audio file from computer into mobile application
Audio File Write blockAudio File WriteWrite audio frames to an audio file
Audio Playback blockAudio PlaybackPlay audio on device speaker
Video Display blockVideo DisplayDisplay video on device screen
Camera blockCameraCapture video using front or rear camera
Slider blockSliderDisplay slider widget
Data Display blockData DisplayDisplay numerical data on device screen
Button blockButtonDisplay button widget on device screen
Data Input blockData InputGenerate data input field on device screen
FromApp blockFromAppReceive data from method of app
ToApp blockToAppSend data to method of app

函数

androidlibOpen the Simulink Library Browser to blocks for Android Devices

主题

教程