API Reference v9.1.0
Processclass
Module: zaber_motion.product
Use to drive voltage for a process such as a heater, valve, Peltier device, etc.
Requires at least Firmware 7.35.
To use this type, add from zaber_motion.product import Process to the top of your source code.
Index
Properties
p
p
p
p
p
Methods
m
m
m
process.generic_command(command, check_errors = True, timeout = 0)Sends a generic ASCII command to this process' underlying axis. For more information refer to: ASCII Protocol Manual.
Arguments
| Name | Type | Description |
|---|---|---|
| command | str | Command and its parameters. |
| check_errors | bool | Controls whether to throw an exception when the device rejects the command. |
| timeout | int | The timeout, in milliseconds, for a device to respond to the command. Overrides the connection default request timeout. |
Return Value
Response A response to the command.m
process.generic_command_multi_response(command, check_errors = True, timeout = 0)Sends a generic ASCII command to this process and expect multiple responses. Responses are returned in order of arrival. For more information refer to: ASCII Protocol Manual.
Arguments
| Name | Type | Description |
|---|---|---|
| command | str | Command and its parameters. |
| check_errors | bool | Controls whether to throw an exception when a device rejects the command. |
| timeout | int | The timeout, in milliseconds, for a device to respond to the command. Overrides the connection default request timeout. |
Return Value
List[Response] All responses to the command.m
process.generic_command_no_response(command)Sends a generic ASCII command to this process without expecting a response and without adding a message ID For more information refer to: ASCII Protocol Manual.
Arguments
| Name | Type | Description |
|---|---|---|
| command | str | Command and its parameters. |
m
process.get_input()Gets the current value of the source used to control this process.
Return Value
Measurement The current value of this process's controlling source.m
process.get_mode()Gets the control mode of this process.
Return Value
ProcessControllerMode Control mode.m
process.get_source()Gets the source used to control this process.
Return Value
ProcessControllerSource The source providing feedback for this process.m
m
m
process.on(duration = 0, unit = Units.NATIVE)Turns this process on. In manual mode, this supplies voltage; in controlled mode, it starts the control loop.
Arguments
| Name | Type | Description |
|---|---|---|
| duration | float | How long to leave the process on. |
| unit | TimeUnits | Units of time. |
m
process.set_mode(mode)Sets the control mode of this process.
Arguments
| Name | Type | Description |
|---|---|---|
| mode | ProcessControllerMode | Mode to set this process to. |
m
process.set_source(source)Sets the source used to control this process.
Arguments
| Name | Type | Description |
|---|---|---|
| source | ProcessControllerSource | Sets the source that should provide feedback for this process. |
m
process.set_state(state)Applies a saved state to this process.
Arguments
| Name | Type | Description |
|---|---|---|
| state | str | The state object to apply to this process. |
Return Value
SetStateAxisResponse Reports of any issues that were handled, but caused the state to not be exactly restored.m