Main Content

Simulink.BlockPortData

Describe block input or output port

Description

This class defines properties that are common to objects that provide run-time information about a block's ports.

Property Summary

Name

Description

IsBus

True if this port is connected to a bus.

IsSampleHit

True if this port produces output or accepts input at the current simulation time step.

SampleTime

Sample time of this port.

SampleTimeIndex

Sample time index of this port.

Properties

IsBus

Description

True if this port is connected to a bus.

Data Type

Boolean

Access

RO

IsSampleHit

Description

True if this port produces output or accepts input at the current simulation time step.

Data Type

Boolean

Access

RO

SampleTime

Description

Sample time of this port.

Data Type

[period offset]whereperiodandoffsetare values of typedouble. SeeSpecify Sample Timefor more information.

Access

RWfor MATLAB®S functions,ROfor other blocks

SampleTimeIndex

Description

Sample time index of this port.

Data Type

integer

Access

RO

Introduced before R2006a