blob: dd0d1788249e05f8c63cc3b2a97437799706ed92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
from pymba import Vimba, VimbaException
if __name__ == '__main__':
with Vimba() as vimba:
system = vimba.system()
# get feature value via feature object
for feature_name in system.feature_names():
feature = system.feature(feature_name)
try:
value = feature.value
# alternatively the feature value can be read as an object attribute
# value = getattr(system, feature_name)
# or
# value = system.someFeatureName
except VimbaException as e:
value = e
print(feature_name, '--', value)
|