Raspberry PiにCSVファイルで測定データを保存する
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
hirokazu iso
am 26 Mai 2020
Bearbeitet: Toshinobu Shintai
am 2 Jun. 2020
simulinkで作成したモデルをRaspberry Piで実行し、センサでの測定結果をCSVファイルに保存したいと思っています
simulinkのブロックにはCSVファイルに保存できるものはありませんが実現可能でしょうか
Matlab 2019b / Raspberry Pi 3 Model B+ で行おうと思っています
0 Kommentare
Akzeptierte Antwort
Toshinobu Shintai
am 26 Mai 2020
Bearbeitet: Toshinobu Shintai
am 2 Jun. 2020
エクスターナルモードで実行している場合は、実行時にMATLABのワークスペースに変数として測定結果を格納しておき、試験後に「writematrix」コマンドでファイルに保存することができます。
信号線の値をMATLABワークスペースにログするには「To Workspace」ブロックが利用できます。
スタンドアローンで実行している場合は、C言語のfwrite関数などを利用してファイルに書くことができます。C言語の処理をSimulinkで用いる場合は、S-Function BuilderやC Callerなどを参照してください。
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Raspberry Pi Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!