EasyManua.ls Logo

Rohde & Schwarz EMI Test ReceiverESCI - Variables Ibsta, Iberr, Ibcntl

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...
RSIB Interface Functions R&S ESCI
1166.6004.12 4.340 E-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 purpose, 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 Bit Hex code Description
ERR
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.
TIMO
14 4000 Is set when a timeout has occurred on calling a function.
CMPL
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 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 Error code Description
IBERR_CONNECT
2 Setup of the connection to the measuring instrument has failed.
IBERR_NO_DEVICE
3 A function of the interface has been called with an illegal device handle.
IBERR_MEM
4 No empty memory available.
IBERR_TIMEOUT
5 Timeout has occurred.
IBERR_BUSY
6 The RSIB protocol is blocked by a function that is still running.
IBERR_FILE
7 Error when reading or writing to a file.
IBERR_SEMA
8 Error upon creating or assigning a semaphore (only under UNIX).
Count variable - ibcntl
The variable ibcntl is updated with the number of transferred bytes each time a read or write function
is called.

Table of Contents

Related product manuals