Arduino Simulink external mode error

2 ビュー (過去 30 日間)
Ibrahim Essam
Ibrahim Essam 2017 年 8 月 23 日
編集済み: Mikhail 2017 年 9 月 28 日
when ever i try to run any simulink model in external mode with my Arduino Uno i get the following error im runiung Matlab 2017a on Ubuntu 17.04.
Simulation
07:47 PM
### Starting build procedure for model: untitled
Code Generation 1
Elapsed: 32 sec
AVR Memory Usage
----------------
Device: atmega328p
Program: 21696 bytes (66.2% Full)
(.text + .data + .bootloader)
Data: 1027 bytes (50.1% Full)
(.data + .bss + .noinit)
### Successful completion of build procedure for model: untitled
Build process completed successfully
Unexpected exception (basic_ios::clear: iostream error) was caught.
Component:Simulink | Category:Model error
  1 件のコメント
Mikhail
Mikhail 2017 年 9 月 27 日
編集済み: Mikhail 2017 年 9 月 28 日
Same with R2017b on Linux and Raspberry Pi.
Quick fix. Comment out line 180 of matlabroot/toolbox/coder/simulinkcoder_core/+coder/+oneclick/TargetHook.m:
% warningLog = matlab.internal.diagnostic.log.load(logfile);
And add this line below it:
warningLog.identifier = '';
I found out that this problem happens when I force MATLAB to use system libstdc++ instead of that shipped with MATLAB. In this case, the "matlab.internal.diagnostic.log.load(logfile)" line throws the error "basic_ios::clear: iostream error".
Unfortunately, I can't use MATLAB's shipping libstdc++ because it breaks more MATLAB functionality than it actually fixes.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by