Main Content

ssCallSelectedSignalsFcn

Invoke the selected signals function for an S-function

Syntax

const char_T * ssCallSelectedSignalsFcn(SimStruct *S,void *blk,opts,void ***ports,int *numPorts)

Arguments

S

SimStruct that represents an S-Function block.

blk

S-Function block.

opts

SIGSET_GRAPH or SIGSET_GRAPH_N_CHILDREN. Specify whether to get ports from only the current graph or to include child graphs.

ports

Array of port objects. Free the array using ssCallGenericDestroyFcn.

numPorts

Number of ports in the array ports.

Returns

A pointer to a character vector containing an error description on failure, and NULL if successful.

Description

Creates an array of selected output ports. You can use the ports with ssCallSigListCreateFcn to access the port data.

Languages

C, C++

Examples

See the S-function barplot.c.

Version History

Introduced in R2019a