# Accessing CVB Management Console Camera Properties via Python

**URL:** <https://forum.commonvisionblox.com/t/accessing-cvb-management-console-camera-properties-via-python/689>\
**Category:** Python API\
**Created:** [February 20, 2019, 11:29am UTC](https://forum.commonvisionblox.com/t/accessing-cvb-management-console-camera-properties-via-python/689 "2019-02-20T11:29:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![trymdh](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@trymdh](https://forum.commonvisionblox.com/u/trymdh)\
**Post date:** [February 20, 2019, 11:29am UTC](https://forum.commonvisionblox.com/t/accessing-cvb-management-console-camera-properties-via-python/689/1 "2019-02-20T11:29:25Z")

</div>

Hello,  
I’m trying to access and change the same camera properties that is accessible through the CVB Management Console, for example AOI-tracking and Camera Mode, using the Python API. I have tried to look in the documentation without any luck.

Edit.  
I have found a way to read the properties via the NodeMap class dictonary “nodes”, but I still dont know how to change them.

Thank you for the help,  
Trym

---

<div class="post-metadata">

**Author:** ![Chris](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/chris/32/1154_2.png) [@Chris](https://forum.commonvisionblox.com/u/Chris)\
**Post date:** [February 21, 2019, 8:24am UTC](https://forum.commonvisionblox.com/t/accessing-cvb-management-console-camera-properties-via-python/689/2 "2019-02-21T08:24:50Z")

</div>

Hi @trymdh

you can find a tutorial that shows how to edit NodeMap values in your installation directory of CVB:

C:\Program Files\STEMMER IMAGING\Common Vision Blox\Tutorial\Image Manager\CVBpy\DeviceConfiguration

It shows the configuration of a camera for being software triggered and also how to execute the SoftwareTrigger:

```python
import os
import cvb

device = cvb.DeviceFactory.open(os.path.join(cvb.install_path(), "drivers", "GenICam.vin"), port=0)
dev_node_map = device.node_maps["Device"]

triggerModeNode = dev_node_map["TriggerMode"]
triggerModeNode.value = "On"

triggerSourceNode = dev_node_map["TriggerSource"]
triggerSourceNode.value = "Software"

softwareTrigger = dev_node_map["TriggerSoftware"]
softwareTrigger.execute()

```

I hope this was what you were looking for.

Cheers  
Chris

---

<div class="post-metadata">

**Author:** ![trymdh](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@trymdh](https://forum.commonvisionblox.com/u/trymdh)\
**Post date:** [February 22, 2019, 8:39am UTC](https://forum.commonvisionblox.com/t/accessing-cvb-management-console-camera-properties-via-python/689/3 "2019-02-22T08:39:36Z")

</div>

Thanks, I figured it out:)

Thank you for your time  
Trym

---

<div class="post-metadata">

**Author:** ![trymdh](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@trymdh](https://forum.commonvisionblox.com/u/trymdh)\
**Post date:** [February 20, 2019, 1:32pm UTC](https://forum.commonvisionblox.com/t/accessing-cvb-management-console-camera-properties-via-python/689/4 "2019-02-20T13:32:32Z")

</div>

@Andreas how do you get the output of the additional node information in the image above? I’m using Python with VS code.

nvm, I got it 🙂

---

<div class="post-metadata">

**Author:** ![illusive](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/illusive/32/61_2.png) [@illusive](https://forum.commonvisionblox.com/u/illusive)\
**Post date:** [May 20, 2019, 11:06am UTC](https://forum.commonvisionblox.com/t/accessing-cvb-management-console-camera-properties-via-python/689/6 "2019-05-20T11:06:05Z")

</div>

Hi and welcome @ravikumar89!

I am sorry, but I honestly do not think that your post is making an actual contribution to the issue discussed here. If you think you can help, please be more specific than that.
