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

Create successful ePaper yourself

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

Programming Examples<br />

ESIB<br />

Programming via the RSIB Interface<br />

The following hints apply to both the 16-bit and the 32-bit DLL versions (RSIB.DLL and RSIB32.DLL)<br />

unless an explicit distinction is made.. The RSIB interface supports links to max. 16 measuring<br />

instruments at the same time.<br />

Visual Basic<br />

Programming Hints:<br />

• Access to RSIB.DLL functions<br />

To generate Visual Basic control applications, the file RSIB.BAS for 16 bit basic programs or<br />

RSIB32.BAS for 32 bit basic programs (C:/R_S/INSTR/RSIB) s added to a project to enable call-up<br />

of the RSIB.DLL or RSIB32.DLL functions.<br />

• Generating a response buffer<br />

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

be generated. This is possible either by defining the string or using the command Space$().<br />

Generating a string of the length 100: - 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 appended blanks can be<br />

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 trace data in real format<br />

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

be assigned to one string only. If the data are to be read into an array with float values, the header<br />

and the useful data must be read out with separate function calls.<br />

Example of a header<br />

# 4 2004<br />

Prefix for<br />

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

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

must be created.<br />

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

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

1088.7531.12 7.6 E-16

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

Saved successfully!

Ooh no, something went wrong!