Interactive SourceMeter® Instrument Reference Manual Section 8:
2461-901-01 A/November 2015 8-289
Example
smu.measure.userdelay[1] = 5
trigger.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)
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 see
smu.measure.userdelay[N] (on page 8-174)
smu.source.userdelay[N] (on page 8-218)
trigger.model.setblock() — trigger.BLOCK_DIGITAL_IO
This 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 value
Instrument reset
Power cycle
Usage
trigger.model.setblock(blockNumber, trigger.BLOCK_DIGITAL_IO, bitPattern, bitMask)
The sequence of the block in the trigger model
Sets the value that specifies the output line bit pattern (0 to 63)
Specifies the bit mask; if omitted, all lines are driven (0 to 63)
Details
To set the lines on the digital I/O port high or low, you can send a bit pattern. The pattern can be
specified as a six-bit binary, hexadecimal, or integer value. The least significant bit maps to digital I/O
line 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 mask
indicates that the corresponding I/O line should be driven according to the bit pattern. To drive all
lines, specify all ones (63, 0x3F, 0b111111) or omit this parameter. If the bit for a line in the bit pattern
is set to 1, the line is driven high. If the bit is set to 0 in the bit pattern, the line is driven low.