Main Content

Ambient Temperature Sensor

Measure ambient temperature in degree Celsius

Add-On Required: This feature requires the Simulink Support Package for Android Devices add-on.

  • Ambient Temperature Sensor block

Libraries:
Simulink Support Package for Android Devices / Sensors

Description

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

expand all

The block outputs the data read from the temperature sensor of the device.

Data Types: single

Parameters

expand all

Specify a discrete time interval, in seconds, at which the block reads the temperature sensor of the device and outputs the data.

Note

Smaller values for Sample time require the processor to complete the same number of instructions in less time, which can cause task overruns.

Version History

Introduced in R2014a