Main Content

RET

  • RET block

Libraries:

Description

The RET block implements the RET instruction. The blocks is used to return the control of execution from a subroutine. It can be used only inside a subroutine. This block does not support parameters to be passed from the subroutine.

Parameters

expand all

Enter the discrete interval between sample time hits or specify -1 to inherit the sample time

See also Specify Sample Time.

Programmatic Use

Block Parameter: SampleTime
Type: character vector
Value: real scalar
Default: '-1'

Version History

Introduced in R2019a