Instrument status byte

// *****************************************************************************
// Read the status byte register to query the instrument status.
// Alternatively, not to interfere with output buffer, use VISA function
// viReadSTB.
// *****************************************************************************
*STB?
viReadSTB()

// *****************************************************************************
// Clear status registers, set the service request enable register to disable
// all events, and set the standard event status enable register to disable 
// status reporting.
// *****************************************************************************
*CLS;*WAI
*SRE 0
*ESE 0

// *****************************************************************************
// Enable standard questionable event status register (bit 3 weighted 8)and
// standard operation event status register (bit 7 weighted 128) - set SRE to
// 8+128=136.
// *****************************************************************************
*SRE 136

// *****************************************************************************
// Alternatively, set the same value in hexadecimal or binary format.
// *****************************************************************************
*SRE #H88
*SRE #B10001000