aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormorefigs <morefigs@gmail.com>2014-05-07 17:24:42 +1000
committermorefigs <morefigs@gmail.com>2014-05-07 17:24:42 +1000
commitaa9af12e09c6d10e5cba8d23928c312ac67ba94c (patch)
treeef09e6295bb1da603c129e0a263a5826fe007dde
parentc3306fa8066a38938bfbe4558ee0f88d61c53974 (diff)
downloadpymba-aa9af12e09c6d10e5cba8d23928c312ac67ba94c.tar.gz
pymba-aa9af12e09c6d10e5cba8d23928c312ac67ba94c.zip
Update README.md
-rw-r--r--README.md26
1 files changed, 14 insertions, 12 deletions
diff --git a/README.md b/README.md
index f1d5050..8fd4bc1 100644
--- a/README.md
+++ b/README.md
@@ -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