MATLAB Answers

I am trying to read one of the channel in mf4 file but it is giving me the error of "Result buffer is too small". The rest of the channel in the channel list i can read the data properly

3 views (last 30 days)
Sparsh Tiwari
Sparsh Tiwari on 13 Oct 2020
Answered: Prabhan Purwar on 19 Oct 2020
chanList = channelList(mdfObj) % Channel table
data = read(mdfObj,chanList(2:3,:)); % i can read channel 2 and 3
data1 = read(mdfObj,chanList(5:11,:)); % I can read channel 5 to 11
But not channel 4 for some reason.
it is always giving me the error of result buffer too small.

  0 Comments

Sign in to comment.

Answers (1)

Prabhan Purwar
Prabhan Purwar on 19 Oct 2020
Hey,
This seems to be a known issue with Vehicle Network Toolbox and is fixed in version R2019b Update 5 onwards.
The issue arises when trying to read MDF data from a channel that contains array greater than 256 bytes in size.
I would recommend you to kindly update the MATLAB version.
Thanks

  0 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!