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 이후)
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

객체

모두 확장

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

도움말 항목

기본 시뮬레이션 실행하기

시뮬레이션 분석하기

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