Main Content

La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.

Personnaliser des System objects pour Simulink

Personnaliser un System object™ pour l'utiliser dans un bloc MATLAB System

Le bloc MATLAB System permet d'utiliser un System object défini dans MATLAB® en tant que bloc dans Simulink®. Pour contrôler l'apparence ou la sortie du bloc ou pour permettre l'utilisation du System object dans un sous-système For Each, suivez les méthodes d'implémentation proposées afin de personnaliser votre System object. Pour plus d'informations sur la définition d'un System object, consultez la rubrique Define Basic System Objects ou System Objects.

Méthodes

développer tout

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
getPropertyGroupsImplProperty groups for System object display
getSimulateUsingImplSpecify value for Simulate using parameter
showSimulateUsingImplVisibility of Simulate using parameter
showFiSettingsImplFixed point data type tab visibility for System objects
allowModelReferenceDiscreteSampleTimeInheritanceImplModel reference sample time inheritance status for discrete sample times
getGlobalNamesImplGlobal variable names for MATLAB System block
getDiscreteStateImplDiscrete state property values
getDiscreteStateSpecificationImplDiscrete state size, data type, and complexity
getOutputDataTypeImplData types of output ports
getOutputSizeImplSizes of output ports
getSimulinkFunctionNamesImplRegister Simulink function names used in your System object
getInterfaceImplSet System object as message or data
isOutputComplexImplComplexity of output ports
isOutputFixedSizeImplFixed- or variable-size output ports
processTunedPropertiesImplAction when tunable properties change
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
isInputDirectFeedthroughImplDirect feedthrough status of input
outputImplOutput calculation from input or internal state of System object
updateImplUpdate object states based on inputs
createSampleTimeCreate sample time specification object
getSampleTimeImplSpecify sample time type, offset time, and sample time
getSampleTimeQuery sample time
getCurrentTimeCurrent simulation time in MATLAB System block
setNumTicksUntilNextHitSet the number of ticks in Simulink sample time
supportsMultipleInstanceImplSupport System object in Simulink For Each subsystem

Classes

développer tout

matlab.system.display.IconSpecify custom image as icon for MATLAB System block
matlab.system.display.ActionCreate custom button in Block Parameters dialog box for MATLAB System block
matlab.system.display.HeaderSpecify header 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
matlab.system.display.SectionGroupCreate nested groupings of properties in Block Parameters dialog box for MATLAB System block

Rubriques

Présentation

Apparence du bloc

Entrée et sortie

Cas d'utilisation particuliers

Informations connexes