![Vision Components VC Smart Camera Скачать руководство пользователя страница 26](http://html1.mh-extra.com/html/vision-components/vc-smart-camera/vc-smart-camera_getting-started_1031724026.webp)
Getting Started VC Smart Cameras
22
5.2.3
Initialization of VC Library Functions within the Camera Program
All special libraries require initialization within the camera program code prior to using its functions.
From beginning of 2007 also new VCLib Libraries require initialization.
Initialization is done calling the „init_licence() function using the corresponding license code as shown
below:
void main(void)
{
/* Initialize VC Licenses*/
init_licence(”T1122334455”); /* initialization of full VC SDK-Ti license*/
init_licence(”LC1122334455”); /* initialization of an evaluation Color Lib License */
}
Function description (also refer to Color_Lib.pdf - Color library for VC cameras Version 3.0):
init_licence
initialize license code
synopsis
I32 init_licence (char *code)
Please always check the return value of the function init_licence: the function returns 0 if the
licence is valid, -5 if the licence is not valid.
!
Checking the return value is important: if the licence if not valid, some functions simply will not work,
without any error message.
Single licenses
(Smart Reader, Smart Finder and Solar Solution) are under the form of two codes
which have to be initialized in the source code. Refer to the documentation of the libraries.
1996-2011 Vision Components GmbH Ettlingen, Germany
Getting_Started_VC.pdf