# Getting Started with CVBpy

**URL:** <https://forum.commonvisionblox.com/t/getting-started-with-cvbpy/241>\
**Category:** Python API\
**Created:** [September 26, 2017, 7:42am UTC](https://forum.commonvisionblox.com/t/getting-started-with-cvbpy/241 "2017-09-26T07:42:41Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Andreas](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/andreas/32/75_2.png) [@Andreas](https://forum.commonvisionblox.com/u/Andreas)\
**Post date:** [February 22, 2018, 12:55pm UTC](https://forum.commonvisionblox.com/t/getting-started-with-cvbpy/241/7 "2018-02-22T12:55:44Z")

</div>

# Configure a Device with the GenApi

Usually you will have to configure some things in a camera before the image fits your needs. Sometimes you might even have a lot of cameras which all need the same settings applied automatically. Here comes how you can script it.

1. Open your device as described above.

> [@Andreas](#):
>
> Acquire from a Camera

1. Get the device node map, which groups all settings for your camera (device).

```python
device_node_map = vin_device.node_maps["Device"]

```

1. Now you can access the camera features. Let’s start reading some stuff.

```python
print("Vendor: " + device_node_map["DeviceVendorName"].value)
print("Model: " + device_node_map["DeviceModelName"].value)
print("Version: " + device_node_map["DeviceVersion"].value)

```

The value property is also used to write (if the node is writeabel) features to the camera. In the debugger you can see a lot of additional information that will help you to pick the right values. E.g:

```python
exposure = device_node_map["ExposureTime"]

```

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/74e164e9d6feac3bbd0f8741ddddf12c94197b75.png)

---

_[View the full topic](https://forum.commonvisionblox.com/t/getting-started-with-cvbpy/241)._
