Skip to Content

Sensor

Quick Facts

PropertyValue
ClassCENPyOlpSensor
Modulecenpylib.CENPyOlpSensor
Packagecenpylib
ReleaseR2025.2.4
Methods4

Quick Start

# Boilerplate Example sensor = ... # obtained from the runtime context result = sensor.GetName()

Method Index

MethodReturnsSummary
GetNamestrGet the name of the sensor.
GetResourceNamestrGet the parent resource name .
AskItemTypeintGet the parent Item type.
AskItemSubTypeintGet the parent Item sub type.

Query Methods

GetName

def GetName() -> str

Get the name of the sensor.

Returns: str — Sensor name.

GetResourceName

def GetResourceName() -> str

Get the parent resource name .

Returns: str — Parent resource name of this sensor.

Utilities

AskItemType

def AskItemType() -> int

Get the parent Item type.

Returns: int — Parent Item type.

AskItemSubType

def AskItemSubType() -> int

Get 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?