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 />

Example of a header<br />

RSIB Interface Functions<br />

In order to enable the trace data to be directly read into a float array, a special function<br />

declaration must be created.<br />

Declare Function RSDLLilrdTraceReal Lib "rsib32.dll" Alias "RSDLLilrd" (ByVal<br />

ud%, Rd As Single, ByVal Cnt&, ibsta%, iberr%, ibcntl&) As Integer<br />

Example<br />

Prefix for<br />

binary data<br />

# 4<br />

2004<br />

Number of digits of<br />

the following length<br />

indication<br />

Length of data, e.g.<br />

501 pixels<br />

4 bytes/pixel<br />

Dim ibsta As Integer<br />

' Status variable<br />

Dim iberr As Integer<br />

' Error variable<br />

Dim ibcntl As Long<br />

' Count variable<br />

Dim ud As Integer<br />

' Handle for measuring instrument<br />

Dim Result As String<br />

' Buffer for simple results<br />

Dim Digits As Byte<br />

' Number of digits of length indication<br />

Dim TraceBytes As Long<br />

' Length of trace data in bytes<br />

Dim TraceData(625) As Single<br />

' Buffer for floating point Binary data<br />

' Set up connection to instrument<br />

ud = RSDLLibfind("89.10.38.97", ibsta, iberr, ibcntl)<br />

' Query trace data in real format<br />

Call RSDLLibwrt(ud, "FORM:DATA REAL,32", ibsta, iberr, ibcntl)<br />

Call RSDLLibwrt(ud, "TRACE? TRACE1", ibsta, iberr, ibcntl)<br />

' Read number of digits of length indication<br />

Result = Space$(20)<br />

Call RSDLLilrd(ud, Result, 2, ibsta, iberr, ibcntl)<br />

Digits = Val(Mid$(Result, 2, 1))<br />

' Read length indication<br />

Result = Space$(20)<br />

Call RSDLLilrd(ud, Result, Digits, ibsta, iberr, ibcntl)<br />

4.266 Operating Manual 1313.9681.12 - 01

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

Saved successfully!

Ooh no, something went wrong!