18.12.2012 Views

R&S FSQ Signal Analyzer - Rohde & Schwarz

R&S FSQ Signal Analyzer - Rohde & Schwarz

R&S FSQ Signal Analyzer - Rohde & Schwarz

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

R&S <strong>FSQ</strong> Instrument Functions<br />

// Activate SRQ generation via event status register (ESR)<br />

// and enable ESB bit in SRE register<br />

RSDLLibwrt( ud, "*ESE 1;*SRE 32", &ibsta, &iberr, &ibcntl );<br />

RSIB Interface Functions<br />

// Set single sweep, trigger sweep and use "*OPC" to cause<br />

// the generation of a service request at the end of the sweep<br />

RSDLLibwrt( ud, "INIT:CONT off;INIT;*OPC", &ibsta, &iberr, &ibcntl );<br />

// Wait for SRQ (end of sweep)<br />

RSDLLWaitSrq( ud, &srq, &ibsta, &iberr, &ibcntl );<br />

// Clear RQS/MSS bit<br />

RSDLLibrsp( ud, &spr, &ibsta, &iberr, &ibcntl );<br />

// if sweep is terminated<br />

if (srq)<br />

{<br />

// then set marker to first maximum and query the level<br />

RSDLLibwrt( ud, "CALC:MARK:MAX;Y?", &ibsta, &iberr, &ibcntl );<br />

RSDLLilrd( ud, MaxPegel, MAX_RESP_LEN, &ibsta, &iberr, &ibcntl );<br />

MaxPegel[ibcntl] = 0;<br />

}<br />

// End connection to instrument<br />

RSDLLibonl (ud, 0, &ibsta, &iberr, &ibcntl ) ;<br />

}<br />

else<br />

{<br />

; // Error Instrument not found<br />

}<br />

Operating Manual 1313.9681.12 - 01 4.271

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!