14.06.2014 Views

Operating Manual EMI TEST RECEIVER ESIB7 - Rohde & Schwarz

Operating Manual EMI TEST RECEIVER ESIB7 - Rohde & Schwarz

Operating Manual EMI TEST RECEIVER ESIB7 - 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.

ESIB<br />

Programming Examples<br />

Example:<br />

Dim ibsta As Integer<br />

Dim iberr As Integer<br />

Dim ibcntl As Long<br />

Dim ud As Integer<br />

Dim Result As String<br />

Dim Digits As Byte<br />

Dim TraceBytes As Long<br />

Dim TraceData(501) As Single<br />

’ Status variable<br />

’ Error variable<br />

’ Count variable<br />

’ Handle for measuring instrument<br />

’ Buffer for simple results<br />

’ Number of digits of length indication<br />

’ Length of trace data in bytes<br />

’ Buffer for floating point<br />

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

TraceBytes = Val(Left$(Result, Digits)) ’and store<br />

’ Read out trace data<br />

Call RSDLLilrdTraceReal(ud, TraceData(0), TraceBytes, ibsta, iberr,ibcntl)<br />

Programming examples:<br />

• In this example, the start frequency of the instrument is queried.<br />

Dim ibsta As Integer ’ Status variable<br />

Dim iberr As Integer ’ Error variable<br />

Dim ibcntl As Long ’ Count variable<br />

Dim ud As Integer ’ Handle for measuring instrument<br />

Dim Response As String ’ Response string<br />

’ Set up connection to measuring instrument<br />

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

If (ud < 0) Then<br />

’ Error treatment<br />

End If<br />

’ Send query command<br />

Call RSDLLibwrt(ud, "FREQ:START?", ibsta, iberr, ibcntl)<br />

’ Provide space for response<br />

Response = Space$(100)<br />

’ Read response from measuring instrument<br />

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

1088.7531.12 7.7 E-16

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

Saved successfully!

Ooh no, something went wrong!