set_connections

Connects the instrument to other instruments, or to external I/O.

Incremental Use

The connection action is incremental. That is, each connection specified in this function is made in addition to (or in replacement of) an existing connection. There is no way to remove a connection except by replacing it with something else.

Set Instruments First

Number of inputs and outputs for a given slot are instrument dependent, you must set up the instruments in the target slots before calling this method. See Getting Started with MiM for details.

Parameters

array required
List of maps of source and destination points
allowed values:
Moku:LabSource [Input1, Input2, SlotXOutY]; Destination [Output1, Output2, SlotXInY]
Moku:GoSource [Input1, Input2, DIO, SlotXOutY]; Destination [Output1, Output2, DIO, SlotXInY]
Moku:ProSource [Input1, Input2, Input3, Input4, SlotXInY]; Destination [Output1, Output2, Output3, Output4, SlotXOutY]

To connect Input1 of the Moku to the first input of the instrument running in Slot1 request will look something like {"source":"Input1", "destination":"Slot1InA"}. Similarly, to connect output of instrument running in Slot2 to Output1 request will be {"source":"Slot2OutA", "destination":"Output1"}.

One source may be routed to multiple destinations, however each destination has a single source. The connections are applied in the order they appear in the request, so an attempt to specify multiple sources for a destination will silently succeed with the destination connected to the last source specified.

Signals are not explicitly routed to and from busses in the way they can be in the Moku Application. Busses are allocated behind the scenes if the library detects that they are required.

# Examples