Main Content

시뮬레이션 결과 분석하기

커서와 사용자 지정 시각화를 사용하여 데이터 검사, 시뮬레이션 결과 재생, 시뮬레이션 데이터 비교

시뮬레이션 데이터 인스펙터를 사용하여 여러 개의 시뮬레이션에서 얻은 데이터를 검사하고 비교할 수 있습니다. 예를 들어, 검사를 통해 두 신호 간의 차이가 특정 설계 허용오차 내에 있는지 확인할 수 있습니다. 자세한 내용은 시뮬레이션 데이터 인스펙터를 참조하십시오.

The Inspect pane of the Simulation Data Inspector shows three subplots. The subplots show time plots of data gathered from three runs of the model sldemo_autotrans. The first subplot shows the EngineRPM signals from all three runs. The second subplot shows the ShiftLogic signals from all three runs. The third subplot shows the VehicleSpeed signal from all three runs.

모두 확장

시뮬레이션 데이터 인스펙터데이터와 시뮬레이션 결과를 검사하고 비교하여 모델 설계 검증 및 반복

함수

모두 확장

일반

Simulink.sdi.plotPlot data in Simulation Data Inspector (R2019b 이후)
Simulink.sdi.view시뮬레이션 데이터 인스펙터 열기
Simulink.sdi.closeClose the Simulation Data Inspector
Simulink.sdi.clearAllSubPlotsClear plotted signals from all subplots in the Simulation Data Inspector (R2019b 이후)
Simulink.sdi.snapshotCapture contents of Simulation Data Inspector plots
Simulink.sdi.clearPreferencesRestore Simulation Data Inspector preferences to default settings
Simulink.sdi.saveViewSave visualization settings to apply to other data (R2020a 이후)
Simulink.sdi.loadViewLoad a view file to visualize data in the Simulation Data Inspector (R2019b 이후)
Simulink.sdi.setUnitSystemSpecify system of units to define signal display units in the Simulation Data Inspector (R2020b 이후)
Simulink.sdi.getUnitSystemGet current unit system configured in Simulation Data Inspector preferences (R2020b 이후)
Simulink.sdi.setRecordDataSpecify record mode for logging (R2021a 이후)
Simulink.sdi.getRecordDataCheck record mode for logging (R2021a 이후)
Simulink.sdi.setAppendRunToTopSpecify order in which Simulation Data Inspector appends new run in work area or archive (R2022b 이후)
Simulink.sdi.getAppendRunToTopGet order in which Simulation Data Inspector appends run in work area or archive (R2022b 이후)
Simulink.sdi.setPositionSet position and size of Simulation Data Inspector (R2022b 이후)
Simulink.sdi.getPositionGet position and size of Simulation Data Inspector (R2022b 이후)

병렬 워크플로 지원

Simulink.sdi.enablePCTSupportControl when to import data from parallel simulations into the Simulation Data Inspector
Simulink.sdi.isPCTSupportEnabledDetermine status and mode for Parallel Computing Toolbox support
Simulink.sdi.sendWorkerRunToClientSend run created on parallel workers to the Simulation Data Inspector
Simulink.sdi.cleanupWorkerResourcesClean up worker repositories
Simulink.sdi.WorkerRun.getLatestCreate worker run for latest run

시간 플롯 모양 사용자 지정

Simulink.sdi.getSubPlotLayoutGet subplot layout in Simulation Data Inspector (R2023b 이후)
Simulink.sdi.setSubPlotLayoutSet subplot layout in Simulation Data Inspector
Simulink.sdi.setSubplotLimitsSpecify subplot limits for time plots in the Simulation Data Inspector (R2021a 이후)
Simulink.sdi.getSubplotLimitsGet t- and y-axis limits for time plot in the Simulation Data Inspector (R2021a 이후)
Simulink.sdi.setTableGroupingChange signal grouping hierarchy in Inspect pane
Simulink.sdi.getMarkersOnDetermine if data markers are shown in the Simulation Data Inspector
Simulink.sdi.setMarkersOnShow or hide markers for plotted signals
Simulink.sdi.getGridOnDetermine grid configuration for time plots
Simulink.sdi.setGridOnConfigure grid lines for time plots in the Simulation Data Inspector
Simulink.sdi.getLegendPositionGet legend position in Simulation Data Inspector (R2023b 이후)
Simulink.sdi.setLegendPositionSet legend position in Simulation Data Inspector (R2023b 이후)
Simulink.sdi.getTicksPositionGet tick mark position setting for time plots (R2019b 이후)
Simulink.sdi.setTicksPositionConfigure position for tick marks on time plots in the Simulation Data Inspector (R2019b 이후)
Simulink.sdi.getTickLabelsDisplayGet tick mark label setting for time plots (R2019b 이후)
Simulink.sdi.setTickLabelsDisplayConfigure tick label visibility for time plot axes (R2019b 이후)
Simulink.sdi.getBorderOnGet border display setting for time plots (R2019b 이후)
Simulink.sdi.setBorderOnDisplay or hide border on time plots (R2019b 이후)
Simulink.sdi.getAutoTimespanGet behavior of time span in Simulation Data Inspector (R2022b 이후)
Simulink.sdi.setAutoTimespanSpecify behavior of time span in Simulation Data Inspector (R2022b 이후)

커서 제어

Simulink.sdi.setNumCursorsConfigure number of cursors active in Simulation Data Inspector (R2021a 이후)
Simulink.sdi.getNumCursorsCheck number of cursors active in the Simulation Data Inspector (R2021a 이후)
Simulink.sdi.setCursorPositionsSpecify active cursor positions in the Simulation Data Inspector (R2021a 이후)
Simulink.sdi.getCursorPositionsGet position for active cursors in the Simulation Data Inspector (R2021a 이후)
Simulink.sdi.setCursorOptionsConfigure shading options for cursors in the Simulation Data Inspector (R2020a 이후)
Simulink.sdi.registerCursorCallbackRegister callback for cursor movements in the Simulation Data Inspector (R2021a 이후)
Simulink.sdi.unregisterCursorCallbackUnregister cursor callback function (R2021a 이후)
Simulink.sdi.compareRunsCompare data in two simulation runs
Simulink.sdi.compareSignalsCompare data in two Simulink.sdi.Signal objects
Simulink.sdi.getCurrentComparison최근 비교 결과에 액세스 (R2020a 이후)
Simulink.sdi.DiffRunResult.getLatest최근 비교 결과에 액세스 (R2020a 이후)
getResultByIndexReturn signal comparison result
getResultsByNameReturn signal comparison results based on signal name (R2022b 이후)
saveResultSave comparison results to an MLDATX file (R2020a 이후)
Simulink.sdi.getComparisonColorGet line color in comparison plot (R2021b 이후)
Simulink.sdi.setComparisonColorSet line color in comparison plot (R2021b 이후)

실행 생성 및 액세스

Simulink.sdi.Run.getLatestGet the most recently created Simulation Data Inspector run (R2020a 이후)
Simulink.sdi.getCurrentSimulationRunAccess data for in-progress or most recently completed simulation (R2020a 이후)
Simulink.sdi.Run.createImport data into new run in Simulation Data Inspector and return Simulink.sdi.Run object
Simulink.sdi.createRunImport data into new run in Simulation Data Inspector and return run ID
Simulink.sdi.getRunAccess data for a Simulation Data Inspector run
Simulink.sdi.copyRunCopy a Simulation Data Inspector run
Simulink.sdi.addToRunImport data into existing run in Simulation Data Inspector using run ID
Simulink.sdi.deleteRunDelete a run from the Simulation Data Inspector repository
Simulink.sdi.getRunCountGet number of runs in Simulation Data Inspector repository
Simulink.sdi.getRunIDByIndexUse Simulation Data Inspector run index to get run ID
Simulink.sdi.getAllRunIDsGet all Simulation Data Inspector run identifiers
Simulink.sdi.isValidRunIDDetermine if run ID is valid
Simulink.sdi.createRunOrAddToStreamedRunCreate a single run for all simulation outputs

Run 객체 함수

addImport data into existing run in Simulation Data Inspector using Simulink.sdi.Run object
getAllSignalIDsGet all signal IDs for signals in Simulink.sdi.Run object (R2020a 이후)
getAllSignalsGet all signals in Simulink.sdi.Run object (R2020a 이후)
getDatasetRefCreate a Simulink.sdi.DatasetRef object for a run
getSignalByIndexGet signal in Simulink.sdi.Run object by index
getSignalIDByIndexGet signal ID for signal at specified index in Simulink.sdi.Run object
getSignalIDsByNameGet signal IDs for signals inside Simulink.sdi.Run object using signal name (R2020a 이후)
getSignalsByNameAccess signals in a Simulink.sdi.Run object using signal name (R2020a 이후)
isValidSignalIDCheck whether signal ID corresponds to signal in Simulink.sdi.Run object

실행 관리 설정

Simulink.sdi.getRunNamingRuleGet the Simulation Data Inspector rule for naming runs
Simulink.sdi.setRunNamingRuleSpecify the Simulation Data Inspector run naming rule
Simulink.sdi.resetRunNamingRuleRevert the Simulation Data Inspector run naming rule to default
Simulink.sdi.copyRunViewSettingsCopy line style and color for signals from one run to another

신호 액세스

Simulink.sdi.getSignalGet Simulink.sdi.Signal object for a signal
Simulink.sdi.deleteSignalDelete signal in the Simulation Data Inspector
Simulink.sdi.markSignalForStreamingTurn logging on or off for signal
Simulink.sdi.isValidSignalIDDetermine if signal ID is valid (R2022b 이후)

Signal 객체 함수

collapseRepresent multidimensional signal as a single signal with nonscalar sample values (R2021b 이후)
convertDataTypeConvert data type for signal in Simulation Data Inspector (R2022a 이후)
convertToFramesRemove buffering from frames of frame-based signal (R2021b 이후)
convertUnits Convert units of Simulink.sdi.Signal object
expandRepresent multidimensional signal as group of signals with scalar sample values (R2021b 이후)
export Export data for signal in Simulation Data Inspector to workspace or file
getAsTall Create tall timetable from Simulink.sdi.Signal object
plotOnSubPlot Plot Simulink.sdi.Signal object on Simulation Data Inspector subplot
Simulink.sdi.getArchiveRunLimitGet limit for number of runs to retain in Simulation Data Inspector archive
Simulink.sdi.setArchiveRunLimitSpecify number of runs to retain in Simulation Data Inspector archive
Simulink.sdi.getAutoArchiveModeGet Simulation Data Inspector run management mode
Simulink.sdi.setAutoArchiveModeSpecify how Simulation Data Inspector manages simulation runs
Simulink.sdi.loadLoad a Simulation Data Inspector session or view
Simulink.sdi.clearClear all data from the Simulation Data Inspector
loadIntoMemoryLoad logged data into memory

객체

모두 확장

Simulink.sdi.RunAccess run signals and metadata
Simulink.sdi.Signal Access signal data and metadata
Simulink.SimulationData.ParameterStores logged parameter data and metadata
Simulink.sdi.DiffRunResultAccess run comparison results
Simulink.sdi.DiffSignalResultAccess signal comparison results
io.readerBase class used to define custom variable or file reader for Simulation Data Inspector (R2020b 이후)
Simulink.sdi.CustomSnapshot Specify settings for snapshot without opening or affecting the Simulation Data Inspector
Simulink.sdi.WorkerRun Access simulation data from parallel workers
Simulink.sdi.DatasetRefAccess data in Simulation Data Inspector repository
matlab.io.datastore.sdidatastore Datastore for Simulation Data Inspector signals
Simulink.HMI.InstrumentedSignalsSave and restore signal logging specification
Simulink.HMI.SignalSpecificationProgrammatically connect a Dashboard block to a signal
Simulink.sdi.constraints.MatchesSignal시뮬레이션 데이터 인스펙터를 사용하여 시계열 데이터를 허용오차와 비교하는 제약 조건
Simulink.sdi.constraints.MatchesSignalOptionsSpecify comparison options for Simulink.sdi.MatchesSignal constraint

도움말 항목

시뮬레이션 결과 시각화하기

시뮬레이션 데이터 인스펙터로 데이터 가져오기

시뮬레이션 결과 분석하기

시뮬레이션 결과 비교