Ambient Temperature Sensor
R2026bMeasure ambient temperature in degree Celsius
Libraries:
Simulink Support Package for Android Devices /
Sensors
Description
Add-On Required: This feature requires the Simulink Support Package for Android Devices add-on.
Use the Ambient Temperature Sensor block to measure ambient temperature in degree Celsius from the temperature sensor on the Android® device.
Note
During simulation with no hardware connected, this block does nothing. For more information, see Block Produces Zeros or Does Nothing in Simulation.
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"androidsensorlib/Ambient Temperature Sensor"
Example: add_block("androidsensorlib/Ambient Temperature Sensor","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2014a