aboutsummaryrefslogtreecommitdiff
path: root/examples/set_interface_feature_value.py
blob: 0fc80a223550226719b0641607c012abc2d5f004 (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 vmb:
        interface = vmb.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()