Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ProcessParameters

Process the MATLAB S-function's parameters

Required

No

Language

MATLAB

Syntax

ProcessParameters(s)

Arguments

s

Instance of Simulink.MSFcnRunTimeBlock class representing the Level-2 MATLAB S-Function block.

Description

This is an optional routine that the Simulink® engine calls after CheckParameters changes and verifies parameters. The processing is done at the top of the simulation loop when it is safe to process the changed parameters. This function is only valid for simulation.

The purpose of this routine is to process newly changed parameters. An example is to cache parameter changes in work vectors. The engine does not call this routine when it is used with the Simulink Coder™ product. Therefore, if you use this routine in an S-function designed for use with the Simulink Coder product, you must write your S-function so that it doesn't rely on this routine. To do this, you must inline your S-function by using the Target Language Compiler. For information on inlining S-functions, see Inlining S-Functions (Simulink Coder).

Introduced in R2012b

Was this topic helpful?