Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue using wdb2mat offline: creating a database folder but no files on version 0-9-10 #138

Open
GaTalEk opened this issue Mar 17, 2017 · 1 comment

Comments

@GaTalEk
Copy link

GaTalEk commented Mar 17, 2017

Hello,

I am using Windows 10, Matlab 2017a (academic use) and the 0-9-10 version of the WFDB toolbox, installed using the given code in the github page :
[old_path]=which('rdsamp');if(~isempty(old_path)) rmpath(old_path(1:end-8)); end wfdb_url='https://github.com/ikarosilva/wfdb-app-toolbox/raw/master/wfdb-app-toolbox-0-9-10.zip'; [filestr,status] = urlwrite(wfdb_url,'wfdb-app-toolbox-0-9-10.zip');%Octave users may have to download manually unzip('wfdb-app-toolbox-0-9-10.zip'); cd mcode addpath(pwd);savepath

I have been trying to use the WFDB toolbox to treat .dat files from the Physionet website. I would like to do it offline. I was able to run the demo and the example, and the files are created in the database folder ( ...\Desktop\Matlab\mcode\database).

But when I try to use the function with the .dat files, no files are created...

Here is the code I use :

wfdb2mat('...\Desktop\Matlab\CHARIS\charis4')
[tm,signal,Fs,labels]=rdmat('charis4m');

Errors are as follow :

Error using rdmat (line 79)
Could not open file: charis4m.hea !

No error is returned when only the wfdb2mat is used. The database folder is created but nothing is saved. I tried version 0-9-9 and 0-9-10. Do you have any idea why this issue exists and if there is any solution ?

By the way, 200.dat file is nowhere to be found, so I don't know how the .mat files are created...

Best wishes,
Gabriel Tallineau

P.S. : RDSAMP does not work either in an offline command.
rdsamp('charis4.dat')

Error using rdsamp (line 203)
Could not find record: charis4. Search path is set to: '.
C:\Users\Tallineau\Desktop\Matlab\mcode..\database
http://physionet.org/physiobank/database/'
I tried using files in the database folder, in the example folder, and I never go any .mat file generated.

Settings :

   MATLAB_VERSION: '9.2.0.538062 (R2017a)'
         inOctave: 0
     WFDB_VERSION: '[10.5.24]'
   WFDB_JAVA_HOME: ' C:\Users\Tallineau\Desktop\Matlab\mcode\'
  WFDB_NATIVE_BIN: ' C:\Users\Tallineau\Desktop\Matlab\mcode\nativelibs\windows\'
    EXECUTING_DIR: ' null'
           osName: 'windows'
       fullOsName: ' Windows 8'
           osArch: ' amd64'
   customArchFlag: ' false'
        OSVersion: ' 6.2'
       JVMVersion: ' 1.7.0_60]'
      MATLAB_PATH: 'C:\Users\Tallineau\Desktop\Matlab\mcode\'
WFDB_JAVA_VERSION: 'wfdb-app-JVM7-0-9-10.jar'
      DEBUG_LEVEL: 0
NETWORK_WAIT_TIME: 1000
      MATLAB_ARCH: 'win64'
        WFDB_PATH: '. C:\Users\Tallineau\Desktop\Matlab\mcode\..\database\ http://physionet.org/physiobank/database/'
          WFDBCAL: ' C:\Users\Tallineau\Desktop\Matlab\mcode\\database\wfdbcal'
   WFDB_CUSTOMLIB: 0
     CACHE_SOURCE: 'http://physionet.org/physiobank/database/'
       CACHE_DEST: 'C:\Users\Tallineau\Desktop\Matlab\mcode\..\database\'
            CACHE: 1
@GaTalEk GaTalEk changed the title Issue using wdb2mat : creating a database folder but no files on version 0-9-10 Issue using wdb2mat offline: creating a database folder but no files on version 0-9-10 Mar 17, 2017
@filipa-t
Copy link

Hi, I have the same problem. Can you help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants