Skip to Content

Speed Event

Quick Facts

PropertyValue
ClassCENPyOlpSpeedEvent
Modulecenpylib.CENPyOlpSpeedEvent
Packagecenpylib
ReleaseR2025.2.4
Methods6
Inherits fromCENPyOlpBuiltInEvent

Inheritance

Quick Start

# Boilerplate Example # Acquire the event object from the runtime context speedEvent = ... # provided by the framework

Method Index

MethodReturnsSummary
GetSpeedfloatGet the speed value.
SetSpeedSet the speed value.
GetPathTypeintGet the path type that this event is for.
SetPathTypeSet the path type that this event is for.
GetUnitintGet the event units.
SetUnitSet the event units.

Query Methods

GetSpeed

def GetSpeed() -> float

Get the speed value.

Returns: float — Speed value.

GetPathType

def GetPathType() -> int

Get the path type that this event is for.

Returns: int — Path type.

GetUnit

def GetUnit() -> int

Get the event units.

Returns: int — Event units.

Mutation Methods

SetSpeed

def SetSpeed(speed: float)

Set the speed value.

Parameters:

NameTypeDescription
speedfloatNew speed value.

SetPathType

def SetPathType(inPathType: int)

Set the path type that this event is for.

Parameters:

NameTypeDescription
inPathTypeintNew path type.

SetUnit

def SetUnit(inUnit: int)

Set the event units. The units must be in the list of allowed units for the event, otherwise, the method does nothing.

Parameters:

NameTypeDescription
inUnitintNew event units.

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?