
R&S ZVL
Interfaces and Connectors
Rear Panel Connectors
Operating Manual 1303.6580.32-05
596
VB format
Function RSDLLilwrt (ByVal ud%, ByVal Wrt$, ByVal Cnt&, ibsta%,
iberr%, ibcntl&) As Integer
C-format
short WINAPI
RSDLLilwrt( short ud, char far *Wrt, unsigned long Cnt,
short far *ibsta, short far *iberr, unsigned long far *ibcntl)
C format
(Unix)
short RSDLLilwrt( short ud, char *Wrt, unsigned long Cnt, short
*ibsta, short *iberr, unsigned long *ibcntl)
Parameters
ud
// Device handle
Wrt //
String sent to the device
Cnt //
Number of bytes sent to the device
Example
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
.
VB format
Function RSDLLibwrtf (ByVal ud%, ByVal file$, ibsta%, iberr%,
ibcntl&) As Integer
C-format
short WINAPI RSDLLibwrt( short ud, char far *Wrt, short far *ibsta,
short far *iberr, unsigned long far *ibcntl )
C format
(Unix)
short RSDLLibwrt( short ud, char *Wrt, short *ibsta, short *iberr,
unsigned long *ibcntl )
Parameters
ud
// Device handle
file //
File the contents of which are sent to the device
Example
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
.
VB format
Function RSDLLibrd (ByVal ud%, ByVal Rd$, ibsta%, iberr%, ibcntl&)
As Integer
C-format
short WINAPI RSDLLibrd( short ud, char far *Rd, short far *ibsta,
short far *iberr, unsigned long far *ibcntl )