Temperature Sensor
R2026bIdeal temperature sensor
Libraries:
Simscape /
Foundation Library /
Thermal /
Thermal Sensors
Description
The Temperature Sensor block represents an ideal temperature sensor, that is, a device that measures either the absolute temperature at a node, or the temperature difference between two nodes, without drawing any heat.
Connections A and B are thermal conserving ports that connect to the two points where temperature is being monitored. Port T is a physical signal port that outputs the temperature difference value.
The block positive direction is from port A to port B. The measured temperature is determined as T = TA – TB.
To measure the absolute temperature at a node, set the set the Measurement
reference parameter to Absolute and connect port
A to the node being measured.
Examples
Ports
Output
Conserving
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.
"fl_lib/Thermal/Thermal Sensors/Temperature Sensor"
Example: add_block("fl_lib/Thermal/Thermal Sensors/Temperature Sensor","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.

