bdeGetLinkSourcePortType

Returns the source port IO type of a given link.

Syntax

srcPortType = bdeGetLinkSourcePortType(link)

Inputs

link
The link to get the source port's type.
Type: hwdcConnection

Outputs

srcPortType
The type of the source port for the link.
Type: string

Examples

Get the type of source port for a given link:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          explicitLink = bdeGetExplicitLink(diagram, block, 1, 'output');
          srcPortType = bdeGetLinkSourcePortType(explicitLink);
        

          
            srcPortType = output