@alkmbozkurt ,
This error comes from the fact that in single instrument mode, the source can be either the DIO, or the analog inputs. When using the DIO as the source, the ‘pin mode’ (input or output) is configured in the Logic Analyzer UI. You select each Pin and assign it to be either an input or an output (this is what the set_pin_mode() command does), and configure the pattern.
In Multi-Instrument mode, the source can be the DIO, the analog outputs, another instrument output, etc. Because of this, the input/output source is not determined in the Logic Analyzer UI, but rather in the Multi-Instrument UI. Whatever you have connected to the input/output of the Logic Analyzer is going to be the ‘source’. The configuration of the DIO will be done in the Multi-Instrument UI.
This means that the set_pin_mode() function isn’t used in the Multi-instrument context. To set the ‘pin mode’, you will use the set_dio() command to set the direction of the pins (equivalent of set_pin_mode()). Here is an example with Python where I set Pin 1 to be an output with a ‘high’ pattern configured.
i=MultiInstrument('192.168.2.37', force_connect=True, platform_id=3)
la=i.set_instrument(1, LogicAnalyzer)
connections=[dict(source='Slot1OutA', destination='DIO1')]
i.set_connections(connections=connections)
## Set Pin1 as output and Pins2-16 as inputs
direction=[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
i.set_dio(direction=direction)
patterns=[{'pin': 1, 'pattern': [1]*8}]
la.set_pattern_generator(1, patterns=patterns, divider=250)
i.relinquish_ownership()
I hope this makes sense!
-Dylan