Access and edit the properties of a symbol used in a C Function
block.
Obtain the SymbolSpec
object of the C Function block
in your model using get_param
. For example, select the C
Function block in the model canvas and enter the following at the command
line.
Use the addSymbol
function to specify a new parameter symbol,
myParam
, in your C Function block code.
The Symbol
object, myParam
, uses default
properties. Specify the scope of the symbol using the Scope
property.
You can use the getSymbol
function to access symbols specified
for the block. For example, access the parameter symbol you added.
Edit the label of the parameter in the Block Parameters dialog using the
Label
property.
To delete a symbol from the SymbolSpec
object, use the
deleteSymbol
function.