*SRE
Description
This command set the service request enable register. For more information about the status registering refer to Registers.
Syntax | Parameter |
---|---|
*SRE |
<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 SRE
register.
Bit value | code | description |
---|---|---|
Bit 0 - 1 | Available to designer |
not used |
Bit 1 - 2 | Available to designer |
not used |
Bit 2 - 4 | Error/Event Queue |
indicates that the error event queue is NOT empty |
Bit 3 - 8 | Questionable Status Summary |
indicates that some devices values are questionable and therefore the quality of the measurement is not guaranteed |
Bit 4 - 16 | Message Available |
indicates that a message is available in the output queue |
Bit 5 - 32 | Event Status Register Summary |
indicates that an event or an error occurred |
Bit 6 - 64 | User Request |
Not used for the actual measurement device, because RAW socket does not support service requests. |
Bit 7 - 128 | Operation Status Summary |
indicates that the device is currently performing some operations |
Sample usage
Input:
var visaSession = new TcpipSocket(VISA_RESOURCENAME); visaSession.RawIO.Write("*SRE 255\n"); visaSession.RawIO.Write("*SRE?\n"); Console.WriteLine(visaSession.RawIO.ReadString());
Output:
255 (all events are enabled)