diff options
| author | morefigs <morefigs@gmail.com> | 2019-01-29 10:23:22 +1100 |
|---|---|---|
| committer | morefigs <morefigs@gmail.com> | 2019-01-29 10:23:22 +1100 |
| commit | 9ef9b70070678fe3d4663ca70cd1dec3094eac6a (patch) | |
| tree | aedd0fc81cdfb70b8ee55c0f41ab1dd9302b07af | |
| parent | 8ef8e190089502592dd68b064c401f25c85cae2e (diff) | |
| download | pymba-9ef9b70070678fe3d4663ca70cd1dec3094eac6a.tar.gz pymba-9ef9b70070678fe3d4663ca70cd1dec3094eac6a.zip | |
automatically check for GigE devices
| -rw-r--r-- | pymba/vimba.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pymba/vimba.py b/pymba/vimba.py index a943083..795e03f 100644 --- a/pymba/vimba.py +++ b/pymba/vimba.py @@ -50,8 +50,7 @@ class Vimba: vmb_version_info.minor, vmb_version_info.patch)) - @staticmethod - def startup(): + def startup(self): """ Initialize the Vimba C API. """ @@ -59,6 +58,10 @@ class Vimba: if error: raise VimbaException(error) + # automatically check for the presence of a GigE transport layer + if self.system().GeVTLIsPresent: + self.system().run_feature_command('GeVDiscoveryAllOnce') + @staticmethod def shutdown(): """ |
