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.

ssWriteRTWScalarParam

Write a scalar parameter to the model.rtw file

Syntax

int_T ssWriteRTWScalarParam(SimStruct *S,  const char_T *name,
  const void *value, int_T type)

Arguments

S

SimStruct representing an S-Function block.

name

Parameter name.

value

Parameter value.

type

Integer ID of the type of the parameter value, for example, the ID of one of the Simulink® built-in data types. For a list of built-in data types, see ssGetInputPortDataType or the ID of a user-defined type (see Custom Data Types).

Returns

An int_T (1 or 0) or boolean_T (true or false) indicating the success or failure of the function.

Description

Use this function in mdlRTW to write scalar parameters to this S-function's model.rtw file.

Languages

C, C++

See Also

mdlRTW

Introduced before R2006a

Was this topic helpful?