8: TSP command reference Model 2450 Interactive SourceMeter® Instrument
8-162 2450-901-01 Rev. B/September 2013
status.preset()
This function resets all bits in the status model.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
status.preset()
Details
This function clears the event registers and the enable registers for operation and questionable. It will not clear
the enable status request enable (*SRE) to standard enable (*ESE).
Preset does not affect the event queue.
The Status Event Status Register is not affected by this command.
Example
Resets the instrument status model.
Also see
Status model (on page C-1)
status.standard.enable
This attribute reads or sets the bits in the Status Enable register of the Standard Event Register.
Type TSP-Link accessible Affected by Where saved Default value
Usage
standardRegister = status.standard.enable
status.standard.enable = standardRegister
The value of the Status Enable register of the Standard Event Register (0 to 255)
Details
When a bit in the Status Enable register is set on and the corresponding bit in the Standard Event Status register
is set on, the ESB bit of the Status Byte Register is set to on.
To set a bit on, send the constant or value of the bit as the standardRegister parameter.
You can set the bit as a constant or a numeric value, as shown in the table below. To set more than one bit of
the register, you can send multiple constants with + between them. You can also set standardRegister to the
sum of their decimal weights. For example, to set bits B0 and B4, set standardRegister to 17 (which is the
sum of 1 + 16). You can also send:
status.standard.enable = status.standard.OPC + status.standard.EXE
When zero (0) is returned, no bits are set. You can also send 0 to clear all bits.