AntoineCC / b-tk

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

Invalid ANB file written from Matlab #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
use the following script in Matlab
% Matlab code
nAn1 = btkNewAcquisition(1,10,5);
a = ones(10,5);
btkSetAnalogsValues(nAn1,a)
btkWriteAcquisition(nAn1, 'test.anb')
test = btkReadAcquisition('test.anb')

What is the expected output? What do you see instead?
The file should be read correctly but instead Matlab send this error message:
??? Error using ==> btkReadAcquisition
Keys mismatch: 0 vs 261

Please use labels and text to provide additional information.
The code 261 (0x0105) is related to the first time (or should be, not 100% 
sure) and is not correctly extracted. Potentially, there is an error before the 
writing of this information.

Original issue reported on code.google.com by arnaud.barre on 16 Apr 2013 at 7:06

GoogleCodeExporter commented 8 years ago
Issue fixed in the revision r1680. Two C++ unit tests were added for this 
isssue.

Original comment by arnaud.barre on 22 Apr 2013 at 7:24