User`s guide
FUNCTIONS
SDK SECTION 11
Page 187
SaveAsCommentedSif
unsigned int WINAPI SaveAsCommentedSif(char* path, char* comment)
Description
This function will save the data from the last acquisition into a file. The comment text will
be added to the user text portion of the Sif file.
Parameters
char* path: pointer to a filename specified by the user.
char* comment: comment text to add to the sif file
Return
unsigned int
DRV_SUCCESS
DRV_NOT_INITIALIZED
DRV_ACQUIRING
DRV_ERROR_ACK
DRV_P1INVALID
Data saved.
System not initialized.
Acquisition in progress.
Unable to communicate with card.
Invalid filename.
See also
SetSifComment SaveAsSif SaveAsEDF SaveAsFITS SaveAsRaw SaveAsSPC
SaveAsTiff SaveAsBmp
NOTE: The comment used in SIF files created with this function is discarded once the call
completes, i.e. future calls to SaveAsSif will not use this comment. To set a persistent comment use
the SetSifComment function.
SaveAsEDF
unsigned int WINAPI SaveAsEDF (char* szPath, int iMode)
Description
This function saves the last acquisition in the European Synchotron Radiation Facility
Data Format (*.edf).
Parameters
char* szPath: the filename to save too.
int iMode: option to save to multiple files.
Valid values: 0 Save to 1 file
1 Save kinetic series to multiple files
Return
unsigned int
DRV_SUCCESS
DRV_NOT_INITIALIZED
DRV_ACQUIRING
DRV_ERROR_ACK
DRV_P1INVALID
DRV_P2INVALID
DRV_ERROR_PAGELOCK
Data successfully saved.
System not initialized.
Acquisition in progress.
Unable to communicate with card.
Path invalid.
Invalid mode
File too large to be generated in memory.
See also
SaveAsSif SaveAsFITS SaveAsRaw SaveAsSPC SaveAsTiff SaveAsBmp