Main Content

이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.

개별 시뮬레이션 실행하기

Simulink® 편집기에서 바로 또는 MATLAB® 명령 프롬프트에서 프로그래밍 방식으로 개별 시뮬레이션 실행 및 제어

모델을 시뮬레이션하면 모델링 프로세스를 통해 구축하는 알고리즘의 결과가 제공됩니다. 시뮬레이션 속도를 조절하고, 모델 파라미터를 조정하고, 시뮬레이션을 중지 또는 일시 중지하고, 모델 설계를 평가할 포트 값을 표시하여 시뮬레이션과 상호 작용할 수 있습니다. 시뮬레이션은 모델의 설계 및 동작을 이해하는 데 도움이 됩니다.

Simulink 툴스트립에서 실행 버튼을 클릭하거나 MATLAB 명령 창 또는 MATLAB 스크립트에서 프로그래밍 방식으로 sim이나 set_param과 같은 함수를 사용하여 대화형 방식으로 모델을 시뮬레이션합니다.

병렬 시뮬레이션과 배치 시뮬레이션에 대한 자세한 내용은 다중 시뮬레이션 실행하기 항목을 참조하십시오.

모델 설정

모두 확장

입력최상위 입력 포트를 사용하여 시뮬레이션을 위한 외부 입력 데이터를 불러오는 옵션
초기 상태Option to specify initial model state or operating point for simulation
최종 상태Option to log final state values
최종 동작점 저장Option to save complete model operating point when simulation is paused or stopped
다른 릴리스의 동작점 객체Diagnostic behavior when loading initial operating point generated in different release
동작점 복원 인터페이스 체크섬 불일치Diagnostic behavior when interface checksum does not match between initial operating point and model

시뮬레이션 속도 조절 옵션Slow simulation to a specified ratio of simulation time to wall clock time

함수

모두 확장

simSimulink 모델의 프로그래밍 방식 시뮬레이션 실행 및 스크립트 작성
set_paramSimulink 파라미터 값 설정
get_param파라미터 이름과 값 가져오기
slsim.allowedModelChangesDetermine changes you can make to model based on simulation status (R2022b 이후)
initializeInitialize simulation represented by Simulation object (R2024a 이후)
pausePause active simulation represented by Simulation object (R2024a 이후)
resumeContinue paused simulation represented by Simulation object (R2024a 이후)
setBlockParameterSet block parameter values for simulation using SimulationInput or Simulation object
setModelParameterSet model parameter values for simulation using SimulationInput or Simulation object
setExternalInputSpecify external input data for top-level input ports using SimulationInput or Simulation object
setInitialStateSpecify initial state for simulation using SimulationInput or Simulation object
setPostSimFcn Set MATLAB function to run after each simulation
setPreSimFcnSpecify MATLAB function to run before start of each simulation on Simulink.SimulationInput object
setVariableSimulationInput 또는 Simulation 객체를 사용하는 시뮬레이션에 대한 변수 값 설정
setVariantConfigurationSet variant configuration for simulation using SimulationInput object (R2024a 이후)
getVariantConfigurationGet name of variant configuration from SimulationInput object (R2024a 이후)
startStart simulation represented by Simulation object (R2024a 이후)
stepAdvance simulation represented by Simulation object by specified amount (R2024a 이후)
stopStop simulation represented by Simulation object (R2024a 이후)
terminateTerminate simulation represented by Simulation object (R2024a 이후)
Simulink.BlockDiagram.getInitialStateGet initial state data from block diagram
get Get operating point information for Stateflow chart, MATLAB System block, or S-function
setSet operating point information for Stateflow chart, MATLAB System block, or S-function
findSimulink.SimulationOutput 객체의 속성 쿼리 및 액세스
getSimulink.SimulationOutput 객체의 시뮬레이션 결과에 액세스하기
getSimulationMetadataAccess simulation metadata in Simulink.SimulationOutput object
removePropertyRemove property from Simulink.SimulationOutput object
setUserDataAdd data to metadata in Simulink.SimulationOutput object
setUserStringAdd string to metadata in Simulink.SimulationOutput object
whoGet names of editable properties on Simulink.SimulationOutput object

객체

모두 확장

SimulationControl simulation execution and tune variable, block parameter, and model parameter values (R2024a 이후)
Simulink.SimulationInputSimulink.SimulationInput 객체를 생성해 모델을 변경하여 다중 시뮬레이션 또는 개별 시뮬레이션 실행
Simulink.op.ModelOperatingPointComplete information that represents model operating point in simulation
Simulink.SimulationOutput시뮬레이션 출력과 메타데이터에 액세스하기
Simulink.SimulationMetadataAccess metadata of simulation runs

도움말 항목

기본 시뮬레이션 실행하기

시뮬레이션 분석하기

빠른 재시작으로 반복 시뮬레이션 수행하기