cvb/DeviceConfiguration
1 # CVBpy Example Script
2 #
3 # 1. Loads a GenICam device.
4 # 2. Get the device node map.
5 # 3. Modify the exposure time node
6 #
7 # Requires: A connected and configured GenICam device
8 
9 
10 import os
11 import cvb
12 
13 device = cvb.DeviceFactory.open(
14  os.path.join(cvb.install_path(), "drivers", "GenICam.vin"),
15  cvb.AcquisitionStack.Vin)
16 dev_node_map = device.node_maps["Device"]
17 
18 exposure_node = dev_node_map["ExposureTime"]
19 exposure_node.value = exposure_node.max / 2
20 
21 print("Exposure time set to: " + str(exposure_node.value) + " " + exposure_node.unit)
def install_path()
Directory Common Vision Blox has been installed to.
Definition: __init__.py:7073
def open(str provider, int acquisition_stack=cvb.AcquisitionStack.PreferVin, int port=0, int board=0)
Opens a device with the given provider or acquisition stack.
Definition: __init__.py:1392