R&S
®
ZVA / R&S
®
ZVB / R&S
®
ZVT Annexes
Interfaces and Connectors
Operating Manual 1145.1084.12 – 30 1142
*ibsta, short far *iberr, unsigned long far *ibcntl)
short RSDLLilwrt( short ud, char *Wrt, unsigned long Cnt, short *ibsta, short
*iberr, unsigned long *ibcntl)
ud // Device handle
Wrt // String sent to the device
Cnt // Number of bytes sent to the device
RSDLLilwrt (ud, '......', 100, ibsta, iberr, ibcntl)
Like RSDLLibwrt() this function sends data to a device. The only difference is that binary data can be
sent as well. The length of the data is not determined by a zero-terminated string, but by the indication of
Cnt bytes. If the data is to be terminated with EOS (0Ah), the EOS byte must be appended to the string.
RSDLLibwrtf
This function sends the contents of a file file$ to the device with the handle ud.
Function RSDLLibwrtf (ByVal ud%, ByVal file$, ibsta%, iberr%, ibcntl&) As Integer
short WINAPI RSDLLibwrt( short ud, char far *Wrt, short far *ibsta, short far
*iberr, unsigned long far *ibcntl )
short RSDLLibwrt( short ud, char *Wrt, short *ibsta, short *iberr, unsigned long
*ibcntl )
ud // Device handle
file // File the contents of which are sent to the device
RSDLLibwrtf(ud, "C:\db.sav", ibsta, iberr, ibcntl)
This function allows to send setting and query commands to the measuring instruments. Whether the data
is interpreted as complete command can be set using the function RSDLLibeot().
RSDLLibrd()
The function reads data from the device with the handle ud into the string Rd.
Function RSDLLibrd (ByVal ud%, ByVal Rd$, ibsta%, iberr%, ibcntl&) As Integer
short WINAPI RSDLLibrd( short ud, char far *Rd, short far *ibsta, short far *iberr,
unsigned long far *ibcntl )
short RSDLLibrd( short ud, char *Rd, short *ibsta, short *iberr, unsigned long
*ibcntl )
ud // Device handle
Rd // String into which the read data is copied
RSDLLibrd (ud, Rd, ibsta, iberr, ibcntl)
This function fetches the responses of the GPIB parser to a query.
In the case of Visual Basic programming, a string of sufficient length must be generated before. This can
be done during the definition of the string or using the command Space$().
Generation of a string of the length 100:
- Dim Rd as String * 100
- Dim Rd as String