API Reference v9.2.0
Processclass
Module: ZaberMotionProduct
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 import ZaberMotionProduct to the top of your source code.
Index
Properties
p
p
p
p
p
Methods
m
m
m
try await process.genericCommand(command, checkErrors = 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 | String | Command and its parameters. |
| checkErrors | 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
try await process.genericCommandMultiResponse(command, checkErrors = 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 | String | Command and its parameters. |
| checkErrors | 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
[Response] All responses to the command.m
try await process.genericCommandNoResponse(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 | String | Command and its parameters. |
m
try await process.getInput()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
try await process.getMode()Gets the control mode of this process.
Return Value
ProcessControllerMode Control mode.m
try await process.getSource()Gets the source used to control this process.
Return Value
ProcessControllerSource The source providing feedback for this process.m
m
m
try await 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 | Double | How long to leave the process on. |
| unit | Units | Units of time. |
m
try await process.setMode(mode)Sets the control mode of this process.
Arguments
| Name | Type | Description |
|---|---|---|
| mode | ProcessControllerMode | Mode to set this process to. |
m
try await process.setSource(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
try await process.setState(state)Applies a saved state to this process.
Arguments
| Name | Type | Description |
|---|---|---|
| state | String | 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