Open BSF files in MATLAB btk

475 views
Skip to first unread message

Jesse Young

unread,
Jun 14, 2013, 9:54:08 AM6/14/13
to btk-...@googlegroups.com
Hello all - 

I found the following BTK C++ code in doing a Google search "open amti bsf file":


Is this function implemented in the matlab binary for BTK?  I have lots of AMTI force data that I'd like to open and process in MATLAB, and being able to open the BSF files directly would make it much easier.

thanks and take care,
Jesse

Arnaud BARRE

unread,
Jun 14, 2013, 10:41:17 AM6/14/13
to BTK Users
Hi Jesse,

This code is not available in the latest binary for Matlab (BTK 0.2.1) as the source code you found is still experimental (only tested on few BSF files but works perfectly). It will be included in BTK 0.3. On the other hand, you can compile the code yourself using the building instructions. Or, if you give me the configuration of your OS and Matlab version and architecture (32/64-bit), I could do it for you.

Regards,

Arnaud


--
You received this message because you are subscribed to the Google Groups "BTK Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to btk-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Roberto Di Marco

unread,
May 25, 2015, 5:28:42 PM5/25/15
to btk-...@googlegroups.com
Hi,

I know it is a very old post, but I am having the same problems opening the BSF files.
Is any function available to extract the data from a BSF file and process them in Matlab? I downloaded the BTK 0.3 toolbox, but I cannot find any function for that. (It may be my fault...sorry!)

Thank you very much,
Roberto

Arnaud Barré

unread,
May 28, 2015, 10:50:52 AM5/28/15
to btk-...@googlegroups.com
Hi Roberto,

To open a BSF file, you have to use the Matlab function ‘btkReadAcquisition’.

You can find additional information in our online documentation: http://b-tk.googlecode.com/svn/doc/Matlab/0.3/_tutorial.html#TutorialGettingStarted

Arnaud
> For more options, visit https://groups.google.com/d/optout.

Marcos Duarte

unread,
Aug 12, 2015, 10:11:05 PM8/12/15
to BTK Users
Hi Arnaud

Now, the AMTI .bsf file has a new version number, 105. The difference in relation to version 100 (the version BTK can read) is that data is saved as 8-byte doubles and not anymore as 2-byte integers. And the data is already in engineering units, at least when a new AMTI amplifier is used and the full conditioned mode is selected in the AMTI configuration software. 

For whom is interested, the following page describes a Python code to open the .bsf file at the new version 105: https://github.com/demotu/BMC/blob/master/notebooks/AMTIbsfFile.ipynb.

Sorry for not helping you with this change to the BTK source code.

Best

Marcos

Arnaud Barré

unread,
Aug 13, 2015, 6:21:07 PM8/13/15
to btk-...@googlegroups.com
Hi Marco,

Thanks for this information. I created an issue on GitHub to improve the BSF parser.
https://github.com/Biomechanical-ToolKit/BTKCore/issues/7

Best,

Arnaud
Reply all
Reply to author
Forward
0 new messages