diff options
| author | morefigs <morefigs@gmail.com> | 2014-05-07 17:24:42 +1000 |
|---|---|---|
| committer | morefigs <morefigs@gmail.com> | 2014-05-07 17:24:42 +1000 |
| commit | aa9af12e09c6d10e5cba8d23928c312ac67ba94c (patch) | |
| tree | ef09e6295bb1da603c129e0a263a5826fe007dde | |
| parent | c3306fa8066a38938bfbe4558ee0f88d61c53974 (diff) | |
| download | pymba-aa9af12e09c6d10e5cba8d23928c312ac67ba94c.tar.gz pymba-aa9af12e09c6d10e5cba8d23928c312ac67ba94c.zip | |
Update README.md
| -rw-r--r-- | README.md | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -16,16 +16,16 @@ Install pymba. If Vimba and pymba are installed correctly, then the following code should give the installed Vimba version. No camera is needed. - from vimba import * + from pymba import * - vimba = Vimba() - print vimba.getVersion() + vimba = Vimba() + print vimba.getVersion() ### Interacting with cameras Discover, open, manipulate, and capture frames from a camera. - from vimba import * + from pymba import * import time # start Vimba @@ -97,7 +97,7 @@ Discover, open, manipulate, and capture frames from a camera. Get a reference to the Vimba system object and list available system features. - from vimba import * + from pymba import * vimba = Vimba() vimba.startup() @@ -116,7 +116,7 @@ Get a reference to the Vimba system object and list available system features. Get a reference to an interface object and list available interface features. - from vimba import * + from pymba import * vimba = Vimba() vimba.startup() @@ -140,13 +140,15 @@ Get a reference to an interface object and list available interface features. ### Handling Vimba exceptions - from vimba import * + from pymba import * + + vimba = Vimba() + try: + camera0 = vimba.getCamera(123) + except VimbaException as ve: + print ve.message + - try: - vimba = Vimba() - vimba.startup() - except VimbaException as e: - print e.message ## Known issues |
