I would like to set the output port of the demodulation signal of a LaserLockBox in MultiInstrument mode. The following code
from moku.instruments import MultiInstrument, LaserLockBox
MIM = MultiInstrument(‘XXX.XXX.XXX.XXX’, force_connect=True, platform_id=4)
llb = MIM.set_instrument(1, LaserLockBox)
connections = [dict(source=“Slot1OutC”,destination=“Output3”)]
MIM.set_connections(connections=connections)
MIM.relinquish_ownership()
produces the below error:
Traceback (most recent call last): File "/home/lab/code/moku/min_example_for_error.py", line 8, in <module> MIM.set_connections(connections=connections) File "/opt/conda/user_conda/lab/cds/lib/python3.10/site-packages/moku/instruments/_mim.py", line 65, in set_connections return self.session.post(self.operation_group, operation, params) File "/opt/conda/user_conda/lab/cds/lib/python3.10/site-packages/moku/session.py", line 14, in func_wrapper return self.resolve(response) File "/opt/conda/user_conda/lab/cds/lib/python3.10/site-packages/moku/session.py", line 165, in resolve self.handle_error(data.code, data.messages) File "/opt/conda/user_conda/lab/cds/lib/python3.10/site-packages/moku/session.py", line 123, in handle_error raise exceptions.InvalidRequestException(messages) moku.exceptions.InvalidRequestException: ['Source port is not valid in the given configuration.', 'Traceback: Connecting Slot1OutC to Output3']