API Reference v9.2.0

PvtBufferclass

Module: zaber_motion.ascii

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:

from zaber_motion.ascii import Connection

connection = Connection.open_serial_port('COM3')
device = connection.get_device(1)
pvt = device.pvt
pvt_buffer = pvt.get_buffer(1)

Properties

p

buffer_number

readonly
pvt_buffer.buffer_number
int The number identifying the buffer on the device.
p

device

readonly
pvt_buffer.device
Device The Device this buffer exists on.

Methods

m

erase()

async available
pvt_buffer.erase()
Erases the contents of the buffer. This method fails if there is a PVT sequence writing to the buffer.
m

get_content()

async available
pvt_buffer.get_content()
Gets the buffer contents as an array of strings.
Return Value
List[str] A string array containing all the PVT commands stored in the buffer.
m

retrieve_sequence_data()

async available
pvt_buffer.retrieve_sequence_data(axes = None, time_units = Units.NATIVE)
Gets the buffer contents as an array of PvtSequenceItem objects.
Arguments
NameTypeDescription
axesOptional[List[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.
time_unitsUnitsAndLiteralsUnits to convert time values to. Defaults to native.
Return Value
List[PvtSequenceItem] The PVT data loaded from the buffer.