EasyManua.ls Logo

R&S ESU Series - Page 402

R&S ESU Series
855 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Operating Manual 1302.6163.12 - 03 4.371
R&S ESU Instrument Functions
RSIB Interface Functions
// Activate SRQ generation via event status register (ESR)
// and enable ESB bit in SRE register
RSDLLibwrt( ud, "*ESE 1;*SRE 32", &ibsta, &iberr, &ibcntl );
// Set single sweep, trigger sweep and use "*OPC" to cause
// the generation of a service request at the end of the sweep
RSDLLibwrt( ud, "INIT:CONT off;INIT;*OPC", &ibsta, &iberr, &ibcntl );
// Wait for SRQ (end of sweep)
RSDLLWaitSrq( ud, &srq, &ibsta, &iberr, &ibcntl );
// Clear RQS/MSS bit
RSDLLibrsp( ud, &spr, &ibsta, &iberr, &ibcntl );
// if sweep is terminated
if (srq)
{
// then set marker to first maximum and query the level
RSDLLibwrt( ud, "CALC:MARK:MAX;Y?", &ibsta, &iberr, &ibcntl );
RSDLLilrd( ud, MaxPegel, MAX_RESP_LEN, &ibsta, &iberr, &ibcntl );
MaxPegel[ibcntl] = 0;
}
// End connection to instrument
RSDLLibonl (ud, 0, &ibsta, &iberr, &ibcntl ) ;
}
else
{
; // Error Instrument not found
}

Table of Contents

Related product manuals