bdeGetLinkSourceBlock

Returns the source block of a given link.

Syntax

srcBlock = bdeGetLinkSourceBlock(link)

Inputs

link
The link to get the source block of.
Type: hwdcConnection

Outputs

srcBlock
The source block of the link.
Type: block

Examples

Get the source block of a given link:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          explicitLink = bdeGetExplicitLink(diagram, block, 1, 'output');
          srcBlock = bdeGetLinkSourceBlock(explicitLink);
        

          
            srcBlock = hwscpHyperBlock