Main Content

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

System object 생성하기

새 System object™를 생성하고 정의하는 MATLAB® 클래스 작성하기

구현 메서드를 사용자 지정하여 System object를 직접 정의할 수 있습니다. 그래픽 툴을 사용해서 System object 생성에 쓰이는 전체 API를 탐색해 보십시오. 예를 들어, System object를 초기화, 실행, 재설정 및 종료하는 메서드를 삽입할 수 있습니다. System object를 정의하는 방법에 대해 소개하는 내용은 기본 System object 정의하기 항목을 참조하십시오.

메서드

모두 확장

입력 사양

getNumInputsImplNumber of inputs to the System object
isInputDataTypeMutableImplSet whether System object input data type can change
isInputSizeMutableImplSet whether System object input size can change
isInputComplexityMutableImplSet whether System object input complexity can change
isInputDirectFeedthroughImplDirect feedthrough status of input
getInputDimensionConstraintImplDefine input dimension constraints for dataflow subsystems

출력 사양

getNumOutputsImplNumber of outputs from System object
getOutputDataTypeImplData types of output ports
getOutputSizeImplSizes of output ports
isOutputComplexImplComplexity of output ports
isOutputFixedSizeImplFixed- or variable-size output ports
getOutputDimensionConstraintImplDefine output dimension constraints for dataflow subsystems

상태 사양

getDiscreteStateSpecificationImplDiscrete state size, data type, and complexity
isDiscreteStateSpecificationMutableImplControl whether discrete states can change data type
getDiscreteStateImplDiscrete state property values

샘플 시간 사양

getSampleTimeImplSpecify sample time type, offset time, and sample time
allowModelReferenceDiscreteSampleTimeInheritanceImplModel reference sample time inheritance status for discrete sample times

인터페이스 사양

getGlobalNamesImplGlobal variable names for MATLAB System block
getInterfaceImpl (Simulink)Set System object as message or data
isTunablePropertyDataTypeMutableImplSet whether tunable properties can change data type
isDoneImplEnd-of-data flag
getSimulateUsingImplSpecify value for Simulate using parameter
getSimulinkFunctionNamesImplRegister Simulink function names used in your System object
showFiSettingsImplFixed point data type tab visibility for System objects
supportsMultipleInstanceImplSupport System object in Simulink For Each subsystem
getImpulseResponseLengthImplDefine length of input effects for dataflow subsystems
supports1DVectorsImplEnable MATLAB System block to use 1-D signals for input and output

블록 대화 상자 및 모양

getPropertyGroupsImplProperty groups for System object display
showSimulateUsingImplVisibility of Simulate using parameter
getIconImplName to display as block icon
getHeaderImplHeader for System object display
getInputNamesImplNames of MATLAB System block input ports
getOutputNamesImplNames of MATLAB System block output ports
isInactivePropertyImplStatus of inactive property

시뮬레이션 메서드

setupImplInitialize System object
stepImplSystem output and state update equations
resetImplReset System object states
releaseImplRelease resources
processTunedPropertiesImplAction when tunable properties change
validatePropertiesImplValidate property values of System object
processInputSpecificationChangeImplPerform actions when input size, complexity, or data type change
validateInputsImplValidate inputs to System object
updateImplUpdate object states based on inputs

복제, 저장 및 불러오기

loadObjectImplLoad System object from MAT file
saveObjectImplSave System object in MAT file
cloneImpl Create duplicate System object

도움말

infoImplInformation about System object

작성 메서드를 구현하기 위한 함수

setPropertiesSet property values using name-value pairs when creating System object
propagatedInputComplexityComplexity of input during Simulink propagation
propagatedInputDataTypeData type of input during Simulink propagation
propagatedInputFixedSizeFixed-size status of input during Simulink propagation
propagatedInputSizeSize of input during Simulink propagation
createSampleTimeCreate sample time specification object
getSampleTimeQuery sample time
getCurrentTimeCurrent simulation time in MATLAB System block
setNumTicksUntilNextHit (Simulink)Set the number of ticks in Simulink sample time
displayScalarObject스칼라 객체의 형식 표시
getHeader사용자 지정된 표시 헤더 텍스트 작성
getFooter사용자 지정된 표시 푸터 텍스트 작성

System object 구현을 위한 메서드

narginNumber of input arguments for System object
nargoutNumber of output arguments for System object
getNumInputsNumber of inputs required to call the System object
getNumOutputsNumber of outputs from calling the System object
setupOne-time set up tasks for System objects
resetSystem object의 내부 상태 재설정
stepSystem object 알고리즘 실행
release리소스 해제 및 System object 속성값과 입력 특성 변경 허용하기
clone중복 System object 생성
isDoneEnd-of-data status
isLockedDetermine if System object is in use
deleteDelete System object
outputQuery current output of a System object
updateUpdate state of a System object based on inputs
supportsMultipleInstanceCheck support for Simulink For Each subsystem for System object
getDiscreteStateGet the discrete states of a System object
getDiscreteStateSpecificationGet the size, data type, and complexity of the discrete state of a System object

System object의 출력 사양 쿼리를 위한 메서드

getOutputSizeGet the size of outputs of a System object
isOutputFixedSizeCheck if outputs of a System object are fixed size
getOutputDataTypeGet data types of the outputs of a System object
isOutputComplexCheck if outputs of a System object are complex

함수

sysobjupdateUpdate custom System object to latest syntax (R2020b 이후)
getGet states and properties of a System object
setSet values for properties of a System object

클래스

matlab.SystemSystem object의 기본 클래스
matlab.system.mixin.FiniteSourceClass that adds ability to check for the end of finite data source used by System object
matlab.system.display.ActionCreate custom button in Block Parameters dialog box for MATLAB System block
matlab.system.display.Icon사용자 지정 이미지를 MATLAB System 블록에 대한 아이콘으로 지정
matlab.system.display.HeaderSpecify header in Block Parameters dialog box for MATLAB System block
matlab.system.display.SectionGroupCreate nested groupings of properties in Block Parameters dialog box for MATLAB System block
matlab.system.display.SectionCreate property group section in Block Parameters dialog box for MATLAB System block

도움말 항목

입력값과 출력값

  • 입력값 개수 변경하기
    이 예제에서는 getNumInputsImpl을 사용하는 경우와 사용하지 않는 경우에 System object™에 대한 입력값 개수를 설정하는 방법을 보여줍니다.
  • 복합 System object 정의하기
    다른 System object를 속성으로 포함하는 System object를 정의합니다.
  • 입력값 사양 변경 사항 처리하기
    System object 입력값의 실수/복소수 여부, 데이터형 또는 크기를 변경 가능한 경우, 이를 제한하는 메서드를 구현하거나 입력값 사양이 변경될 경우 이에 대응하는 메서드를 구현합니다.

성능과 효율성