![Rohde & Schwarz 1065.6000.20 Operating Manual Download Page 389](http://html1.mh-extra.com/html/rohde-and-schwarz/1065-6000-20/1065-6000-20_operating-manual_1477758389.webp)
Programming Examples
FSE
1065.6016.12
7.10
E-16
C / C++
Programming Hint:
•
Access to the functions of the RSIB.DLL or RSIB32.DLL (Windows platforms)
The functions of the
RSIB.DLL
or
RSIB32.DLL
are declared in the header file
RSIB.H
. The DLL
functions can be linked to a C/C++ program in different ways.
1. Enter one of the supplied import libraries (
RSIB.LIB
or
RSIB32.DLL
) into the linker options.
2. Load the library using the function
LoadLibrary()
during runtime and determine the function
pointers of the DLL functions using
GetProcAddress()
. Before the end of the program, the
RSIB.DLL
must be unloaded again using the function
FreeLibrary()
.
When import libraries are used, the DLL is automatically loaded immediately before the application is
started. At the end of the program, the DLL is unloaded again unless it is still used by other
applications.
•
Access to librsib.so functions (Unix platforms)
The functions of
librsib.so
are declared in the header file
RSIB.H
. Upper/lower case characters
for file names are typically observed under Unix. The library functions are linked to a C/C++ program
by entering the
-lrsib
linker option.
The shared library
librsib.so
is automatically loaded on starting the application. The accessibility
(for example via standard path) of the library must be ensured. Refer to the beginning of this main
chapter under „Unix Environment“.
•
Query of strings
If instrument responses are to be further processed as strings, a zero termination must be appended.
Example:
char buffer[100];
...
RSDLLibrd( ud, buffer, &ibsta, &iberr, &ibcntl );
buffer[ibcntl] = 0;
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: ......