R&S ESU Series Operating Manual page 388

Emi test receiver
Table of Contents

Advertisement

R&S ESU
4.14.1.1
Variables ibsta, iberr, ibcntl
As with the National Instrument interface, the successful execution of a command
can be checked by means of the variables ibsta, iberr and ibcntl. For this pur-
pose, all RSIB functions are assigned references to these three variables.
Status word - ibsta
The status word ibsta provides information on the status of the RSIB interface. The
following bits are defined:
Bit designation
ERR
TIMO
CMPL
Error variable - iberr
If the ERR bit (8000h) is set in the status word, iberr contains an error code which
allows the error to be specified in greater detail. Extra error codes are defined for the
RSIB protocol, independent of the National Instruments interface.
Error
IBERR_CONNECT
IBERR_NO_DEVICE
IBERR_MEM
IBERR_TIMEOUT
IBERR_BUSY
IBERR_FILE
IBERR_SEMA
Count variable - ibcntl
The variable ibcntl is updated with the number of transferred bytes each time a
read or write function is called.
Operating Manual 1302.6163.12 - 03
Bit
Hex code
Description
15
8000
Is set when an error has occurred on calling a
function. If this bit is set, iberr contains an error
code that specifies the error in greater detail.
14
4000
Is set when a time-out has occurred on calling a
function.
8
0100
Is set if the response of the GPIB parser has been
read out completely. If a parser response is read out
with the function RSDLLilrd() and the length of the
buffer is insufficient for the answer, the bit will be
cleared.
Error code
Description
2
Setup of the connection to the measuring instrument
has failed.
3
A function of the interface has been called with an
illegal device handle.
4
No empty memory available.
5
Time-out has occurred.
6
The RSIB protocol is blocked by a function that is still
running.
7
Error when reading or writing to a file.
8
Error upon creating or assigning a semaphore (only
under UNIX).
Instrument Functions
RSIB Interface Functions
4.357

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents