CVBpy 14.0
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
10import os
11import cvb
12
14 os.path.join(cvb.install_path(), "drivers", "GenICam.vin"),
15 cvb.AcquisitionStack.Vin)
16dev_node_map = device.node_maps["Device"]
17
18exposure_node = dev_node_map["ExposureTime"]
19exposure_node.value = exposure_node.max / 2
20
21print("Exposure time set to: " + str(exposure_node.value) + " " + exposure_node.unit)
Union[cvb.GenICamDevice, cvb.VinDevice, cvb.EmuDevice, cvb.VideoDevice, cvb.NonStreamingDevice] open(str provider, int acquisition_stack=cvb.AcquisitionStack.PreferVin)
Opens a device with the given provider and acquisition stack.
Definition: __init__.py:1327
str install_path()
Directory Common Vision Blox has been installed to.
Definition: __init__.py:7146