Agilent Technologies Infiniium 8000A Programmer's Reference Manual page 110

Table of Contents

Advertisement

/*
*
Function name: setup_SRQ
*
Parameters:
*
Return value:
* Description: This routine initializes the device to generate Service Requests.
It
*
sets the Service Request Enable Register Event Status Bit and the Standard
*
Event Status Enable Register to allow SRQs on Command, Execution, Device
*
Dependent, or Query errors.
*/
void setup_SRQ( void )
{
/* Enable Service Request Enable Register - Event Status Bit */
write_IO("*SRE 32");
write_IO("*ESE 32");
} /* end setup_SRQ( ) */
Sample Programs
Sample C Programs
Setting Up a Service Request
The following code segment shows how to generate a service request. The
following function is demonstrated in the "gen_srq.c" sample program.
none
none
/* Enable Standard Event Status Enable Register */
/* enable Command Error - bit 4 - value 32 */
6-16

Advertisement

Table of Contents
loading

Table of Contents