Documentation

Outputs

计算信号这MATLAB函数提单ock emits

Required

Yes

Language

MATLAB

Syntax

Outputs(s)

Arguments

s

Instance ofSimulink.MSFcnRunTimeBlockclass representing the Level-2 MATLAB S-Function block.

Description

The Simulink®engine invokes this required method at each simulation time step. In a Level-2 MATLAB S-function, theOutputsmethod calculates the S-function's outputs at the current time step and store the results in the run-time object'sOutputPort(n).Dataproperty. In addition, for S-functions with a variable sample time, theOutputsmethod computes the next sample time hit.

Use the run-time object methodIsSampleHitto determine if the current simulation time is one at which a task handled by this block is active. For port-based sample times, use theIsSampleHitproperty of the run-time object'sInputPortorOutputPortmethods to determine if the port produces outputs or accepts inputs at the current simulation time step.

Set the run-time object'sNextTimeHitproperty to specify the time of the next sample hit for variable sample-time S-functions.

Introduced in R2012b