API Reference v9.2.0
PvtBufferclass
Module: ZaberMotionAscii
Represents a PVT buffer with this number on a device. A PVT buffer is a place to store a queue of PVT actions.
The following example illustrates how you can obtain an instance of this type:
import ZaberMotionAscii
let connection = try await Connection.openSerialPort(portName: "COM3")
let device = try connection.getDevice(deviceAddress: 1)
let pvt = device.pvt
let pvtBuffer = try pvt.getBuffer(pvtBufferNumber: 1)Related Guides:
Properties
p
Methods
m
m
m
try await pvtBuffer.retrieveSequenceData(axes = [], timeUnits = Units.native)Gets the buffer contents as an array of PvtSequenceItem objects.
Arguments
| Name | Type | Description |
|---|---|---|
| axes | [PvtBufferAxisUnits] | Per-axis unit conversion specification. The length must match the number of axes in the buffer. When omitted, position and velocity values are returned in native units. |
| timeUnits | Units | Units to convert time values to. Defaults to native. |
Return Value
[PvtSequenceItem] The PVT data loaded from the buffer.