![]() |
SK91GigE-WIN
5.5.2
|
Basics for start and closing down a API session. More...
Functions | |
int | SK_LOADDLL () |
Initializes data structures. More... | |
int | SK_UNLOADDLL () |
Releasing of internal buffers and structures. More... | |
int | SK_INITGIGE (size_t IPAddress, size_t SubnetMask) |
Initialization of IP engine and detection of all connected GigE devices. More... | |
int | SK_INITCAMERA (int CamID) |
Initializes the camera. More... | |
int | SK_INITCAMERA_SN (int CamID, int SN) |
Initializes the camera with given serial number. More... | |
int | SK_CLOSECAMERA (int CamID) |
Disconnects the camera. More... | |
int | SK_GETDEVICES (void) |
Returns number of devices. More... | |
LPCTSTR | SK_GETDLLVERSION () |
Returns the version number of the DLL. More... | |
LPCTSTR | SK_GETDLLDATE () |
Returns the build date of the DLL. More... | |
LPCTSTR | SK_FOLDEROFSETTINGS (void) |
Returns string with path name. More... | |
int | SK_ISCAMERAINIT (int CamID) |
Returns initialization status. More... | |
void | SK_SETACTIVE (int CamID, int ActiveStatus) |
Sets camera into active / passive mode. More... | |
int | SK_SETCAMID (int newID, int serialNumber) |
Switches the ID of two cameras. More... | |
Basics for start and closing down a API session.
Example:
Example with reassigment of camera IDs via serial number:
int SK_CLOSECAMERA | ( | int | CamID | ) |
Disconnects the camera.
This function disconnects the camera with the determined camera ID CamID
.
By calling SK_UNLOADDLL this function is called automatically for all initialized cameras.
CamID | id of camera from 0 ... n - 1, 0 = 1st camera |
LPCTSTR SK_FOLDEROFSETTINGS | ( | void | ) |
Returns string with path name.
This function returns a string with the path name where the camera settings will be stored.
Default folder: C:\Users\"username"\AppData\Roaming\SK\SK91GIGE-WIN\Settings
int SK_GETDEVICES | ( | void | ) |
Returns number of devices.
This function returns the number of the connected and detected line scan cameras. The result determines the range of CamID
in all functions (CamID
= 0 ... n-1)
LPCTSTR SK_GETDLLDATE | ( | ) |
Returns the build date of the DLL.
LPCTSTR SK_GETDLLVERSION | ( | ) |
Returns the version number of the DLL.
int SK_INITCAMERA | ( | int | CamID | ) |
Initializes the camera.
This function initializes the camera with determined camera ID CamID
.
CamID | id of camera from 0 ... n - 1, 0 = 1st camera |
int SK_INITCAMERA_SN | ( | int | CamID, |
int | SN | ||
) |
Initializes the camera with given serial number.
This function initializes the camera with determined serial number SN
and gives the camera ID CamID
.
CamID | id of camera from 0 ... n - 1, 0 = 1st camera |
SN | serial number of the camera which should be initialized |
int SK_INITGIGE | ( | size_t | IPAddress, |
size_t | SubnetMask | ||
) |
Initialization of IP engine and detection of all connected GigE devices.
IPAddress | Standard IP address for the cameras |
SubnetMask | Standard subnet mask for the cameras |
int SK_ISCAMERAINIT | ( | int | CamID | ) |
Returns initialization status.
This function returns the initialization status of the camera with the given camera ID CamID
.
CamID | id of camera from 0 ... n - 1, 0 = 1st camera |
int SK_LOADDLL | ( | ) |
Initializes data structures.
void SK_SETACTIVE | ( | int | CamID, |
int | ActiveStatus | ||
) |
Sets camera into active / passive mode.
This function sets a connected and initialized camera into active or passive mode.
CamID | id of camera from 0 ... n - 1, 0 = 1st camera |
ActiveStatus | 0 = passive, 1 = active |
int SK_SETCAMID | ( | int | newID, |
int | serialNumber | ||
) |
Switches the ID of two cameras.
This function is helpful if more than one camera is connected at a PC, and a camera with a special serial number should be assigned a determined ID (0, 1, ..., n-1). The camera IDs will be swapped. The camera, which had previously newID
, automatically receives the old camera id.
newID | id of camera from 0 ... n - 1, 0 = 1st camera |
serialNumber | Serial number of camera, which should get the newID |
int SK_UNLOADDLL | ( | ) |
Releasing of internal buffers and structures.
This function releases the internal buffers and structures. Also, it closes the opened cameras.
If function is not called, memory leaks are the result.