18.12.2012 Views

R&S FSQ Signal Analyzer - Rohde & Schwarz

R&S FSQ Signal Analyzer - Rohde & Schwarz

R&S FSQ Signal Analyzer - Rohde & Schwarz

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

R&S <strong>FSQ</strong> Instrument Functions<br />

4.11.1.1 Variables ibsta, iberr, ibcntl<br />

RSIB Interface Functions<br />

As with the National Instrument interface, the successful execution of a command<br />

can be checked by means of the variables ibsta, iberr and ibcntl. For this purpose,<br />

all RSIB functions are assigned references to these three variables.<br />

Status word - ibsta<br />

The status word ibsta provides information on the status of the RSIB interface. The<br />

following bits are defined:<br />

Bit designation Bit Hex code Description<br />

ERR 15 8000 Is set when an error has occurred on calling a<br />

function. If this bit is set, iberr contains an error<br />

code that specifies the error in greater detail.<br />

TIMO 14 4000 Is set when a time-out has occurred on calling a<br />

function.<br />

CMPL 8 0100 Is set if the response of the GPIB parser has been<br />

read out completely. If a parser response is read out<br />

with the function RSDLLilrd() and the length of the<br />

buffer is insufficient for the answer, the bit will be<br />

cleared.<br />

Error variable - iberr<br />

If the ERR bit (8000h) is set in the status word, iberr contains an error code which<br />

allows the error to be specified in greater detail. Extra error codes are defined for the<br />

RSIB protocol, independent of the National Instruments interface.<br />

Error Error code Description<br />

IBERR_CONNECT 2 Setup of the connection to the measuring instrument<br />

has failed.<br />

IBERR_NO_DEVICE 3 A function of the interface has been called with an<br />

illegal device handle.<br />

IBERR_MEM 4 No empty memory available.<br />

IBERR_TIMEOUT 5 Time-out has occurred.<br />

IBERR_BUSY 6 The RSIB protocol is blocked by a function that is still<br />

running.<br />

IBERR_FILE 7 Error when reading or writing to a file.<br />

IBERR_SEMA 8 Error upon creating or assigning a semaphore (only<br />

under UNIX).<br />

Count variable - ibcntl<br />

The variable ibcntl is updated with the number of transferred bytes each time a<br />

read or write function is called.<br />

Operating Manual 1313.9681.12 - 01 4.257

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!