Main Content

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

시뮬레이션에 사용할 신호 데이터 불러오기

모델을 시뮬레이션하기 위해 신호 데이터 불러오기

다음을 포함해 여러 다양한 접근 방식을 사용하여 데이터를 모델로 불러올 수 있습니다.

  • 루트 수준 입력 포트 — 입력 구성 파라미터를 사용하여 작업 공간에서 Inport, Enable 또는 Trigger 블록과 같은 루트 수준 입력 포트로 신호 데이터를 가져옵니다. 여러 신호를 루트 수준 입력 포트로 가져오려면 루트 인포트 매퍼 툴을 사용해 보십시오.

  • From File 블록 — MAT 파일에서 데이터를 읽어 들여 이 데이터를 신호로 출력합니다.

  • From Spreadsheet 블록 — Microsoft® Excel® 스프레드시트 또는 CSV 스프레드시트에서 데이터를 읽어 들여 이 데이터를 하나 이상의 신호로 출력합니다.

  • 소스 블록 — 소스 블록(예: Sine Wave 블록)을 추가하여 다른 블록에 입력할 신호를 생성합니다.

  • Signal Editor 블록 — 상호 교환 가능한 시나리오를 표시, 생성, 편집 및 전환합니다.

  • 영속 데이터 — MAT 파일의 빅데이터를 모델로 스트리밍합니다.

파일, 작업 공간 변수 또는 모델 파라미터에서 입력 신호 데이터를 만들 수 있습니다. 이전 시뮬레이션에서 기록된 데이터를 사용하거나, 다른 소스에서 오는 데이터를 사용하거나, 데이터를 직접 만들 수 있습니다. 어떤 신호 불러오기 접근 방식을 사용할지 결정하려면 Comparison of Signal Loading Techniques 항목을 참조하십시오.


모두 확장

InportCreate input port for subsystem or external input
In Bus Element, Bus Element In Select input from external port
EnableAdd enable port to subsystem or model
TriggerAdd trigger or function port to subsystem or model
From FileLoad data from MAT-file
From SpreadsheetRead data from spreadsheet
From WorkspaceLoad signal data from workspace into Simulink model
Signal BuilderCreate and generate interchangeable groups of signals whose waveforms are piecewise linear
Signal EditorDisplay, create, edit, and switch interchangeable scenarios


모두 확장

getRootInportMapCreate custom object to map signals to root-level inports
convertToSlDatasetConvert contents of MAT-file to Simulink.SimulationData.Dataset object
getSlRootInportMapCreate custom object to map signals to root-level inports using Simulink mapping mode
createInputDatasetGenerate dataset object for root-level Inport or bus element ports in model
signalbuilder(Not recommended) Create and access Signal Builder blocks
signalBuilderToSignalEditorImport signal data and properties from Signal Builder block to Signal Editor block
getInputStringCreate comma-separated list of variables to map
Simulink.BlockDiagram.getInitialStateReturn initial state data of block diagram
Simulink.Bus.createMATLABStructCreate MATLAB structures that use the same hierarchy and attributes as buses
Simulink.SimulationData.createStructOfTimeseriesCreate structure of timeseries data to load as simulation input for bus
signalEditorStart Signal Editor

도움말 항목

신호 불러오기

Provide Signal Data for Simulation

Identify model signal data requirements and load input signal data.

Overview of Signal Loading Techniques

Understand the techniques available for importing signal data into a model.

Comparison of Signal Loading Techniques

Determine the signal loading approach that meets your modeling requirements. Often, mapping signal data to root inports works well.

Load Signal Data That Uses Units

Load signal data that uses units from data logged in a previous simulation. Signal logging, the To File block, and the To Workspace block can include units information for Dataset or Timeseries logging formats.

Load Data Logged In Another Simulation

Load signal data into a model that was logged in a previous simulation.

Load Data to Model a Continuous Plant

Import signal data to a continuous plant model, which uses signal data that is smooth and uninterrupted in time, with a signal data for each time value.

Load Data to Test a Discrete Algorithm

Test a discrete algorithm by importing discrete signals, which are signals that you define using evenly spaced time values. One signal value is read at each time step, using the sample time of the source block.

Load Data for an Input Test Case

When you import signal data for most input test cases, try to minimize the number of time points. The signal data that you load includes samples with ramps and discontinuities.

데이터를 루트 수준 입력 포트로 불러오기

Load Data to Root-Level Input Ports

Load data from a workspace and apply it to a root-level input.

Load Bus Data to Root-Level Input Ports

Import bus data to top-level input ports by manually specifying the data in the Input configuration parameter or by using the Root Inport Mapper tool.

Map Data Using Root Inport Mapper Tool

To import, visualize, and map signal and bus data to root inports, use the Root Inport Mapper tool.

Map Root Inport Signal Data

Open the Root Inport Mapper Tool and select the mapping mode.

Create Signal Data for Root Inport Mapping

Create data for root inport mapping using specific guidelines and conventions.

View and Inspect Signal Data

View and inspect signal data before mapping the data.

Preview Signal Data

Preview input signal or bus data with the Signal Preview window.

Map Signal Data to Root Input Ports

Map signal data to root input ports by selecting map modes and options and selecting data. Interpret mapping results.

Import Signal Data for Root Inport Mapping

Import signal and bus data for root inport mapping. You can also import test vectors from Simulink® Design Verifier™ environment.

Create and Use Custom Map Modes

Create custom map modes if you do not want to use existing map modes in the Root Inport Mapper tool.

Root Inport Mapping Scenarios

Work with scenarios in the Root Inport Mapper tool. Create and save scenarios, and load previously saved scenarios.

Generate MATLAB Scripts for Simulation with Scenarios

After associating a scenario with the model, generate a MATLAB® script to perform batch simulations.

기타 신호 불러오기 기법

Load Input Data for a Bus Using In Bus Element Blocks

Load input data for a bus using In Bus Element blocks.

Load Data Using the From Workspace Block

Load simulation input data using the From Workspace block.

Load Data Using the From File Block

Load signal data using a From File block.

Load Big Data for Simulations

Load big data as simulation input.

Stream Data from a MAT-File as Input for a Parallel Simulation

Stream input data for parallel simulations from a MAT-file.

Load Data with Interchangeable Scenarios

Use Signal Editor block to work with interchangeable scenarios.

추천 예제