Error readxpcfile (line 14)

5 次查看(过去 30 天)
MT
MT 2015-9-21
MATLAB uses the File Scope of xPCtarget on Simulink at 2011b, after recovering the output data from targetPC, the following errors occur when you run the readxpcfile. Please tell me how to resolve this error.
Error readxpcfile (line 14) Message: output character buffer is too small it can not contain characters that are decoded. Encoding 'Unicode (UTF-8)' fallback 'System.Text.DecoderReplacementFallback'.
Parameter name: chars Source: mscorlib HelpLink:
Error readxpcfile> readxpcfile_internal (line 61) file = xpctarget.utils.readxpcfile (data);
Error readxpcfile (line 45) file = readxpcfile_internal (data);
Error Hybrid (line 340) dataf = readxpcfile ('DATA.dat');% Convert it to matlab variable
-------------------------------------------------------------------------------------------
[Japanese]
MATLAB 2011bにてSimulink上でxPCtargetのFile Scopeを使用し、出力データをtargetPCから回収後、readxpcfileを実行すると下記のエラーが発生する。 このエラーの解決方法を教えてください。
エラー readxpcfile (line 14) Message: 出力文字バッファーが小さすぎてデコードされた文字を含めることができません。エンコード 'Unicode (UTF-8)' フォールバック 'System.Text.DecoderReplacementFallback'。
パラメーター名: chars Source: mscorlib HelpLink:
エラー readxpcfile>readxpcfile_internal (line 61) file = xpctarget.utils.readxpcfile(data);
エラー readxpcfile (line 45) file = readxpcfile_internal(data);
エラー Hybrid (line 340) dataf = readxpcfile( 'DATA.dat' ); % Convert it to matlab variable
  4 个评论
Rena Berman
Rena Berman 2016-9-30
编辑:Walter Roberson 2016-9-30
Sany Kerbe said:
Hello everyone, Any new on this topic ? On myside the provided tool does not help Regards
Walter Roberson
Walter Roberson 2016-9-30
It looks to me as if the file being read contains characters with numeric position 240 or larger, and that the tools are trying to encode those as UTF-8 which requires multiple output bytes for characters from 240 and upwards, and that the buffer space allocated is not large enough to store the extra bytes.
Unfortunately I do not have that toolbox so I cannot investigate what the limitations are.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Text Data Preparation 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by