Appendix B: Status model
2470 High Voltage SourceMeter Instrument Reference Manual
B-8
2470-901-01 Rev. A /
May
2019
Mapping events to bits
To program the Questionable and Operation Event Registers, you map events to specific bits in the
register. This causes a bit in the condition and event registers to be set (or cleared) when the
specified event occurs. You can map events to bits B0 through B14 (bit B15 is always set to zero).
When you have a mapped-set event, the bits in the corresponding condition register and event
register are set when the mapped-set event is detected. The bits remain at 1 until the event register is
read or the status model is reset.
When you have a mapped-clear event, the bit in the condition register is cleared to 0 when the event
is detected.
You can map any event to any bit in these registers. An event is the number that accompanies an
error, warning, or informational message that is reported in the event log. For example, for the event
code "Error -221, Settings Conflict," the event is –221. Note that some informational messages do not
have a related event number, so they cannot be mapped to a register.
You do not need to map clear events to generate SRQs. However, if you want to read the condition
register to report status, you must map both a set event and a clear event. If no clear event is
mapped, the bits are cleared only when the instrument power is turned off and turned on.
You can use the following SCPI commands to read and map events to bits in the programmable
registers:
•
(on page 12-99)
This command maps the set and clear events to a specified operation event register bit. Use the
query form of this command to read the mapped set and clear status.
•
(on page 12-101)
This command maps the set and clear events to a specified operation event register bit. Use the
query form of this command to read the mapped set and clear status.
You can use the following TSP commands to read and map events to bits in the programmable
registers:
•
(on page 14-183)
This command reads the mapped set and clear status for the specified operation event bit.
•
(on page 14-183)
This command maps the set and clear events to a specified operation event register bit.
•
(on page 14-187)
This command reads the mapped set and clear status for the specified questionable event bit.
•
(on page 14-187)
This command maps the set and clear events to a specified questionable event register bit.