Main Content

Pressure Sensor

Measure ambient air pressure in hectopascals (hPa)

  • Library:
  • Simulink Support Package for Android Devices / Sensors

  • Pressure Sensor block

Description

Use the Pressure Sensor block to measure atmospheric pressure in hectopascals (hPa) from the pressure 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 atmospheric pressure data in hectopascals (hPa).

Data Types: single

Parameters

expand all

Specify a discrete time interval, in seconds, at which the block reads the pressure 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