IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
You can save the current camera parameters to a file on the host system or load the camera parameters from a file. For this, use the following IDS peak API functions.
|
Settings files (*.cset) for uEye+ cameras (U3/GV models)
•The cset file to be loaded must match the selected camera model.
•The camera's firmware version should be the same as the firmware version used to create the cset file. If the cset file was created with an older firmware version, compatibility cannot be guaranteed. In this case, check the camera settings after loading the cset file.
•If the cset file was created with a newer firmware version, the cset file cannot be loaded onto a camera that is operated with an older firmware version. |
// file contains the fully qualified path to the file
char* file = "c:/....";
peak_access_status accessStatus = peak_CameraSettings_DiskFile_GetAccessStatus(hCam);
if (PEAK_IS_WRITEABLE(accessStatus))
{
// Save to file
peak_status status = peak_CameraSettings_DiskFile_Store(hCam, file);
if (PEAK_ERROR(status)) { /* Error handling ... */ }
// Load from file
status = peak_CameraSettings_DiskFile_Apply(hCam, file);
if (PEAK_ERROR(status)) { /* Error handling ... */ }
}
|
try
{
// file contains the fully qualified path to the file
std::string file = "c:/....";
// Save to file
nodeMapRemoteDevice->StoreToFile(file);
// Load from file
nodeMapRemoteDevice->LoadFromFile(file);
}
catch (const std::exception&)
{
}
|
try
{
// file contains the fully qualified path to the file
var file = "c:/....";
// Save to file
nodeMapRemoteDevice.StoreToFile(file);
// Load from file
nodeMapRemoteDevice.LoadFromFile(file);
}
catch (Exception e)
{
}
|
try:
# file contains the fully qualified path to the file
file = "c:/...."
# Save to file
node_map_remote_device.StoreToFile(file)
# Load from file
node_map_remote_device.LoadFromFile(file)
except Exception as e:
# ...
|