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

1 次查看(过去 30 天)
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.

回答(1 个)

Prabhan Purwar
Prabhan Purwar 2020-10-19
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

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by