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)
streams = device.streams
stream = streams.get_stream(1)stream.axesList[StreamAxisDefinition] An array of axes definitions the stream is set up to control.stream.arc_absolute(rotation_direction, center_x, center_y, end_x, end_y)| Name | Type | Description |
|---|---|---|
| rotation_direction | RotationDirection | The direction of the rotation. |
| center_x | Measurement | The first dimension of the position of the center of the circle on which the arc exists. |
| center_y | Measurement | The second dimension of the position of the center of the circle on which the arc exists. |
| end_x | Measurement | The first dimension of the end position of the arc. |
| end_y | Measurement | The second dimension of the end position of the arc. |
stream.arc_absolute_on(target_axes_indices, rotation_direction, center_x, center_y, end_x, end_y)| Name | Type | Description |
|---|---|---|
| target_axes_indices | List[int] | Indices of the axes in the stream the movement targets. Refers to the axes provided during the stream setup or further execution. Indices are zero-based. |
| rotation_direction | RotationDirection | The direction of the rotation. |
| center_x | Measurement | The first dimension of the position of the center of the circle on which the arc exists. |
| center_y | Measurement | The second dimension of the position of the center of the circle on which the arc exists. |
| end_x | Measurement | The first dimension of the end position of the arc. |
| end_y | Measurement | The second dimension of the end position of the arc. |
stream.arc_relative(rotation_direction, center_x, center_y, end_x, end_y)| Name | Type | Description |
|---|---|---|
| rotation_direction | RotationDirection | The direction of the rotation. |
| center_x | Measurement | The first dimension of the position of the center of the circle on which the arc exists. |
| center_y | Measurement | The second dimension of the position of the center of the circle on which the arc exists. |
| end_x | Measurement | The first dimension of the end position of the arc. |
| end_y | Measurement | The second dimension of the end position of the arc. |
stream.arc_relative_on(target_axes_indices, rotation_direction, center_x, center_y, end_x, end_y)| Name | Type | Description |
|---|---|---|
| target_axes_indices | List[int] | Indices of the axes in the stream the movement targets. Refers to the axes provided during the stream setup or further execution. Indices are zero-based. |
| rotation_direction | RotationDirection | The direction of the rotation. |
| center_x | Measurement | The first dimension of the position of the center of the circle on which the arc exists. |
| center_y | Measurement | The second dimension of the position of the center of the circle on which the arc exists. |
| end_x | Measurement | The first dimension of the end position of the arc. |
| end_y | Measurement | The second dimension of the end position of the arc. |
stream.call(stream_buffer)| Name | Type | Description |
|---|---|---|
| stream_buffer | StreamBuffer | The stream buffer to call. |
stream.circle_absolute(rotation_direction, center_x, center_y)| Name | Type | Description |
|---|---|---|
| rotation_direction | RotationDirection | The direction of the rotation. |
| center_x | Measurement | The first dimension of the position of the center of the circle. |
| center_y | Measurement | The second dimension of the position of the center of the circle. |
stream.circle_absolute_on(target_axes_indices, rotation_direction, center_x, center_y)| Name | Type | Description |
|---|---|---|
| target_axes_indices | List[int] | Indices of the axes in the stream the movement targets. Refers to the axes provided during the stream setup or further execution. Indices are zero-based. |
| rotation_direction | RotationDirection | The direction of the rotation. |
| center_x | Measurement | The first dimension of the position of the center of the circle. |
| center_y | Measurement | The second dimension of the position of the center of the circle. |
stream.circle_relative(rotation_direction, center_x, center_y)| Name | Type | Description |
|---|---|---|
| rotation_direction | RotationDirection | The direction of the rotation. |
| center_x | Measurement | The first dimension of the position of the center of the circle. |
| center_y | Measurement | The second dimension of the position of the center of the circle. |
stream.circle_relative_on(target_axes_indices, rotation_direction, center_x, center_y)| Name | Type | Description |
|---|---|---|
| target_axes_indices | List[int] | Indices of the axes in the stream the movement targets. Refers to the axes provided during the stream setup or further execution. Indices are zero-based. |
| rotation_direction | RotationDirection | The direction of the rotation. |
| center_x | Measurement | The first dimension of the position of the center of the circle. |
| center_y | Measurement | The second dimension of the position of the center of the circle. |
stream.cork()stream.generic_command_batch(batch)| Name | Type | Description |
|---|---|---|
| batch | List[str] | Array of commands. |
stream.get_max_centripetal_acceleration(unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| unit | AccelerationUnits | Units of acceleration. |
float The maximum centripetal acceleration of the live stream.stream.get_max_speed(unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| unit | VelocityUnits | Units of velocity. |
float The maximum speed of the stream.stream.get_max_tangential_acceleration(unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| unit | AccelerationUnits | Units of acceleration. |
float The maximum tangential acceleration of the live stream.stream.helix_absolute_on(target_axes_indices, rotation_direction, center_x, center_y, end_x, end_y, *endpoint)| Name | Type | Description |
|---|---|---|
| target_axes_indices | List[int] | Indices of the axes in the stream the movement targets. Refers to the axes provided during the stream setup or further execution. Indices are zero-based. The first two axes refer to the helix's arc component, while the rest refers to the helix's line component. |
| rotation_direction | RotationDirection | The direction of the rotation. |
| center_x | Measurement | The first dimension of the position of the center of the circle on which the helix projects. |
| center_y | Measurement | The second dimension of the position of the center of the circle on which the helix projects. |
| end_x | Measurement | The first dimension of the end position of the helix's arc component. |
| end_y | Measurement | The second dimension of the end position of the helix's arc component. |
| *endpoint | Measurement | Positions for the helix's line component axes, relative to their home positions. |
stream.helix_relative_on(target_axes_indices, rotation_direction, center_x, center_y, end_x, end_y, *endpoint)| Name | Type | Description |
|---|---|---|
| target_axes_indices | List[int] | Indices of the axes in the stream the movement targets. Refers to the axes provided during the stream setup or further execution. Indices are zero-based. The first two axes refer to the helix's arc component, while the rest refers to the helix's line component. |
| rotation_direction | RotationDirection | The direction of the rotation. |
| center_x | Measurement | The first dimension of the position of the center of the circle on which the helix projects. |
| center_y | Measurement | The second dimension of the position of the center of the circle on which the helix projects. |
| end_x | Measurement | The first dimension of the end position of the helix's arc component. |
| end_y | Measurement | The second dimension of the end position of the helix's arc component. |
| *endpoint | Measurement | Positions for the helix's line component axes, relative to their positions before movement. |
stream.line_absolute(*endpoint)| Name | Type | Description |
|---|---|---|
| *endpoint | Measurement | Positions for the axes to move to, relative to their home positions. |
stream.line_absolute_on(target_axes_indices, endpoint)| Name | Type | Description |
|---|---|---|
| target_axes_indices | List[int] | Indices of the axes in the stream the movement targets. Refers to the axes provided during the stream setup or further execution. Indices are zero-based. |
| endpoint | List[Measurement] | Positions for the axes to move to, relative to their home positions. |
stream.line_relative(*endpoint)| Name | Type | Description |
|---|---|---|
| *endpoint | Measurement | Positions for the axes to move to, relative to their positions before movement. |
stream.line_relative_on(target_axes_indices, endpoint)| Name | Type | Description |
|---|---|---|
| target_axes_indices | List[int] | Indices of the axes in the stream the movement targets. Refers to the axes provided during the stream setup or further execution. Indices are zero-based. |
| endpoint | List[Measurement] | Positions for the axes to move to, relative to their positions before movement. |
stream.set_max_centripetal_acceleration(max_centripetal_acceleration, unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| max_centripetal_acceleration | float | Maximum centripetal acceleration at which any stream action is executed. |
| unit | AccelerationUnits | Units of acceleration. |
stream.set_max_speed(max_speed, unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| max_speed | float | Maximum speed at which any stream action is executed. |
| unit | VelocityUnits | Units of velocity. |
stream.set_max_tangential_acceleration(max_tangential_acceleration, unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| max_tangential_acceleration | float | Maximum tangential acceleration at which any stream action is executed. |
| unit | AccelerationUnits | Units of acceleration. |
stream.setup_live_composite(*axes)| Name | Type | Description |
|---|---|---|
| *axes | StreamAxisDefinition | Definition of the stream axes. |
stream.setup_store(stream_buffer, *axes)| Name | Type | Description |
|---|---|---|
| stream_buffer | StreamBuffer | The stream buffer to queue actions in. |
| *axes | int | The axis numbers of the physical axes to setup the stream on. |
stream.setup_store_arbitrary_axes(stream_buffer, axes_count)| Name | Type | Description |
|---|---|---|
| stream_buffer | StreamBuffer | The stream buffer to queue actions in. |
| axes_count | int | The number of axes in the stream. |
stream.setup_store_composite(stream_buffer, *axes)| Name | Type | Description |
|---|---|---|
| stream_buffer | StreamBuffer | The stream buffer to queue actions in. |
| *axes | StreamAxisDefinition | Definition of the stream axes. |
stream.wait(time, unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| time | float | Amount of time to wait. |
| unit | TimeUnits | Units of time. |