aboutsummaryrefslogtreecommitdiff
path: root/examples/set_interface_feature_value.py
blob: f921c0ce85c0fb36a5387cbc8a4b0d5fdcce4d2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from pymba import Vimba


if __name__ == '__main__':

    with Vimba() as vimba:
        interface = vimba.interface(0)
        interface.open()

        # set a feature value by feature name
        feature = interface.feature('InterfacePingPace')
        print(feature.value)
        feature.value = 3
        print(feature.value)

        # alternatively the feature value can be set as an object attribute
        interface.InterfacePingPace = 3

        interface.close()