Model 2461 Interactive SourceMeter® Instrument Reference Manual Section 8: TSP command reference2461-901-01 A/November 2015 8-289Examplesmu.measure.userdelay[1] = 5trigger.model.setblock(1, trigger.BLOCK_SOURCE_OUTPUT, smu.ON)trigger.model.setblock(2, trigger.BLOCK_DELAY_DYNAMIC,trigger.USER_DELAY_M1)trigger.model.setblock(3, trigger.BLOCK_MEASURE)trigger.model.setblock(4, trigger.BLOCK_SOURCE_OUTPUT, smu.OFF)trigger.model.setblock(5, trigger.BLOCK_BRANCH_COUNTER, 10, 1)trigger.model.initiate()Set user delay for measure 1 to 5 s.Set trigger block 1 to turn the source output on.Set trigger block 2 to a dynamic delay that calls measure user delay 1.Set trigger block 3 to make a measurement.Set trigger block 4 to turn the source output off.Set trigger block 5 to branch to block 1 ten times.Start the trigger model.Also seesmu.measure.userdelay[N] (on page 8-174)smu.source.userdelay[N] (on page 8-218)trigger.model.setblock() — trigger.BLOCK_DIGITAL_IOThis function defines a trigger model block that sets the lines on the digital I/O port high or low.Type TSP-Link accessible Affected by Where saved Default valueFunction Yes Restore configurationInstrument resetPower cycleConfiguration script Not applicableUsagetrigger.model.setblock(blockNumber, trigger.BLOCK_DIGITAL_IO, bitPattern, bitMask)blockNumber The sequence of the block in the trigger modelbitPattern Sets the value that specifies the output line bit pattern (0 to 63)bitMask Specifies the bit mask; if omitted, all lines are driven (0 to 63)DetailsTo set the lines on the digital I/O port high or low, you can send a bit pattern. The pattern can bespecified as a six-bit binary, hexadecimal, or integer value. The least significant bit maps to digital I/Oline 1 and the most significant bit maps to digital I/O line 6.The bit mask defines the bits in the pattern that are driven high or low. A binary 1 in the bit maskindicates that the corresponding I/O line should be driven according to the bit pattern. To drive alllines, specify all ones (63, 0x3F, 0b111111) or omit this parameter. If the bit for a line in the bit patternis set to 1, the line is driven high. If the bit is set to 0 in the bit pattern, the line is driven low.