# API Reference v10.3.1 (Python)

## DeviceSettings (class)

Module: zaber_motion.binary

Class providing access to various device settings and properties.

To use this type, add `from zaber_motion.binary import DeviceSettings` to the top of your source code.

### Methods

#### `get()` (async available)

`device_settings.get(setting, unit = Units.NATIVE)`

Returns any device setting or property.

##### Arguments

| Name | Type | Description |
| --- | --- | --- |
| `setting` | [`BinarySettings`](https://software.zaber.com/motion-library/api/py/binary/binarysettings.md) | Setting to get. |
| `unit` | [`UnitsAndLiterals`](https://software.zaber.com/motion-library/api/py/root/units.md) | Units of setting. |

##### Return Value

Type: `float`

Setting value.

#### `set()` (async available)

`device_settings.set(setting, value, unit = Units.NATIVE)`

Sets any device setting.

##### Arguments

| Name | Type | Description |
| --- | --- | --- |
| `setting` | [`BinarySettings`](https://software.zaber.com/motion-library/api/py/binary/binarysettings.md) | Setting to set. |
| `value` | `float` | Value of the setting. |
| `unit` | [`UnitsAndLiterals`](https://software.zaber.com/motion-library/api/py/root/units.md) | Units of setting. |
