시뮬레이션에서 런타임 데이터 저장하기
출력, 신호, 시간, 상태 및 데이터 저장소 기록 데이터와 같은 시뮬레이션 데이터 저장
나중에 가져와서 후처리할 수 있도록 시뮬레이션 중에 시뮬레이션 데이터를 MATLAB® 작업 공간이나 MLDATX 파일, MAT 파일, Excel® 파일 등의 파일에 저장할 수 있습니다. 시뮬레이션 데이터는 출력, 신호, 시간, 상태 및 데이터 저장소 기록 데이터의 조합을 포함할 수 있습니다.
시뮬레이션 데이터를 Dataset 형식으로 저장하면 다양한 기록 기법의 결과에 대해 공통된 형식을 제공함으로써 후처리가 단순화됩니다. Dataset 형식을 사용하면 데이터가 MATLAB timeseries 객체 또는 timetable 객체로 저장되며, 이 객체는 MATLAB을 사용하여 처리할 수 있습니다.
데이터를 기록하는 데 어떤 접근 방식을 사용할지 결정하려면 시뮬레이션 데이터 저장하기 항목을 참조하십시오.
블록
| Outport | Create output port for subsystem or external output |
| Record | View and log data to the workspace, a file, or both (R2021a 이후) |
| To File | Write data to file |
| To Workspace | Simulink 모델의 작업 공간에 데이터 기록 |
툴
| 계측 속성 | View and edit logging and visualization properties for logged signal |
| 신호 속성 | View and edit signal properties |
| 시뮬레이션 데이터 인스펙터 | 데이터와 시뮬레이션 결과를 검사하고 비교하여 모델 설계 검증 및 반복 |
| Simulink 신호 기록 선택기 | View signal logging configuration and override signal logging settings |
함수
객체
모델 설정
도움말 항목
시뮬레이션 데이터
- 시뮬레이션 데이터 저장하기
모델을 분석하고 디버그하기 위해 시뮬레이션 데이터를 저장합니다. - View and Access Logged Simulation Data
View and access saved simulation data for a completed or paused simulation. - Data Format for Logged Simulation Data
You can use many formats for logged data, includingDataset, MATLABtimeseries, arrays, and structures. Supported data formats vary between different logging techniques. However,Datasetformat is available for all logging techniques. - Log Data to the Workspace and a File Using the Record Block
Use the Record block to log data to the workspace, to a file, or to both the workspace and a file. - Convert Data to Dataset Format
To convert a workspace variable that contains data that was logged in a format other thanDatasetformat to useDatasetformat, use aSimulink.SimulationData.Datasetconstructor. - Samples to Export for Variable-Step Solvers
Control how much output the simulation generates when your model uses a variable-step solver. Use the Output options configuration parameter.
신호 기록
- Save Signal Data Using Signal Logging
Capture signal data from a simulation by marking signals you want to log in the model. - Override Signal Logging Settings
For a specific simulation run, override the signal logging settings for individual signals marked for logging. - View the Signal Logging Configuration
View the signals that are marked for signal logging. - Visualize and Access Signal Logging Data
View and access the signal logging data for a completed or paused simulation. - Access Logged Signals with Spaces and Newlines in Logged Names
Access logged signals with names that contain spaces or newlines.
빅데이터
- Work with Big Data for Simulations
Log, load, and analyze big data for simulations. - Limit the Size of Logged Data
Choose among several strategies to limit the size of logged data. - Specify Signal Values to Log
Specify which signal values to log during simulation. - Log Data to Persistent Storage
Store logged simulation data to persistent storage in a MAT file. - Export Data to Parquet File Using Record Block
Use the Record block to export data to a Parquet file. - Analyze Big Data from a Simulation
Access simulation data logged to persistent storage for analysis in MATLAB.
시뮬레이션 상태
- Save Block States and Simulation Operating Points
Learn how you can use state information logged from simulation and decide how to log states and operating points. - Save State Information
Save state information for logged states.
데이터 저장소
- Log Data Stores
Configure a data store for logging so that you can view the data stored in a simulation run.
