Simscape でログを取った物理デ​ータを可視化するには​どうすればよいですか​?

1 view (last 30 days)
MathWorks Support Team
MathWorks Support Team on 17 Dec 2010
Simscape で作成したモデルのシミュレーションのデバッグを行うために、データをロギングしました。このデータを簡単に見る方法があるか、教えて下さい。

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 26 Dec 2022
Edited: MathWorks Support Team on 26 Dec 2022
ロギングデータは、MATLAB Central にある Simscape Simulation Result Viewer を使用することで、可視化できます。下記のURLよりダウンロードし、MATLABのパスが通ったフォルダに置いて下さい。
なお、ロギングデータは、コンフィギュレーションパラメータの [Simscape] ツリーを選択し、Data Logging の Lig simulation data:を ”all” に設定します(下図参照)。
シミュレーション実行後、ロギングされたデータは simscape.logging.Node オブジェクトとして保存されます。次に、下記のコマンドで、Simscape Simulation Results Viewer を実行してください。
ssc_explore(simlog)
ここで、simlog はベースワークスペースに保存されている simscape.logging.Node オブジェクトを表しています。コマンドを実行すると、下図の Figure が立ち上がり、各ノードの応答が簡単に確認できます。

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2010a

Community Treasure Hunt

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

Start Hunting!