EasyManua.ls Logo

Rohde & Schwarz EMI Test ReceiverESCI - Page 483

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.351 E-1
C / C++
Programming tips:
Access to the functions of the RSIB32.DLL (Windows platforms)
The functions of the 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.LIB) 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. Uppercase/lowercase
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