Main Content

データ ログ

後続のデータ処理のためにモデルのシミュレーション中にワークスペースにデータ ログを作成

シミュレーション データのログをワークスペースまたはディスク上の一時ファイルに記録し、デバッグと検証に使用できます。データ ログにより、シミュレーション中の時間経過に伴い内部ブロックの変数がどのように変化するかを解析できます。シミュレーション データのログを記録すると、後ほどシミュレーションを再実行せずにこのデータのクエリ、プロット、解析が行えます。Simscape™ データ ログおよび選択的なログ インストルメンテーションを使用して、ブロック変数データのログを作成できます。

Simscape データ ログでは、モデル内の選択したブロックまたはすべてのブロックに関するすべての変数のログが作成され、そのデータがシミュレーション ログ ワークスペース変数に出力されます。Simscape データ ログの作成結果は、Simscape 結果エクスプローラー ツールを使用して対話的に可視化およびナビゲートできます。データ ログと Simscape 結果エクスプローラーを使用すると、モデルにセンサーやスコープを追加しなくてもシミュレーション結果を表示できます。詳細については、シミュレーション データのログ作成、ナビゲートおよびプロットを参照してください。

選択的なログでは、ログが有効なブロックで選択した変数のログのみが作成されます。Simscape は、変数のログを Simulink® 信号と共に Simulink.SimulationData.Dataset オブジェクトに記録します。選択的なログは、ユーザー インターフェイスを使用して Simscape ブロックに対して有効にできます。ログを作成するブロック変数は、モデルをコンパイルせずにインストルメンテーション テーブルで表示および選択できます。選択的なログの作成結果を可視化するには、シミュレーション データ インスペクターを使用します。詳細については、Log Selected Block Variablesを参照してください。

選択的なログ インストルメンテーションはプログラムでも管理できます。詳細については、Log Selected Variables Programmaticallyを参照してください。

ツール

Simscape 結果エクスプローラーNavigate and plot simulation data logging results

関数

すべて展開する

simscape.logging.NodeHierarchy tree for simulation data
simscape.logging.SeriesTime-value series for simulation data
simscape.logging.exportSave logged simulation data in MLDATX file
simscape.logging.importCreate simulation log variable to access data in MLDATX file
simscape.logging.plotPlot logged simulation data for Node or Series
simscape.logging.plotxyPlot logged simulation data for one node or series against another
simscape.logging.findNodeFind Node object corresponding to block or subsystem (R2020a 以降)
simscape.logging.sli.findNode(To be removed) Find Node object corresponding to block or subsystem
simscape.logging.findPathFind path to node in logged simulation data tree (R2020a 以降)
simscape.logging.sli.findPath(To be removed) Find path to node in logged simulation data tree
simscape.logging.getSimulationLogIdentify latest Simscape simulation log for a model (R2024a 以降)
simscape.logging.timestampDetermine whether simulation log is current or stale (R2021a 以降)
sscexploreOpen Simscape Results Explorer to interact with logged simulation data
sscprintzcsPrint zero crossing information for logged simulation data
simscape.instrumentation.VariableTableStore and manage block variable data (R2024a 以降)
simscape.instrumentation.VariableConfigurationConfiguration for variable (R2024a 以降)
simscape.instrumentation.defaultVariableTableReturn default VariableTable object for block (R2024a 以降)
simscape.instrumentation.setVariableTableSet VariableTable object for block (R2024a 以降)
simscape.instrumentation.getVariableTableGet current VariableTable object for block (R2024a 以降)
simscape.instrumentation.enableLoggingEnable logging for block (R2024a 以降)
simscape.instrumentation.disableLoggingDisable logging for block (R2024a 以降)
simscape.instrumentation.isLoggingEnabledReturns whether logging is enabled for a block (R2024a 以降)

トピック

Simscape データ ログ

選択的なログ