
R&S ESU
Instrument Functions
RSIB Interface Functions
4.370
Operating Manual 1302.6163.12 - 03
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 section
“UNIX Environment” on page 4.355
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;
Programming example
In the following C program example, a single sweep is started on the device with the
IP address 89.10.38.97 and subsequently a marker is set to maximum level. Prior to
the search for maximum, a synchronization to the end of the sweep is performed.
For this purpose the command
"*OPC"
(Operation complete) is used to create a
service request at the end of the sweep, for which the control program waits with the
function
RSDLLWaitSrq()
. Then the maximum is determined (
"CALC:MARK:
MAX"
) and the level read out (
"Y?"
).
#define MAX_RESP_LEN 100
short
ibsta, iberr;
unsigned long ibcntl;
short ud;
short
srq;
char
MaxPegel[MAX_RESP_LEN];
char spr;
// Determine handle for instrument
ud = RSDLLibfind( "89.10.38.97", &ibsta, &iberr, &ibcntl );
// if instrument exists
if ( ud >= 0 )
{
// Set timeout for RSDLLWaitSrq() to 10 seconds
RSDLLibtmo( ud, 10, &ibsta, &iberr, &ibcntl );
Summary of Contents for ESU Series
Page 1: ...R S ESU EMI Test Receiver Operating Manual 1302 6163 12 03 Test Measurement Operating Manual...
Page 25: ......
Page 27: ...R S ESU Putting into Operation 1 2 Operating Manual 1302 6163 12 03...
Page 29: ...R S ESU Getting Started 2 2 Operating Manual 1302 6163 12 03...
Page 31: ...R S ESU Manual Operation 3 2 Operating Manual 1302 6163 12 03...
Page 349: ...R S ESU Instrument Functions Basic Settings 4 318 Operating Manual 1302 6163 12 03...
Page 405: ...R S ESU Instrument Functions User Port 4 374 Operating Manual 1302 6163 12 03...
Page 439: ...R S ESU Remote Control Basics Status Reporting System 5 34 Operating Manual 1302 6163 12 03...
Page 841: ...R S ESU Error Messages Device Specific Messages 9 10 Operating Manual 1302 6163 12 03...
Page 854: ...Operating Manual 1302 6163 12 03 10 13 R S ESU...
Page 855: ...R S ESU 10 14 Operating Manual 1302 6163 12 03...