From 9ef9b70070678fe3d4663ca70cd1dec3094eac6a Mon Sep 17 00:00:00 2001 From: morefigs Date: Tue, 29 Jan 2019 10:23:22 +1100 Subject: automatically check for GigE devices --- pymba/vimba.py | 7 +++++-- 1 file 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(): """ -- cgit v1.2.3