<< edf_get_transducer Functions for reading files edfread_file >>

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

edfopen_file_readonly

Opens an new file for reading.

Calling Sequence

[header_list]=edfopen_file_readonly(path, read_annotations)
[header_list]=edfopen_file_readonly(path, read_annotations,live_stream)

Parameters

path:

string containing the path and name of the file

read_annotations:

0 = annotations will not be read (this saves time when opening a very large EDFplus or BDFplus file)

:

1 = annotations will be read immediately, stops when an annotation has been found which contains the description "Recording ends"

:

2 = all annotations will be read immediately

live_stream:

can be used to open edf/bdf - files, which are not closed.

:

0 = normal mode

:

1 = live stream mode

header_list:

mlist, filled with all the relevant header- and signalinfo/parameters

Description

Opens an new file for reading. If the opening was succesful, a header_list which is filled with all the relevant header- and signalinfo/parameters will be given back. The list contains a "handle" (header_list("handle")) which you need for the other functions.

content of the header_list:

handle

filetype : 0: EDF, 1: EDFplus, 2: BDF, 3: BDFplus, a negative number means an error

edfsignals : number of signals in the file

file_duration : duration of the file expressed in Seconds

startdatetime

patient

recording

patientcode

gender

birthdate

patient_name

patient_additional

admincode

technician

equipment

recording_additional

datarecord_duration : duration of a datarecord expressed in Seconds

datarecords_in_file

annotations_in_file

for each edfsignal:

label

smp_in_file

phys_max

phys_min

dig_max

dig_min

smp_in_datarecord : samples in one datarecord

physdimension

prefilter

transducer

Examples

[header_list]=edfopen_file_readonly(edf_getpath()+'/demos/demo.bdf', 0);

See also

Authors


Report an issue
<< edf_get_transducer Functions for reading files edfread_file >>