ikarosilva / wfdb-app-toolbox

The WFDB Toolbox for MATLAB/Octave is a collection of functions for reading, writing, and processing physiologic signals in the formats used by PhysioNet (see README for details).
http://physionet.org/physiotools/matlab/wfdb-app-matlab/
GNU General Public License v3.0
93 stars 46 forks source link

WFDB2MAT does not generate files on some Windows Systems #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

 wfdb2mat('mitdb/200')

Is not able to create some mat-file. But there is no error message. System 
configuration:

 MATLAB_VERSION: '8.5.0.173394 (R2015a)'
              inOctave: 0
          WFDB_VERSION: '[10.5.24]'
                osName: 'windows'
            fullOsName: ' Windows 7'
                osArch: ' amd64'
        customArchFlag: ' false'
             OSVersion: ' 6.1'
            JVMVersion: ' 1.7.0_60]'
     WFDB_JAVA_VERSION: 'wfdb-app-JVM7-0-9-8.jar'
           DEBUG_LEVEL: 0
     NETWORK_WAIT_TIME: 1000
           MATLAB_ARCH: 'win64'
        WFDB_CUSTOMLIB: 0

This has been reported by a user, but we are currently not able to reproduce it.
The user suggested a work-around by reverting to version 0.9.7 of the toolbox.

Original issue reported on code.google.com by ikarosil...@gmail.com on 22 Jan 2015 at 3:03

GoogleCodeExporter commented 9 years ago
These steps will reproduce the problem:

% 1. Open MATLAB R2014b, evaluate:
[old_path]=which('rdsamp');if(~isempty(old_path)) rmpath(old_path(1:end-8)); end
% 2. Close Matlab and remove the old toolbox folder.

% 3. Open MATLAB. Go into the directory where you wish to install the Toolbox
% 4. Download the toolbox 0.9.7 and 0.9.8.

[filestr,status] = 
urlwrite('http://physionet.org/physiotools/matlab/wfdb-app-matlab/wfdb-app-toolb
ox-0-9-8.zip',...
    'wfdb-app-toolbox-0-9-8.zip');
[filestr,status] = 
urlwrite('http://physionet.org/physiotools/matlab/wfdb-app-matlab/wfdb-app-toolb
ox-0-9-7.zip',...
    'wfdb-app-toolbox-0-9-7.zip');

% 5. Unzip and set path to the toolbox

unzip('wfdb-app-toolbox-0-9-8.zip','wfdb0-9-8');
cd wfdb0-9-8/mcode
addpath(pwd);savepath
wfdb2mat('database/a01')
% at this point wfdb does not generate files

% 6. Switch the toolbox version 0.9.7
cd ../..
[old_path]=which('rdsamp');if(~isempty(old_path)) rmpath(old_path(1:end-8)); end
unzip('wfdb-app-toolbox-0-9-7.zip','wfdb0-9-7');
cd wfdb0-9-7/mcode
addpath(pwd);savepath
wfdb2mat('database/a01')
% at this point wfdb does generate files
delete('a01m.mat','a01m.hea')
cd ../..

% 7. Now switch to the toolbox version 0.9.8 again
[old_path]=which('rdsamp');if(~isempty(old_path)) rmpath(old_path(1:end-8)); end
cd wfdb0-9-8/mcode
addpath(pwd);savepath
wfdb2mat('database/a01')

% 8. Surprise: wfdb does generate files
delete('a01m.mat','a01m.hea')

System configuration:

       MATLAB_VERSION: '8.4.0.150421 (R2014b)'
             inOctave: 0
         WFDB_VERSION: '[10.5.24]'
               osName: 'windows'
           fullOsName: ' Windows 7'
               osArch: ' amd64'
       customArchFlag: ' false'
            OSVersion: ' 6.1'
           JVMVersion: ' 1.7.0_11]'
    WFDB_JAVA_VERSION: 'wfdb-app-JVM7-0-9-8.jar'
          DEBUG_LEVEL: 0
    NETWORK_WAIT_TIME: 1000
          MATLAB_ARCH: 'win64'
       WFDB_CUSTOMLIB: 0

Original comment by vollmer....@googlemail.com on 22 Jan 2015 at 5:29

hasanashik commented 7 years ago

I have the same problem. can someone solve it.Thanks in advance