2 0 H a M e s i l a S t . , N e s h e r 3 6 8 8 5 2 0 , I s r a e l
P O B 2 5 0 0 4 , H a i f a 3 1 2 5 0 0 1 , I s r a e l
T e l : ( + 9 7 2 ) - 7 2 - 2 7 2 3 5 0 0 F a x : ( + 9 7 2 ) - 7 2 - 2 7 2 3 5 1 1
Page no. 39 | Configuration Interface
7.9.2
UserSet operation sequence
The following steps describe the sequence of saving and loading user set camera parameter configurations:
Save User Set:
1.
Calibrate the desired camera parameters in “Camera” tab.
2.
Open “User Set Control” category
3.
Select the desired “UserSetSelector” numeration as UserSetX (X in range of 1-8).
NOTE: “Default” user set contains factory settings and is not rewritable.
4.
Execute “Save User Configuration” command.
Load User Set:
1.
Select “UserSetSelector” to the desired UserSetX (X in range of 1-8).
2.
Execute “Load User Configuration” command.
3.
Press “Refresh” (located in the bottom of the project window).
4.
In order to determine the user set configuration with which setting the camera will power up, set the
desired user set in “User Set Default Selector” to UserSetX (X in range of 1-8).
NOTES:
1.
“Default” user set will load camera’s factory settings.
2.
Firmware update may erase the saved user sets and may change camera’s “Default” settings.
The following function call sequence should be performed to achieve successful User Non-Volatile new memory
save:
KYFG_SetGrabberValueInt(camHandle,
UserMemoryPageSelector
, <page[255..0]>)
KYFG_ExecuteCommand(camHandle,
UserMemoryBulkErase
)
1.
2.
KYFG_ExecuteCommand(camHandle,
UserMemoryPageSave
)
uint8_t buffer[256]; uint32_t bufferSize = sizeof(buffer);
KYFG_CameraReadReg(camHandle, 0x30300, buffer, &bufferSize);
uint8_t buffer[256]={0,1,2,3/*...*/}; uint32_t bufferSize = sizeof(buffer);
KYFG_CameraWriteReg(camHandle, 0x30300, buffer, &bufferSize);
3.
4.
Figure 33 – Non-Volatile memory save function call sequence
1.
“UserMemoryBulkErase” – erase all user non-volatile memory
2.
“UserMemoryPageSelector” – select page[255..0] in memory (256 bytes for each page)
3.
“UserMemoryPageAll” – array of 256 bytes to load data of specified page
4.
“UserMemoryPageSave” – save selected page to non-volatile memory