API Reference v9.2.0

Pvtclass

Module: ZaberMotionAscii

Class providing access to device PVT (Position-Velocity-Time) features. Requires at least Firmware 7.33.

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

Properties

p

device

readonly
pvt.device
Device Device that this PVT belongs to.

Methods

m

getBuffer()

throws
try pvt.getBuffer(pvtBufferNumber)
Gets a PvtBuffer class instance which is a handle for a PVT buffer on the device.
Arguments
NameTypeDescription
pvtBufferNumberIntThe ID number of the PVT buffer to control. PVT buffer numbers start at one.
Return Value
PvtBuffer PvtBuffer instance.
m

getSequence()

throws
try pvt.getSequence(pvtId)
Gets a PvtSequence class instance which allows you to control a particular PVT sequence on the device.
Arguments
NameTypeDescription
pvtIdIntThe ID of the PVT sequence to control. The IDs start at 1.
Return Value
PvtSequence PvtSequence instance.
m

listBufferNumbers()

asyncthrows
try await pvt.listBufferNumbers()
Get a list of buffer ID numbers that are currently in use.
Return Value
[Int] List of buffer IDs.