Instruction manual

5.2.38. el_WriteSetupFile
long
el_WriteSetupFile ( long BoardId, char* Filename, long Overwrite );
Filename : pointer to string with name of setup file and path
Overwrite : '1' if file should be overwritten, '0' otherwise
DESCRIPTION: Saves all current settings into a file. If the file specified with 'Filename' exists, it is not
updated. Only if Overwrite is set to '1' the function can be forced to overwrite an existing file. If Overwrite
is set to '0' and the file exists the function will return '-1' and the error code is set to EL_E_FILEEXIST.
RETURN VALUE:
0 if OK
-1 if ERROR. See el_GetErrorCode for details.
The setuptfile are not compatible for the different grabbers.
Must be used before el_CloseHW .
EXAMPLE:
if ( el_WriteSetupFile(BoardId, Filename, 0 ) == -1) {
if( el_GetErrorCode() == EL_E_FILEEXIST){
el_WriteSetupFile(BoardId, Filename, 1 )
}
else {
// e.g. wrong path specified or other I/O error
}
}
5.3. Defines
5.3.1. EL_ACQUISITIONMODE
UDSED IN: el_Acquire
Table 5.8. Acquisitionmode
EL_SNAP stop acquisition or acquisition of one frame
EL_LIVE live acquisition
EL_ABORT abort ongoing acquisition immediately
5.3.2. Error codes
Error and warning codes returned by el_GetErrorCode and el_GetErrorCodeEx
Table 5.9. Warning codes
Chapter 5. Programmers
Reference
81