- create_sensor(owner, name, type_, path=None)#
Create a sensor.
The sensor has a name and a type.
- Parameters:
- owner
suite.Package
Owner of the sensor, which is either the model itself or a package.
- name
str
Name of the sensor.
- type_
TX
Definition of the type expressed as a type tree.
- path
Path
, default:None
Path of the file for storing the constant. This parameter is ignored if the owner is a package. When the path is
None
and owner is the model, the constant is stored in the modelβs default file.
- owner
- Returns:
suite.Sensor