Main Content

데이터 기록

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

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

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

선별적 기록은 기록이 활성화된 블록의 선택된 변수만 기록합니다. Simscape는 Simulink.SimulationData.Dataset 객체에 Simulink® 신호와 함께 변수를 기록합니다. 사용자 인터페이스를 사용하여 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 데이터 기록

선별적 기록