R&S
®
ZVA / R&S
®
ZVB / R&S
®
ZVT Annexes
Interfaces and Connectors
Operating Manual 1145.1084.12 – 30 1143
Rd = Space$(100)
RSDLLilrd
This function reads Cnt bytes from the device with the handle ud.
Function RSDLLilrd (ByVal ud%, ByVal Rd$, ByVal Cnt&, ibsta%, iberr%, ibcntl&) As Integer
short WINAPI RSDLLilrd( short ud, char far *Rd, unsigned long Cnt, short far *ibsta, short far *iberr, unsigned long
far *ibcntl )
short RSDLLilrd( short ud, char *Rd, unsigned long Cnt, short *ibsta, short *iberr,
unsigned long *ibcntl )
ud // Device handle
cnt // Maximum number of bytes copied from the DLL into the target // string Rd.
RSDLLilrd (ud, RD, 100, ibsta, iberr, ibcntl)
Like the function RSDLLibrd(), this function reads data from a device. The only difference is that in this
case the maximum number of bytes to be copied into the target string Rd can be indicated by means of
Cnt. This function prevents writing beyond the end of the string.
RSDLLibrdf()
Reads data from the device with the handle ud into the file file.
Function RSDLLibrdf (ByVal ud%, ByVal file$, ibsta%, iberr%, ibcntl&) As Integer
short WINAPI RSDLLibrd( short ud, char far *file, short far *ibsta, short far *iberr, unsigned long far *ibcntl )
short RSDLLibrd( short ud, char *file, short *ibsta, short *iberr, unsigned long *ibcntl )
ud // Device handle
file // File into which the read data is written
RSDLLibrdf (ud, "c:\db.sav", ibsta, iberr, ibcntl)
The file name may as well include a drive or path specification.
RSDLLibtmo
This function defines the timeout for a device. The default value for the timeout is set to 5 seconds.
Function RSDLLibtmo (ByVal ud%, ByVal tmo%, ibsta%, iberr%, ibcntl&) As Integer
short WINAPI RSDLLibtmo( short ud, short tmo, short far *ibsta, short far *iberr,
unsigned long far *ibcntl )
short RSDLLibtmo( short ud, short tmo, short *ibsta, short *iberr, unsigned long *ibcntl )
ud // Device handle
tmo // Timeout in seconds
RSDLLibtmo (ud, 10, ibsta, iberr, ibcntl)