• General
  • API Documentation
  • SCPI
    • General
    • Command Reference
    • Starting Server

    Show / Hide Table of Contents
    • General commands
      • :ABORt
      • *CLS
      • *ESE
      • *ESR
      • *IDN
      • *OPC
      • *OPC?
      • *RST
      • *SRE
      • *STB
      • *TRG
      • *TST
      • *WAI
    • Calculate subsystem
      • :CALCulate:PARameter:DEFine
      • :CALCulate[:SELected]:DATA:SDATa
      • :CALCulate[:SELected]:FORMat
      • :CALCulate[:SELected]:ZPARameter:DEFine
    • Format subsystem
      • :FORMat[:DATA]
    • Initiate subsystem
      • :INITiate[:IMMediate]
      • :INITiate:CONTinuous
    • Input subsystem
      • :INPut:ATTenuation:CH1
      • :INPut:ATTenuation:CH2
      • :INPut:ATTenuation:R
      • :INPut:ATTenuation:T
      • :INPut:GAIN:CH1
      • :INPut:GAIN:CH2
      • :INPut:GAIN:R
      • :INPut:GAIN:T
      • :INPut:IMPedance:CH1
      • :INPut:IMPedance:CH2
      • :INPut:IMPedance:R
      • :INPut:IMPedance:T
    • Mass Memory subsystem
      • :MMEMory:STORe:CORRection
      • :MMEMory:LOAD:CORRection:FULLrange
      • :MMEMory:LOAD:CORRection:USERrange
    • Output subsystem
      • :OUTPut:AOFF
    • Sense subsystem
      • :SENSe:AVERage[:STATe]
      • :SENSe:AVERage:CLEar
      • :SENSe:AVERage:COUNt
      • :SENSe:BANDwidth[:RESolution]
      • :SENSe:BWIDth[:RESolution]
      • :SENSe:CORRection:FULLrange:ACTive
      • :SENSe:CORRection:FULLrange:AVAIlable
      • :SENSe:CORRection:FULLrange:ENABle
      • :SENSe:CORRection:FULLrange:EXTPolated
      • :SENSe:CORRection:FULLrange:MULTimode
      • :SENSe:CORRection:FULLrange:LOAD[:EXEcute]
      • :SENSe:CORRection:FULLrange:OPEN[:EXEcute]
      • :SENSe:CORRection:FULLrange:SHORt[:EXEcute]
      • :SENSe:CORRection:FULLrange:THRU[:EXEcute]
      • :SENSe:CORRection:IMPedance[:INPut][:MAGNitude]
      • :SENSe:CORRection:LOAD
      • :SENSe:CORRection:SDELaytime
      • :SENSe:CORRection:USERrange:ACTive
      • :SENSe:CORRection:USERrange:AVAIlable
      • :SENSe:CORRection:USERrange:ENABle
      • :SENSe:CORRection:USERrange:MULTimode
      • :SENSe:CORRection:USERrange:LOAD[:EXEcute]
      • :SENSe:CORRection:USERrange:OPEN[:EXEcute]
      • :SENSe:CORRection:USERrange:SHORt[:EXEcute]
      • :SENSe:CORRection:USERrange:THRU[:EXEcute]
      • :SENSe:FREQuency:CENTer
      • :SENSe:FREQuency:DATA
      • :SENSe:FREQuency:SPAN
      • :SENSe:FREQuency:STARt
      • :SENSe:FREQuency:STOP
      • :SENSe:SWEep:DWELl
      • :SENSe:SWEep:POINts
      • :SENSe:SWEep:TIME[:DATA]?
      • :SENSe:SWEep:TYPE
      • :SENSe:Z:METHod
    • Service subsystem
      • :SERVice:SWEep:FREQuency:MAXimum
      • :SERVice:SWEep:FREQuency:MINimum
    • Source subsystem
      • :SOURce:POWer[:LEVel][:IMMediate][:AMPLitude]
    • Status subsystem
      • :STATus:OPERation[:EVENt]
      • :STATus:OPERation:CONDition
      • :STATus:OPERation:ENABle
      • :STATus:OPERation:NTRansition
      • :STATus:OPERation:PTRansition
      • :STATus:PRESet
      • :STATus:QUEStionable[:EVENt]
      • :STATus:QUEStionable:CONDition
      • :STATus:QUEStionable:ENABle
      • :STATus:QUEStionable:NTRansition
      • :STATus:QUEStionable:PTRansition
    • System subsystem
      • :SYSTem:ERRor[:NEXT]
      • :SYSTem:ERRor:COUNt
      • :SYSTem:PRESet
      • :SYSTem:VERSion
    • Trigger subsystem
      • :TRIGger[:SEQuence][:IMMediate]
      • :TRIGger[:SEQuence]:SINGle
      • :TRIGger[:SEQuence]:SOURce

    *SRE

    Description

    This command set the service request enable register. For more information about the status registering refer to Registers.

    • Command
    • Query
    Syntax Parameter
    *SRE <numeric>
    Parameters accepted format possible Errors
    <numeric> Range from 0 to 255 OutOfRangeError
    Note

    If the given value exceeds 255 a bitwise AND with 255 is performed and the resulting value is stored in the ESE register.

    Syntax Response
    *SRE? <numeric>
    Response value description
    <numeric> value of the register in range from 0 to 255

    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

    • C#
    • Python

    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)

    Input:

    visaSession.write('*SRE 255\n')
    response = visaSession.query('*SRE?\n')
    print(response)
    

    Output:

    255 (all events are enabled)

    References

    Registering System

    Back to top Generated by DocFX