Sensor
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpSensor |
| Module | cenpylib.CENPyOlpSensor |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 4 |
Quick Start
# Boilerplate Example
sensor = ... # obtained from the runtime context
result = sensor.GetName()Method Index
| Method | Returns | Summary |
|---|---|---|
GetName | str | Get the name of the sensor. |
GetResourceName | str | Get the parent resource name . |
AskItemType | int | Get the parent Item type. |
AskItemSubType | int | Get the parent Item sub type. |
Query Methods
GetName
def GetName() -> strGet the name of the sensor.
Returns: str — Sensor name.
GetResourceName
def GetResourceName() -> strGet the parent resource name .
Returns: str — Parent resource name of this sensor.
Utilities
AskItemType
def AskItemType() -> intGet the parent Item type.
Returns: int — Parent Item type.
AskItemSubType
def AskItemSubType() -> intGet the parent Item sub type.
Returns: int — Parent Item sub type.
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?