Main Content

Simulink.BlockPortData

Describe block input or output port

Description

This class defines properties that are common to objects that provide runtime information about block 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 connects 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] where period and offset are values of type double. See Specify Sample Time for more information.

Access

RW for MATLAB® S-functions, RO for other blocks

SampleTimeIndex

Description

Sample time index of this port.

Data Type

integer

Access

RO

Version History

Introduced before R2006a