docsoph / b-tk

Automatically exported from code.google.com/p/b-tk
0 stars 0 forks source link

MATLAB closes unexpectedly using acq = btkReadAcquisition('ADBHL.mdf') #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I try to read some CODAMOTION data with acq = 
btkReadAcquisition('ADBHL.mdf')and Matlab closes. 
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
BTK 0.3 for MATLAB 2009 or later 64 bit. With MATLAB 7.12.0 (R2011a) on Windows 
home premium 7. 

Thanks

Please provide any additional information below.

Original issue reported on code.google.com by Brodie...@gmail.com on 4 Feb 2014 at 5:30

GoogleCodeExporter commented 8 years ago
Could you join the ABDHL.mdf file? I tested the MDF file reader only on one 
file proposed with the library Open3DMotion. Maybe I wrongly manage some data 
during the conversion Open3DMotion -> Biomechanical ToolKit..

Original comment by arnaud.barre on 4 Feb 2014 at 1:12

GoogleCodeExporter commented 8 years ago
Hi, thanks for the reply. This is my first time using the BTK so maybe I have 
done something wrong. Please have a look at the file if you could, I have 
attached two. It contains data my colleague collected from postural sway while 
standing on an elevated platform and on the floor. Perhaps the difference is 
that this file contains output from a force plate recorded simultaneously using 
the CODAMOTION system. I have about 200 of these to analyse so would prefer to 
write a MATLAB script to do it automatically. 

Thanks

Original comment by Brodie...@gmail.com on 4 Feb 2014 at 10:34

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks to your files I found the reason why the code crashes. I did not manage 
correctly the case where there is only analog channels in MDF files. I will 
commit quickly a fix for that.

In case you cannot compile the source code yourself, I can send you an updated 
version of the function 'btkReadAcquisition' if you prefer.

Original comment by arnaud.barre on 7 Feb 2014 at 5:01

GoogleCodeExporter commented 8 years ago
Thank you for checking this. Please attach the updated version of the function 
btkReadAcquisition for 64 bit MatLab on Windows 7, if you can. I am not sure 
how to build this myself. 

Thanks again. 

Original comment by Brodie...@gmail.com on 9 Feb 2014 at 10:00

GoogleCodeExporter commented 8 years ago
The joined file 'btkReadAcquisition.mexw64' should fix the problem. You only 
have to replace the previous file with this one. Please tell me if the new 
version fixes your problem and I will close this issue.

Original comment by arnaud.barre on 11 Feb 2014 at 10:21

Attachments:

GoogleCodeExporter commented 8 years ago
Works like a dream, thank you for making a really useful tool. 
I would recommend this to others. 

Regards,

Original comment by Brodie...@gmail.com on 11 Feb 2014 at 10:53

GoogleCodeExporter commented 8 years ago
Fixed in commit c2a8c30.

Original comment by arnaud.barre on 11 Feb 2014 at 11:02

GoogleCodeExporter commented 8 years ago
Sorry, one more thing. It worked for almost all my files, but for some files 
including the attached file the following error was generated and no handle was 
returned, so I could not get analogs variables. 

??? Error using ==> btkReadAcquisition
No raw marker data present (required to deduce frame rate
for calculated data)

Regards, 

Original comment by Brodie...@gmail.com on 12 Feb 2014 at 12:32

Attachments:

GoogleCodeExporter commented 8 years ago
This error is thrown directly from the C++ library developed by CodaMotion. I 
sent a bug report to them 
(https://github.com/Open3DMotionGroup/Open3DMotion/issues/14)

Original comment by arnaud.barre on 12 Feb 2014 at 7:34

GoogleCodeExporter commented 8 years ago
Hi All, many thanks for the feedback on Open3DMotion, the independently 
maintained open source library on which the latest Codamotion software is 
based.  We will investigate this issue in the open source library as time 
permits.  However if you urgently need to import MDF into Matlab and are having 
issues with that please don't hesitate to contact Codamotion support by 
telephone (+44 116 230 1060) or via the contact form on the website 
http://codamotion.com/?Itemid=55 .  Best regards.

Original comment by joel.mit...@gmail.com on 12 Feb 2014 at 3:25