Specifications
sharpVISION™ Camera
sharpVISION™ SDK Reference
106
8
8
.
.
A
A
p
p
p
p
e
e
n
n
d
d
i
i
x
x
8.1. Appendix A - Return Codes
The following table shows the values of the codes returned by the sharpVISION APIs. The
values can be found in the SharpAPI.h header file in the Include subdirectory.
Code Value Notes
SVC_SUCCESS 0 OK – No errors
SVC_NOTSUPPORTED 1 Function is not supported for this device
SVC_INVALIDVALUE 2 Invalid parameter value
SVC_BADSETTINGS 3 Bad SV_SETTINGS structure
SVC_NOUSERDRIVER 4
SVC_NOFIREWIREDRIVER 5 No fire-wire device driver is installed
SVC_DRIVERCONNECTION 6 Problems on driver connection
SVC_DRIVERALREADYLOADED 7 Too many calls to SvLoadDriver – the driver is already loaded
SVC_DRIVERNOTLOADED 8 The driver is not loaded yet
SVC_INVALIDHANDLE 9 Invalid camera handle
SVC_UNKNOWNCAMERA 10 Unknown camera model for this driver version
SVC_INVALIDCAMERAID 11 Invalid camera id used in SvOpenCamera
SVC_NOMORECONNECTIONS 12 Obsolete
SVC_HARDWAREFAULT 13 Hardware fault
SVC_FIREWIREFAULT 14 Fire-wire fault
SVC_CAMERAFAULT 15 Camera fault
SVC_DRIVERFAULT 16 Driver fault
SVC_INVALIDFRAMEINDEX 17 Invalid frame index
SVC_BUFFERTOOSMALL 18 Frame buffer is too small for the acquired image
SVC_OUTOFMEMORY 19 Out of memory error
SVC_OUTOFSHAREDMEMORY 20 Out of shared memory error
SVC_BUSY 21 Fire-wire is busy
SVC_QUEUEFULL 22 Driver queue is full
SVC_CANCELLED 23 Operation cancelled
SVC_NOTSTREAMING 24 Streaming must be set to on before calling this function
SVC_LOSTSYNC 25 Lost synchronization, invalid frame
SVC_BLACKFILL 26 This frame is damaged, some data is missing
SVC_FIREWIREOVERFLOW 27 Fire-wire overflow - restart streaming
SVC_UNPLUGGED 28 Camera has been unplugged or turned off
SVC_ACCESSDENIED 29 The camera is already open
SVC_STRMFAULT 30 Stream allocation failed
SVC_NEEDUPDATE 31 The driver needs update
SVC_ROITOOSMALL 32 The region of interest is too small