Creates an activation link between srcBlock and destBlock. Connects two blocks with ports of type activation.

## Inputs

diagram
The diagram to create a link within.
Type: diagram
srcBlock
The source block that the link will be connected to.
Type: block
srcPortNum
The number of the source port that the link will be connected to.
Type: integer
srcIOType
The IO type of the source port that the link will be connected to. Uses 'input' or 'output'.
Type: string
destBlock
The destination block that the link will be connected to.
Type: block
destPortNumber
The number of the destination port that the link will be connected to.
Type: integer
destIOType
The IO type of the destination port that the link will be connected to. Uses 'input' or 'output'.
Type: string
points
Points on the diagram where the link will have intermediate points at. The link will pass through these intermediate points.
Type: matrix

## Outputs

Type: hwdcConnection

## Examples


mdl=bdeCreateNewModel('test1');
dg=bdeGetModelDiagram(mdl);
blk1=bdeCreateBlock('system/SignalGenerators/Constant');
params=struct;
params.externalActivation='1';
bdeSetBlockParametersValues(blk1,params);