Error readxpcfile (line 14)

6 views (last 30 days)
MT
MT on 21 Sep 2015
Commented: Walter Roberson on 30 Sep 2016
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 Comments
Rena Berman
Rena Berman on 30 Sep 2016
Edited: Walter Roberson on 30 Sep 2016
Sany Kerbe said:
Hello everyone, Any new on this topic ? On myside the provided tool does not help Regards
Walter Roberson
Walter Roberson on 30 Sep 2016
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.

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!