blob: 2620289873e59614b3e1833df1bdb575680ab56a (
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
25
26
27
28
29
|
#!/usr/bin/python
from pyvimba.vimba import *
import time
def test_interfaces():
# start Vimba
vimba = Vimba()
vimba.startup()
# get list of available interfaces
interfaceIds = vimba.getInterfaceIds()
for interfaceId in interfaceIds:
print 'Interface ID:', interfaceId
# get interface object and open it
interface0 = vimba.getInterface(interfaceIds[0])
interface0.openInterface()
# list interface features
interfaceFeatureNames = interface0.getFeatureNames()
for name in interfaceFeatureNames:
print 'Interface feature:', name
# close interface
interface0.closeInterface()
# shutdown Vimba
vimba.shutdown()
|