EasyManua.ls Logo

Rohde & Schwarz FSEA20 - C; C

Rohde & Schwarz FSEA20
438 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...
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;

Table of Contents

Related product manuals