Outputs
计算信号这MATLAB函数提单ock emits
Required
Yes
Language
MATLAB
Syntax
Outputs(s)
Arguments
-
s
-
Instance of
Simulink.MSFcnRunTimeBlock
class 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, theOutputs
method calculates the S-function's outputs at the current time step and store the results in the run-time object'sOutputPort(
property. In addition, for S-functions with a variable sample time, then
).DataOutputs
method computes the next sample time hit.
Use the run-time object methodIsSampleHit
to determine if the current simulation time is one at which a task handled by this block is active. For port-based sample times, use theIsSampleHit
property of the run-time object'sInputPort
orOutputPort
methods to determine if the port produces outputs or accepts inputs at the current simulation time step.
Set the run-time object'sNextTimeHit
property to specify the time of the next sample hit for variable sample-time S-functions.