SK91GigE-WIN  5.5.2
Functions
Saving parameters, serial commands

Volatile and permanent settings. Camera control via serial commands. More...

Functions

int SK_NOSAVINGEEPROM (int CamID, int enable)
 Volatile and permanent parameter settings. More...
 
int SK_SETCOMMAND (int CamID, LPCTSTR Command, LPTSTR Result, unsigned int sizeOfBuffer)
 Camera control via serial commands. More...
 

Detailed Description

Volatile and permanent settings. Camera control via serial commands.

This page describes the functions to save the parameters volatile or permanent in the camera.

Function Documentation

◆ SK_NOSAVINGEEPROM()

int SK_NOSAVINGEEPROM ( int  CamID,
int  enable 
)

Volatile and permanent parameter settings.

Default all parameter settings will be written immediately and are saved in the EEPROM inside the camera permanently. So, that they are active at the next camera session automatically. Because of the limited write cycles of the EEPROM (> 10 millions), the EEPROM saving can be disabled in case of very often and fast parameter changings, e.g. between each frame. Then the settings are lost when the camera is disconnected from the PC.
If you want sure that the last used settings are stored in the camera let EEPROM saving enabled!

Since
camera revision 2.50
Note
If the EEPROM saving was disabled in a session, at the program exit it is necessary to call this function with enable = false (!) if the settings should be saved.
Parameters
CamIDid of camera from 0 ... n - 1, 0 = 1st camera
enabletrue = disable saving to EEPROM,
false = enable saving to EEPROM
Returns
SK_RESULT_OK on success, else see Error Code Table

◆ SK_SETCOMMAND()

int SK_SETCOMMAND ( int  CamID,
LPCTSTR  Command,
LPTSTR  Result,
unsigned int  sizeOfBuffer 
)

Camera control via serial commands.

Remarks
The valid commands are listed in the camera manual.
Parameters
CamIDid of camera from 0 ... n - 1, 0 = 1st camera
CommandSerial command (without CR !)
ResultPointer to a string for result string (if expect)
sizeOfBufferSize of the result buffer
Returns
SK_RESULT_OK on success, else see Error Code Table
Remarks
While Continuous Grabbing all parameter settings are blocked normally. A backdoor for parameter settings between two frames is
SK_SETCOMMAND(CamID, CmdString, NULL, 1), wherein "CmdString" can be a string of up to 4 commands, separated by ';'.
example: SK_SETCOMMAND( CamID, "G200;X56", NULL, 1) sets the gain channel 0 to 200, and the exposure time to 0.056 ms