Section 8: TSP command reference
Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
8-322
DMM7510-901-01 Rev. B / May 2015
Example
reset()
dmm.measure.func = dmm.FUNC_DC_VOLTAGE
trigger.model.setblock(1, trigger.BLOCK_BUFFER_CLEAR, defbuffer1)
trigger.model.setblock(2, trigger.BLOCK_DELAY_CONSTANT, 0)
trigger.model.setblock(3, trigger.BLOCK_MEASURE, defbuffer1,
trigger.COUNT_INFINITE)
trigger.model.setblock(4, trigger.BLOCK_WAIT, trigger.EVENT_DISPLAY)
trigger.model.setblock(5, trigger.BLOCK_MEASURE, defbuffer1, trigger.COUNT_STOP)
trigger.model.setblock(6, trigger.BLOCK_NOTIFY, trigger.EVENT_NOTIFY1)
trigger.model.initiate()
waitcomplete()
print(defbuffer1.n)
Reset the instrument.
Set the function to measure DC voltage.
Set block 1 to clear
defbuffer1
.
Set block 2 to set a delay of
0
.
Set block 3 to make measurements infinitely.
Set block 4 to wait until the front-panel TRIGGER key is pressed.
Set block 5 to stop making measurements.
Set block 6 to send a notification.
Start the trigger model.
You must press the front-panel TRIGGER key to stop measurements.
Output the number of readings.
Also see
(on page 8-18)
(on page 3-78)
trigger.model.setblock() — trigger.BLOCK_NOP
This function creates a placeholder that has no action in the trigger model; available only with remote commands.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Restore configuration
Instrument reset
Power cycle
Configuration script
Not applicable
Usage
trigger.model.setblock(
blockNumber
, trigger.BLOCK_NOP)
blockNumber
The sequence of the block in the trigger model
Details
If you remove a trigger model block, you can use this block as a placeholder for the block number so
that you do not need to renumber the other blocks.
Example
trigger.model.setblock(4, trigger.BLOCK_NOP)
Set block number 4 to be a no operation
block.
Also see
None