Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : edflib details
Login with GitLab

edflib

load/write edf/bdf-files
(3266 downloads for this version - 51985 downloads for all versions)
Details
Version
0.1.0
A more recent valid version with binaries for Scilab 5.2 exists: 0.2.6
Author
Holger Nahrstaedt
Owner Organization
TU-Berlin, FG Regelungssysteme
Maintainer
Holger Nahrstaedt
Category
License
Creation Date
June 24, 2010
Source created on
Scilab 5.2.x
Binaries available on
Scilab 5.2.x:
Linux 32-bit Windows 32-bit Windows 64-bit macOS Linux 64-bit
Install command
--> atomsInstall("edflib")
Description
            EDFlib is a programming library for C/C++ to read/write EDF+/BDF+ files.
EDF means European Data Format. BDF is the 24-bits version of EDF.
This is a gateway to load/write the EDF+/BDF+ files directly from scilab.            
Files (6)
[47.31 kB]
Source code archive

[79.69 kB]
Linux 32-bit binary for Scilab 5.2.x
Linux 32-bit
Automatically generated by the atoms compilation chain

[1.01 MB]
Windows 32-bit binary for Scilab 5.2.x
Windows 32-bit
Automatically generated by the ATOMS compilation chain

[1.05 MB]
Windows 64-bit binary for Scilab 5.2.x
Windows 64-bit
Automatically generated by the ATOMS compilation chain

[80.35 kB]
macOS binary for Scilab 5.2.x
MacOSX version
Automatically generated by the atoms compilation chain

[83.89 kB]
Linux 64-bit binary for Scilab 5.2.x
Linux 64-bit
Automatically generated by the atoms compilation chain

News (0)
Comments (5)     Leave a comment 
Comment from Allan CORNET -- June 24, 2010, 08:53:44 PM    
On Windows with Visual Studio, this module can not build

edflib.c
edflib.c(381) : error C2143: syntax error : missing ';' before 'type'
edflib.c(387) : error C2065: 'annot' : undeclared identifier
edflib.c(387) : warning C4047: '=' : 'int' differs in levels of indirection from
 'edf_annotationblock *'
edflib.c(389) : error C2065: 'annot' : undeclared identifier
edflib.c(389) : error C2223: left of '->next_annotation' must point to struct/un
ion
edflib.c(393) : error C2065: 'annot' : undeclared identifier
edflib.c(393) : error C2065: 'annot' : undeclared identifier
edflib.c(393) : error C2223: left of '->next_annotation' must point to struct/un
ion


if edflib.c is a C Ansi file, variable must be defined at beginning of a C block

move file line 381 to line 198


sci_edf_get_patient_additional.c(121)

add line 29: char ** pstData			= NULL;
and line 121 pstData			= (char**)malloc(sizeof(char*) * Rows_out * 
Cols_out);

sci_edf_get_admincode.c (121) same thing
sci_edf_get_birthdate.c(121)
sci_edf_get_equipment.c(121)
sci_edf_get_gender.c(121)
sci_edf_get_patientcode.c(121)
sci_edf_get_patientname.c
sci_edf_get_technician.c
...


Your code could be factorized ;)

Allan
Answer from Teunis xx -- June 27, 2010, 11:50:46 AM    
> On Windows with Visual Studio, this module can not build
> 


edflib.c is meant to be used with GCC on Linux or MinGW on windows.
Comment from Allan CORNET -- June 27, 2010, 07:32:45 PM    
Why this limitation ?

problem is not only on edflib.c but on all your gateway

Please fix theses files if you want to a package on Atoms

Do no hesitate if you need my help about this windows port.

Allan


Comment from Allan CORNET -- June 27, 2010, 07:34:10 PM    
"MS visual C compiler has not been tested but should work."

http://www.teuniz.net/edflib/

Allan
Comment from Holger Nahrstaedt -- June 27, 2010, 08:50:22 PM    
I changed the edflib.c and all other gateway files. Can you try to compile the toolbox
using MS visual C compiler. 

Holger
Comment from Allan CORNET -- June 28, 2010, 08:18:09 AM    
Hi,

Thanks you 

It seems to build and works on Windows 


Allan

->exec loader.sce
 
-->// This file is released into the public domain
 
-->// Generated by builder.sce: Please, do not edit this file
 
-->//
 
-->try
--> v = getversion('scilab');
-->catch
--> warning('Scilab 5.0 or more is required.');
--> return;
-->end;
 
-->// ====================================================================
 
-->root_tlbx = get_absolute_file_path('loader.sce');
 
-->exec(root_tlbx+'etc\'+'edflib.start');
Start edflib toolbox
	Load macros
	Load gateways
	Load help
	Load demos
 
-->// ====================================================================
 
-->clear root_tlbx;
 
-->// ====================================================================
 
  
 edf_get_startdatetime(filename)   
 
    2010.    6.    24.    16.    31.    16.  
 
 edf_get_patientname(filename)   
 
 holger   
 
 edf_get_patientcode(filename)   
 
 code0   
 
 edf_get_gender(filename)   
 
 Male   
 
 edf_get_birthdate(filename)   
 
 01 jan 2000   
 
 edf_get_patient_info(filename)   
 
 additianal                                              
 
 edf_get_admincode(filename)   
 
 admincode   
 
 edf_get_technician(filename)   
 
 tec2   
 
 edf_get_equipment(filename)   
 
 device 3   
 
 edf_get_recording_info(filename)   
 
 dasf                                 
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.