Model 2461 Interactive SourceMeter® Instrument Reference Manual Section 8: TSP command reference2461-901-01 A/November 2015 8-319ExamplenodesFound = tsplink.initialize(2)print("Nodes found = " .. nodesFound)Perform a TSP-Link initialization andindicate how many nodes are found.Example output if two nodes are found:Nodes found = 2Example output if fewer nodes are foundand if localnode.showevents = 7:1219, TSP-Link found fewer nodesthan expectedNodes found = 1Also seelocalnode.showevents (on page 8-88)tsplink.node (on page 8-322)tsplink.state (on page 8-323)tsplink.line[N].modeThis attribute defines the trigger operation of a TSP-Link line.Type TSP-Link accessible Affected by Where saved Default valueAttribute (RW) Yes Restore configurationInstrument resetPower cycleTSP-Link line N resetConfiguration script tsplink.MODE_DIGITAL_OPEN_DRAINUsagemode = tsplink.line[N].modetsplink.line[N].mode = modemode The trigger mode; see DetailsN The trigger line (1 to 3)DetailsThis command defines whether or not the line is used as a digital or trigger control line and if it is aninput or output.The line mode can be set to the following options:• TSP-Link digital open drain line: tsplink.MODE_DIGITAL_OPEN_DRAIN• TSP-Link trigger open drain line: tsplink.MODE_TRIGGER_OPEN_DRAIN• TSP-Link trigger synchronous master: tsplink.MODE_SYNCHRONOUS_MASTER• TSP-Link trigger synchronous acceptor: tsplink.MODE_SYNCHRONOUS_ACCEPTORExampletsplink.line[3].mode = tsplink.MODE_TRIGGER_OPEN_DRAIN Sets the trigger mode forsynchronization line 3 as atrigger open drain line.Also seetrigger.tsplinkin[N].edge (on page 8-311)trigger.tsplinkout[N].logic (on page 8-313)