*ESE
Description
This command gets or sets the value of the Event Status Enable
register (ESE
). This register enables values from the Standard Event Status
register (ESR
),
so that the values of the ESR
, that are enabled in the ESE
can be forwarded to the Status Byte
register.
For more information about the status registering refer to Registers.
Syntax | Parameter |
---|---|
*ESE |
<numeric > |
Parameters | accepted format | possible Errors |
---|---|---|
{ <numeric > | MINimum | MAXimum } |
Range from 0 to 255 |
Numeric data error |
Note
If the given value exceeds 255
a bitwise AND
with 255
is performed and the resulting value is stored in the ESE
register.
Bit value | code | description |
---|---|---|
Bit 0 - 1 | Operation complete |
Is set after an Operation Complete Command, when all pending operations have finished. |
Bit 1 - 2 | Request control |
Not used for the actual measurement device, because RAW socket does not support service requests. |
Bit 2 - 4 | Query error |
Is set, when a query error occurs. |
Bit 3 - 8 | Device dependent error |
Is set, when a device dependent error occurs. |
Bit 4 - 16 | Execution error |
Is set, when an error occurs while executing a command. |
Bit 5 - 32 | Command error |
Is set, when a given command is not valid. |
Bit 6 - 64 | User Request |
Not used for the actual measurement device, because RAW socket does not support service requests. |
Bit 7 - 128 | Power On |
Is set, when the device detects and off to on transition in its power supply. |
Sample usage
Input:
var visaSession = new TcpipSocket(VISA_RESOURCENAME); visaSession.RawIO.Write("*ESE 255\n"); visaSession.RawIO.Write("*ESE?\n"); Console.WriteLine(visaSession.RawIO.ReadString());
Output:
255 (all events are enabled)