Skip to Main Content Skip to Search
Product Documentation

ssGetSFcnParamName - Get the value of a block parameter for an S-function block

Syntax

void ssGetSFcnParamName (SimStruct *S, int paramNum, char *value)

Arguments

S

SimStruct that represents an S-Function block

paramNum

The zero-based index into the S-function parameters

Value

Value of the parameter specified in the block dialog box

Returns

Nothing

Description

Use in mdlInitializeSizes to determine the value of a parameter in the Block Parameters dialog box. Typically, one parameter specifies a bus object name that corresponds to the bus input into this block. Use ssGetSFcnParamName to determine the name of the bus object that is entered in the S-function block parameter.

Bus S-function Usage Guidelines

Use this S-function in simulations. You cannot use this S-function for code generation.

This S-function does not support bus elements that have any of the following characteristics:

To use this S-function and other bus-related S-functions, before you run the simulation, execute the following MATLAB command:

set_param(block_handle, 'EnableBusSupport', 'on')

To automate setting the EnableBusSupport parameter, use one of the following approaches:

Languages

C, C++

See Also

ssRegisterTypeFromParameter

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS