<< edfseek Functions for reading files utility functions >>

edflib - Toolbox for reading and writing edf/ bdf files >> Functions for reading files > edftell

edftell

Obtains the current value of the sample position indicator

Calling Sequence

[seek]=edftell(handle,edfsignal);

Parameters

edf_handle:

integer containing file handle of the opened bdf/edf-file

edfsignal:

Minimum value is 1

seek:

current offset

Description

The edftell function obtains the current value of the sample position indicator for the edfsignal pointed to by edfsignal. Returns the current offset. Otherwise, -1 is returned Note that every signal has it's own independent sample position indicator and edftell() affects only one of them.

Examples

header_list]=edfopen_file_readonly(edf_getpath()+"/demos/demo.bdf",0,0);
edf_handle=header_list.handle;
[seek]=edftell(edf_handle,1);
edf_close(edf_handle);

Authors


Report an issue
<< edfseek Functions for reading files utility functions >>