![Rohde & Schwarz 1065.6000.20 Operating Manual Download Page 385](http://html1.mh-extra.com/html/rohde-and-schwarz/1065-6000-20/1065-6000-20_operating-manual_1477758385.webp)
Programming Examples
FSE
1065.6016.12
7.6
E-16
Programming via the RSIB Interface
The following hints apply to both the 16-bit and the 32-bit DLL versions (RSIB.DLL and RSIB32.DLL)
unless an explicit distinction is made. The 32-bit DLL version is only available for instruments with
Windows NT controller option. The RSIB interface supports links to max. 16 measuring instruments at
the same time.
Visual Basic
Programming Hints:
•
Access to RSIB.DLL functions
Instruments with Windows NT controller option:
To generate Visual Basic control applications, the file RSIB.BAS for 16 bit basic programs or
RSIB32.BAS for 32 bit basic programs (C:/R_S/INSTR/RSIB) s added to a project to enable call-up
of the RSIB.DLL or RSIB32.DLL functions.
Instruments with MS DOS controller option:
To generate Visual Basic control applications, the file RSIB.BAS (D:/runtime/rsib) is added to a
project to enable call-up of the RSIB.DLL functions.
•
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 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
#
2004
4
In order to enable the trace data to be directly read into a float array, a special function declaration
must be created.
Note:
Address ’@local’ and DLL rsib.dll must be used for instruments with MS-DOS controller.
Declare Function RSDLLilrdTraceReal Lib "rsib32.dll" Alias "RSDLLilrd"
(ByVal ud%, Rd As Single, ByVal Cnt&, ibsta%, iberr%, ibcntl&) As Integer
Summary of Contents for 1065.6000.20
Page 3: ......
Page 5: ......
Page 17: ......
Page 57: ...Contents Description of Commands FSE 1065 6016 12 I 6 4 E 16...
Page 379: ...Contents Programming Examples FSE 1065 6016 12 I 7 2 E 1...
Page 391: ......
Page 393: ...Contents Maintenance and Instrument Interfaces FSE 1065 6016 12 I 8 2 E 15...
Page 419: ......
Page 421: ...Contents Error Messages FSE 1065 6016 12 I 9 2 E 1...
Page 429: ......