CVBpy 15.0
All Classes Namespaces Functions Variables Enumerations Enumerator Properties Modules Pages
cvb/DeviceConfiguration
1# @brief Example for device configuration.
2
3# CVBpy Example Script
4#
5# 1. Loads a GenICam device.
6# 2. Get the device node map.
7# 3. Modify the exposure time node
8#
9# Requires: A connected and configured GenICam device
10
11
12import os
13import cvb
14
16 os.path.join(cvb.install_path(), "drivers", "GenICam.vin"),
17 cvb.AcquisitionStack.Vin)
18dev_node_map = device.node_maps["Device"]
19
20exposure_node = dev_node_map["ExposureTime"]
21exposure_node.value = exposure_node.max / 2
22
23print("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:1629
str install_path()
Directory Common Vision Blox has been installed to.
Definition: __init__.py:8318