Name

edfopen_file_writeonly — Opens an new file for writing.

Calling Sequence

[edf_handle]=edfopen_file_writeonly(path, filetype, number_of_signals)

Description

Opens an new file for writing. Warning, an already existing file with the same name will be silently overwritten without advance warning! Returns a handle on success, you need this handle for the other functions. In case of an error, it returns a negative number . This function is required if you want to write a file..

path is a null-terminated string containing the path and name of the file

filetype must be 0 = EDFLIB_FILETYPE_EDFPLUS or 1 = EDFLIB_FILETYPE_BDFPLUS

number_of_signals defines the number of signals that can be saved in the file

Examples

[edf_handle]=edfopen_file_writeonly('demo.bdf', 0, 2);

Authors

Holger Nahrstaedt