R&S
®
ZVA / R&S
®
ZVB / R&S
®
ZVT Annexes
Interfaces and Connectors
Operating Manual 1145.1084.12 – 30 1140
Error variable iberr
If the ERR bit (8000h) is set in the status word, iberr contains an error code that specifies the error. The
RSIB has error codes of its own independent of the National Instrument interface.
RSIB.DLL cannot register any new device.
Link to the device has failed.
An interface function was called with an invalid device handle.
No free memory available.
The RSIB interface is blocked by a function not yet completed.
Windows is not blocked, for example, by function RSDLLibrd() if data is still to be
transmitted in response to this function. In this case a new call is possible. Further calls
are however rejected by RSIB.DLL with error code IBERR_BUSY.
Error in reading from or writing to a file.
Error upon creating or assigning a semaphore (only under Unix)
Count variable - ibcntl
The variable ibcntl is updated with the number of bytes transmitted on every read and write function call.
Overview of Interface Functions
The library functions are adapted to the interface functions of National Instruments for GPIB programming.
The functions supported by the libraries are listed in the following table.
Provides a handle for access to a device.
Sends a zero-terminated string to a device.
Sends a certain number of bytes to a device.
Sends the contents of a file to a device.
Reads data from a device into a string.
Reads a certain number of bytes from a device.
Reads data from a device into a file.
Sets timeout for RSIB functions
Switches a device into the local or remote state
Temporarily switches a device into the local state
Enables/disables the END message for write operations.
Performs a serial poll and provides the status byte.
Sends the command SDC (Device Clear) to the instrument.
Sets the device On/Offlline.
Checks whether a device has generated an SRQ.