link_ports¶
-
MonitorControl.
link_ports
(inputs, outputs)¶ Connect an upstream port with downstream port(s).
This connects an upstream port with downstream port(s), both of which are dicts. The source of the downstream port(s), given by ‘outputs’, is the upstream port. In the general case there is one input port and one or more output ports. So ‘outputs’, at least, must be a dict. If there is more than one upstream ports for a downstream port (think of a quadrature hybrid as an example) then the ‘source’ attribute is a list. The Device initialization must then change ‘source’ from a port to a list of ports.
Example: connect a device input to its outputs. (See FrontEnd)
Example: connect a device output to the downstream device inputs. (See KurtSpec)
:param inputs : upstream port(s) :type inputs : dict
:param outputs : downstream port(s) :type outputs : dict