주요 콘텐츠

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

데이터 기록

후속 데이터 처리를 위해 모델 시뮬레이션 중에 작업 공간에 데이터 기록

디버그 및 검증을 위해 시뮬레이션 데이터를 작업 공간 또는 디스크의 임시 파일에 기록할 수 있습니다. 데이터 기록을 통해 시뮬레이션 중에 시간에 따라 내부 블록 변수가 어떻게 변경되는지 분석할 수 있습니다. 시뮬레이션 데이터를 기록하면 시뮬레이션을 다시 실행하지 않고도 나중에 이를 쿼리, 플로팅 및 분석할 수 있습니다. Simscape™ 데이터 기록과 선택적 기록 계측을 사용하여 블록 변수 데이터를 기록할 수 있습니다.

Simscape 데이터 기록은 선택한 블록의 모든 변수를 기록하거나 모델 내의 모든 블록을 기록하며 그 데이터를 시뮬레이션 로그 작업 공간 변수로 출력합니다. Simscape 데이터 기록 결과를 Simscape 결과 탐색기 툴에서 대화형 방식으로 시각화하고 탐색할 수 있습니다. 모델에 센서와 스코프를 추가하는 대신 데이터 기록과 Simscape 결과 탐색기를 사용하여 시뮬레이션 결과를 볼 수 있습니다. 자세한 내용은 Log, Navigate, and Plot Simulation Data 항목을 참조하십시오.

선택적 기록을 사용하면 기록이 활성화된 블록에서 선택된 변수에 대해서만 기록합니다. 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
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
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.VariableContainer for Simscape variable logging information (R2024a 이후)
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 the VariableTable object for a block (R2024a 이후)
simscape.instrumentation.getVariableTableGet current VariableTable object for block (R2024a 이후)
simscape.instrumentation.isLoggingEnabledReturn whether block variables have logging enabled (R2024a 이후)

모델 설정

시뮬레이션 데이터 기록Option to specify whether to log Simscape simulation data to workspace
시뮬레이션 통계량 기록Option to specify whether to log simulation statistics as part of simulation data
시뮬레이션 데이터 인스펙터에 데이터 기록Option to specify whether to stream Simscape data to Simulation Data Inspector
시뮬레이션 후 뷰어 열기Option to specify whether to open Simscape Results Explorer at the end of simulation run
작업 공간 변수 이름Name of workspace variable for Simscape simulation data logging
데시메이션Option to reduce logged data points by skipping time steps
데이터 점 제한Option to limit number of logged data points
데이터 내역(마지막 N개 스텝)Number of data points to log

도움말 항목

Simscape 데이터 기록

선택적 기록