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_sequence = pvt.get_sequence(1)pvt_sequence.axesList[PvtAxisDefinition] An array of axes definitions the PVT sequence is set up to control.pvt_sequence.call(pvt_buffer)| Name | Type | Description |
|---|---|---|
| pvt_buffer | PvtBuffer | The PVT buffer to call. |
PvtSequence.convert_time_absolute_to_relative(sequence_data)| Name | Type | Description |
|---|---|---|
| sequence_data | List[PvtSequenceItem] | The sequence data for which to convert times from absolute to relative. Point times must all be in the same units. |
List[PvtSequenceItem] The sequence data with times converted from absolute to relative.PvtSequence.convert_time_absolute_to_relative_partial(sequence_data)| Name | Type | Description |
|---|---|---|
| sequence_data | List[PvtPartialSequenceItem] | The sequence data for which to convert times from absolute to relative. Point times must all be in the same units. |
List[PvtPartialSequenceItem] The sequence data with times converted from absolute to relative.PvtSequence.convert_time_relative_to_absolute(sequence_data)| Name | Type | Description |
|---|---|---|
| sequence_data | List[PvtSequenceItem] | The sequence data for which to convert times from relative to absolute. Point times must all be in the same units. |
List[PvtSequenceItem] The sequence data with times converted from relative to absolute.PvtSequence.convert_time_relative_to_absolute_partial(sequence_data)| Name | Type | Description |
|---|---|---|
| sequence_data | List[PvtPartialSequenceItem] | The sequence data for which to convert times from relative to absolute. Point times must all be in the same units. |
List[PvtPartialSequenceItem] The sequence data with times converted from relative to absolute.pvt_sequence.cork()PvtSequence.generate_positions(sequence_items)| Name | Type | Description |
|---|---|---|
| sequence_items | List[PvtPartialSequenceItem] | Partial PVT points defining the velocities and times for the sequence. Each point should have velocities defined for each axis. Times must be defined for each point. |
List[PvtSequenceItem] Array of points and actions containing the generated PVT sequence. Note returned times are always relative.PvtSequence.generate_velocities(sequence_items)| Name | Type | Description |
|---|---|---|
| sequence_items | List[PvtPartialSequenceItem] | Partial PVT points defining the positions, optional velocities, and times for the sequence. Each point should have positions defined for each axis. Velocities are optional. Times must be defined for each point. |
List[PvtSequenceItem] Array of points and actions containing the generated PVT sequence. Note returned times are always relative.PvtSequence.generate_velocities_and_times(sequence_items, target_speed, target_acceleration, resample_number = None)| Name | Type | Description |
|---|---|---|
| sequence_items | List[PvtPartialSequenceItem] | Partial PVT points defining the positions for the sequence. Each point should have positions defined for each axis. |
| target_speed | Measurement | The target speed used to generate positions and times. |
| target_acceleration | Measurement | The target acceleration used to generate positions and times. |
| resample_number | Optional[int] | The number of points to resample the sequence by. Leave undefined to use the specified points. |
List[PvtSequenceItem] Array of points and actions containing the generated PVT sequence. Note returned times are always relative.pvt_sequence.generic_command_batch(batch)| Name | Type | Description |
|---|---|---|
| batch | List[str] | Array of commands. |
PvtSequence.load_partial_sequence_data(path)| Name | Type | Description |
|---|---|---|
| path | str | The path to the csv file to load. |
PvtPartialCsvData The PVT csv data loaded from the file.PvtSequence.load_sequence_data(path)| Name | Type | Description |
|---|---|---|
| path | str | The path to the csv file to load. |
PvtCsvData The PVT csv data loaded from the file.pvt_sequence.point(positions, velocities, time)| Name | Type | Description |
|---|---|---|
| positions | List[Measurement] | Positions for the axes to move through, relative to their home positions. |
| velocities | List[Optional[Measurement]] | The axes velocities at the given point. Specify an empty array or null for specific axes to make the sequence calculate the velocity. |
| time | Measurement | The duration between the previous point in the sequence and this one. |
pvt_sequence.point_relative(positions, velocities, time)| Name | Type | Description |
|---|---|---|
| positions | List[Measurement] | Positions for the axes to move through, relative to the previous point. |
| velocities | List[Optional[Measurement]] | The axes velocities at the given point. Specify an empty array or null for specific axes to make the sequence calculate the velocity. |
| time | Measurement | The duration between the previous point in the sequence and this one. |
pvt_sequence.points(positions, velocities, times)| Name | Type | Description |
|---|---|---|
| positions | List[MeasurementSequence] | Per-axis sequences of positions. |
| velocities | List[MeasurementSequence] | Per-axis sequences of velocities. For velocities [v0, v1, ...] and positions [p0, p1, ...], v1 is the target velocity at point p1. |
| times | MeasurementSequence | Segment times from one point to another. For times [t0, t1, ...] and positions [p0, p1, ...], t1 is the time it takes to move from p0 to p1. |
pvt_sequence.points_relative(positions, velocities, times)| Name | Type | Description |
|---|---|---|
| positions | List[MeasurementSequence] | Per-axis sequences of positions. |
| velocities | List[MeasurementSequence] | Per-axis sequences of velocities. For velocities [v0, v1, ...] and positions [p0, p1, ...], v1 is the target velocity at point p1. |
| times | MeasurementSequence | Segment times from one point to another. For times [t0, t1, ...] and positions [p0, p1, ...], t1 is the time it takes to move from p0 to p1. |
PvtSequence.save_sequence_data(sequence_data, path, dimension_names = None)| Name | Type | Description |
|---|---|---|
| sequence_data | List[PvtSequenceItem] | The PVT sequence data to save. |
| path | str | The path to save the file to. |
| dimension_names | Optional[List[str]] | Optional csv column names for each series. If not provided, the default names will be used: Series 1, Series 2, etc.. Length of this array must be equal to number of dimensions in sequence data. |
pvt_sequence.setup_live_composite(*pvt_axes)| Name | Type | Description |
|---|---|---|
| *pvt_axes | PvtAxisDefinition | Definition of the PVT sequence axes. |
pvt_sequence.setup_store(pvt_buffer, *axes)| Name | Type | Description |
|---|---|---|
| pvt_buffer | PvtBuffer | The PVT buffer to queue actions in. |
| *axes | int | The axis numbers of the physical axes to setup the PVT sequence on. |
pvt_sequence.setup_store_composite(pvt_buffer, *pvt_axes)| Name | Type | Description |
|---|---|---|
| pvt_buffer | PvtBuffer | The PVT buffer to queue actions in. |
| *pvt_axes | PvtAxisDefinition | Definition of the PVT sequence axes. |
pvt_sequence.submit_sequence_data(sequence_data)| Name | Type | Description |
|---|---|---|
| sequence_data | List[PvtSequenceItem] | The PVT sequence data to submit. |