Download What Is an S
Transcript
1 Overview of S-Functions In this example, the model contains an instance of an S-Function block that references a C MEX-file having the root name timestwo. Note If the MATLAB path includes a C MEX-file and an M-file having the same root name referenced by an S-function block, the S-function block uses the C MEX-file. Passing Parameters to S-Functions The S-function block’s S-function parameters field allows you to specify parameter values to be passed to the corresponding S-function. To use this field, you must know the parameters the S-function requires and the order in which the function requires them. (If you do not know, consult the S-function’s author, documentation, or source code.) Enter the parameters, separated by a comma, in the order required by the S-function. The parameter values can be constants, names of variables defined in the MATLAB or model workspace, or MATLAB expressions. The following example illustrates usage of the S-function parameters field to enter user-defined parameters. 1-4
Related documents
Writing S-Functions
MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS User`s guide
Developement Of An Instrument Landing Simulation Using MATLAB
An Integrated, Modular Simulation System for Education and
MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER User`s guide
Simulink User's Guide
Motion Control of Industrial Printers
7.0 User`s Manual - Opal-RT