Model 2461 Interactive SourceMeter® Instrument Reference Manual Section 3: Functions and features2461-901-01 A/November 2015 3-161TSP-Link synchronization programming exampleThe programming example below illustrates how to set bit B1 of the TSP-Link digital I/O port high,and then read the entire port value:tsplink.line[1].mode = tsplink.MODE_DIGITAL_OPEN_DRAIN-- Set bit B1 high.tsplink.line[1].state = 1-- Read I/O port.data = tsplink.readport()print(data)The output would be similar to:7To read bit B1 only:-- To read bit B1 onlydata = tsplink.line[1].stateprint(data)The output would be similar to:tsplink.STATE_HIGHUsing Model 2461 TSP-Link commands with other TSP-Link productsIf you are connecting the Model 2461 in a system with other TSP-Link products, be aware that someof the TSP-Link commands may be different. You can use the earlier versions of the commands, butbe aware that they may not be supported in future versions of the product.Commands that are the same in all TSP-Link products:• tsplink.group• tsplink.master• tsplink.node• tsplink.readport()• tsplink.state• tsplink.writeport()