SK91USB3-LX  1.2.0
Functions
Setting new parameters

Details how to set new values using the serial commands. More...

Functions

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

Detailed Description

Details how to set new values using the serial commands.

This page describes the functions to set the integration time or line frequency.

Function Documentation

int SK_NOSAVINGEEPROM ( int  CamID,
bool  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!

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
int SK_SETCOMMAND ( int  CamID,
const char *  Command,
char *  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