link

Description

This function links a port on a module to a port on another module.

Syntax

node.link(“srcNode_path”, srcPort, “dstNode_path”, dstPort);

Arguments

“srcNode_path”, srcPort, “dstNode_path”, dstPort

srcNode_path: The path of the module whose output port you want to link to a destination module.
srcPort: The port that you want to link to the input port on the destination module. This value is between 0 and the results of the numberOfOutputPorts function.
dstNode_path: The path of the module whose input port you want to link to the source module.
dstPort: The port on the destination module that you want to link to the output port from the source module. This value is between 0 and the results of the numberOfInputPorts function.

Related Topics 

Node