diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/show_cameras.py (renamed from examples/list_cameras.py) | 2 | ||||
| -rw-r--r-- | examples/show_interfaces.py | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/examples/list_cameras.py b/examples/show_cameras.py index 1d8258c..39fffe8 100644 --- a/examples/list_cameras.py +++ b/examples/show_cameras.py @@ -9,4 +9,4 @@ if __name__ == '__main__': if vmb.system.GeVTLIsPresent: vmb.system.run_feature_command("GeVDiscoveryAllOnce") sleep(0.2) - print(vmb.camera_ids) + print(vmb.get_camera_ids()) diff --git a/examples/show_interfaces.py b/examples/show_interfaces.py new file mode 100644 index 0000000..9d95fc1 --- /dev/null +++ b/examples/show_interfaces.py @@ -0,0 +1,7 @@ +from pymba.vimba import Vimba + + +if __name__ == '__main__': + + with Vimba() as vmb: + print(vmb.get_interface_ids()) |
