18.01.2015 Views

Top Ten SCPI Programming Tips for Signal Generators - Rohde ...

Top Ten SCPI Programming Tips for Signal Generators - Rohde ...

Top Ten SCPI Programming Tips for Signal Generators - Rohde ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Program Start<br />

At program start, we cleared the error queue using the *CLS command. A normal error<br />

query (e.g. SYST:ERR, see section 5) now reports 0, “No error”, although the external<br />

reference signal is missing. There<strong>for</strong>e, it is important to query <strong>for</strong> static errors at<br />

program start to make sure the instrument is in an error-free state.<br />

At the beginning of the test program, query the instrument <strong>for</strong> static errors with the<br />

following command:<br />

<strong>SCPI</strong> query: SYST:SERR<br />

This query returns all static errors that are currently present. Static errors are<br />

permanent error messages and are not deleted by this query.<br />

If static errors are present, the test program must react appropriately, e.g. by aborting<br />

the test run and displaying the received error message.<br />

1GP79_1E <strong>Rohde</strong> & Schwarz <strong>Top</strong> <strong>Ten</strong> <strong>SCPI</strong> <strong>Programming</strong> <strong>Tips</strong> <strong>for</strong> <strong>Signal</strong> <strong>Generators</strong> 7

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

Saved successfully!

Ooh no, something went wrong!