Skip to Content

Acceleration Event

Quick Facts

PropertyValue
ClassCENPyOlpAccelerationEvent
Modulecenpylib.CENPyOlpAccelerationEvent
Packagecenpylib
ReleaseR2025.2.4
Methods5
Inherits fromCENPyOlpBuiltInEvent

Inheritance

Quick Start

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

Method Index

MethodReturnsSummary
GetAccelerationfloatGet the acceleration value.
SetAccelerationSets the acceleration value.
SetUnitSet the event’s unit.
GetPathTypeintRetrieve the path type that this event is associated with.
SetPathTypeSet the path type that this event will be associated with.

Query Methods

GetAcceleration

def GetAcceleration() -> float

Get the acceleration value.

Returns: float — acceleration value.

GetPathType

def GetPathType() -> int

Retrieve the path type that this event is associated with.

Returns: int — event path type

Mutation Methods

SetAcceleration

def SetAcceleration(acceleration: float)

Sets the acceleration value.

Parameters:

NameTypeDescription
accelerationfloatthe acceleration value

SetUnit

def SetUnit(inUnit: int)

Set the event’s unit. The unit must be in the list of allowed units for the event. Otherwise, the method does nothing.

Parameters:

NameTypeDescription
inUnitintevent’s unit

SetPathType

def SetPathType(inPathType: int)

Set the path type that this event will be associated with.

Parameters:

NameTypeDescription
inPathTypeintpath type

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?