The WFDB Toolbox for MATLAB FAQ

How can I find the native WFDB Library version the toolbox uses?

Problem: How can I find the version of the native WFDB library used by the WFDB App Toolbox?

Solution: Information about the configuration of the WFDB App Toolbox can be obtained by typing:

 [~,config]=wfdbloadlib()

The item labeled WFDB_VERSION is the version of the native WFDB libraray being used by the Toolbox.

Is the WFDB App Toolbox supported in 32-bit systems ?

Problem: When I try to run the toolbox on my 32-bit version of Windows I get the following error message:

java.io.IOException: Cannot run program "...\WFDB_Toolbox\mcode\nativelibs\windows-x86\bin\rdsamp": CreateProcess error=2, The system cannot find the file specified
                at java.lang.ProcessBuilder.start(Unknown Source)
                at org.physionet.wfdb.Wfdbexec.execToDoubleArray(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
                at java.lang.ProcessImpl.create(Native Method)
                at java.lang.ProcessImpl.(Unknown Source)
                at java.lang.ProcessImpl.start(Unknown Source)

Solution: The WFDB App Toolbox for MATLAB currently does not support 32-bit versions of Windows. If you do not wish to upgrade your system, you can use an older version of the toolbox, WFDB Swig MATLAB , that may work with your 32-bit Windows machine.

How can I improve the memory use of the WFDB Toolbox?

Problem: When I try to read a record into MATLAB I get the following error messages (or a variation of):

>> [t, sig] = rdsamp('mghdb/mgh073');
Error using rdsamp (line 163)
Java exception occurred:
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:2694)
at java.lang.String.(String.java:203)
at java.lang.String.substring(String.java:1913)
at java.lang.String.subSequence(String.java:1946)
at java.util.regex.Pattern.split(Pattern.java:1202)
at java.lang.String.split(String.java:2313)
at java.lang.String.split(String.java:2355)
at org.physionet.wfdb.Wfdbexec.execToDoubleArray(Unknown Source)
(snip)

Solution: There are a couple of options that you can try to increase or make memory management more efficient when using the WFDB Toolbox. The following list of suggestions can be used either in combination of by themselves: