Acceleration Event
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpAccelerationEvent |
| Module | cenpylib.CENPyOlpAccelerationEvent |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 5 |
| Inherits from | CENPyOlpBuiltInEvent |
Inheritance
Quick Start
# Boilerplate Example
# Acquire the event object from the runtime context
accelerationEvent = ... # provided by the frameworkMethod Index
| Method | Returns | Summary |
|---|---|---|
GetAcceleration | float | Get the acceleration value. |
SetAcceleration | — | Sets the acceleration value. |
SetUnit | — | Set the event’s unit. |
GetPathType | int | Retrieve the path type that this event is associated with. |
SetPathType | — | Set the path type that this event will be associated with. |
Query Methods
GetAcceleration
def GetAcceleration() -> floatGet the acceleration value.
Returns: float — acceleration value.
GetPathType
def GetPathType() -> intRetrieve 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:
| Name | Type | Description |
|---|---|---|
acceleration | float | the 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:
| Name | Type | Description |
|---|---|---|
inUnit | int | event’s unit |
SetPathType
def SetPathType(inPathType: int)Set the path type that this event will be associated with.
Parameters:
| Name | Type | Description |
|---|---|---|
inPathType | int | path type |
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?