Specifications

sharpVISION™ Camera
sharpVISION SDK Reference
104
7.5. How to use the Interface functions
7.5.1. Opening and closing a camera
A camera must be opened before using its functions and then it must be closed. To open a
specific camera you have to supply to the IdtSvOpenCamera function the ID of that camera.
You can also supply 0 to open the first available camera. To obtain the list of all available
cameras you may use the IdtSvEnumCameras function.
7.5.2. Configuring a camera
The camera configuration parameters may be set using a single function which configures all
the camera parameters (IdtSvConfigure). The current camera parameters may be read using
the IdtSvGetParameter routine. The parameters that may be read or written by these routines
are: exposure time; pixel size (8,10); binning; ROI (X, Y, width, height) as an array of four
unsigned long; trigger mode.
If you want to read or write a single parameter you may respectively use the
IdtSvGetParameter or the IdtSvSetParameter routines.
7.5.3. Acquiring images
The correct sequence to grab an image is to setup the driver to capture the image
(IdtSvStartAcquire), test if an image is ready to be acquired (IdtSvImageIsReady), read the
image (IdtSvAcquire) and stop the acquisition (IdtSvStopAcquire). You may obtain better
performance in acquiring multiple images if you call the IdtSvStartAcquire once, then a loop
of IdtSvImageIsReady/IdtSvAcquire, followed by one IdtSvStopAcquire.
7.5.4. Error handling
The sharpVISION MATLAB interface returns the same error codes displayed in the Error
Handling section of the LabVIEW interface reference topic.