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

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

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

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

RSIB Interface Functions<br />

Different types of processor architecture store data in different byte sequences. For<br />

example, Intel processors store data in the reverse order of Motorola processors.<br />

Comparison of byte sequences:<br />

4.11.2 Programming via the RSIB Protocol<br />

4.11.2.1 Visual Basic<br />

Byte sequence Use in Display in memory Description<br />

Big Endian Motorola processors,<br />

network standard<br />

Programming tips<br />

Access to the functions of the RSIB.DLL<br />

To create Visual Basic control applications, the file RSIB.BAS must be added to a<br />

project for 16-bit Basic programs and the file RSIB32.BAS for 32-bit Basic programs<br />

(D:\R_S\INSTR\RSIB) so that the functions of the RSIB.DLL or RSIB32.DLL can be<br />

accessed.<br />

Generating a response buffer<br />

Prior to calling the functions RSDLLibrd() and RSDLLilrd(), a string of sufficient<br />

length must be generated. This is possible either by defining the string or using<br />

the command Space$().<br />

Generating a string of the length 100:<br />

– Dim Response as String * 100<br />

– Dim Response as String<br />

Response = Space$(100)<br />

If a response is to be output as a string from the measuring instrument, the<br />

appended blanks can be removed using the Visual Basic Function RTrim().<br />

Example:<br />

Response = Space$(100)<br />

Call RSDLLibrd(ud, Response, ibsta, iberr, ibcntl)<br />

Response = RTrim(Response)<br />

' Output of Response<br />

Reading out trace data in real format<br />

Most significant byte at<br />

least significant address<br />

Little Endian Intel processors Least significant byte at<br />

least significant address<br />

The most significant<br />

byte is at the left end<br />

of the word.<br />

The most significant<br />

byte is at the right<br />

end of the word.<br />

Using the function declarations in the file RSIB.BAS or RSIB32.BAS the responses<br />

of the device can be assigned to one string only. If the data are to be read into an<br />

array with float values, the header and the useful data must be read out with separate<br />

function calls.<br />

Operating Manual 1313.9681.12 - 01 4.265

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

Saved successfully!

Ooh no, something went wrong!