EasyManua.ls Logo

Rohde & Schwarz EMI Test ReceiverESCI - Programming Via the Rsib Protocol; Visual Basic

Rohde & Schwarz EMI Test ReceiverESCI
495 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
R&S ESCI RSIB Interface Functions
1166.6004.12 4.347 E-1
Programming via the RSIB Protocol
Visual Basic
Programming tips:
Access to the functions of the RSIB.DLL
To create Visual Basic control applications, the file RSIB.BAS must be added to a project for 16-bit
Basic programs and the file RSIB32.BAS for 32-bit Basic programs (D:\R_S\INSTR\RSIB) so that
the functions of the RSIB.DLL or RSIB32.DLL can be accessed.
Generating a response buffer
Prior to calling the functions RSDLLibrd() and RSDLLilrd(), a string of sufficient length must
be generated. This is possible either by defining the string or using the command Space$().
Generating a string of the length 100: - Dim Response as String * 100
- Dim Response as String
Response = Space$(100)
If a response is to be output as a string from the measuring instrument, the appended blanks can be
removed using the Visual Basic Function RTrim().
Example:
Response = Space$(100)
Call RSDLLibrd(ud, Response, ibsta, iberr, ibcntl)
Response = RTrim(Response)
' Output of Response
Reading out trace data in real format
Using the function declarations in the file RSIB.BAS or RSIB32.BAS the responses of the device can
be assigned to one string only. If the data are to be read into an array with float values, the header
and the useful data must be read out with separate function calls.
Example of a header
Prefix for
binary data
Number of digits of
the following length
indication
Length of data, e.g.
501 pixels
4 bytes/pixel
# 20044
In order to enable the trace data to be directly read into a float array, a special function declaration
must be created.
Declare Function RSDLLilrdTraceReal Lib "rsib32.dll" Alias "RSDLLilrd"
(ByVal ud%, Rd As Single, ByVal Cnt&, ibsta%, iberr%, ibcntl&) As Integer

Table of Contents

Related product manuals