EasyManua.ls Logo

Rohde & Schwarz EMI Test ReceiverESCI - Page 474

Rohde & Schwarz EMI Test ReceiverESCI
495 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RSIB Interface Functions R&S ESCI
1166.6004.12 4.342 E-1
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 whose contents is sent to the device.
Example: RSDLLibwrtf(ud, "C:\db.sav", ibsta, iberr, ibcntl)
This function allows setting and query commands to be sent to the measuring instruments. Whether the
data is interpreted as a 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 )
C format (UNIX): short RSDLLibrd( short ud, char *Rd, short *ibsta, short
*iberr, unsigned long *ibcntl )
Parameters: ud Device handle
Rd String to which the read data is copied.
Example: 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 beforehand.
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
Rd = Space$(100)
RSDLLilrd
This function reads Cnt bytes from the device with the handle ud.
VB format: Function RSDLLilrd (ByVal ud%, ByVal Rd$, ByVal Cnt&, ibsta%,
iberr%, ibcntl&) As Integer
C format: short WINAPI RSDLLilrd( short ud, char far *Rd, unsigned long
Cnt, short far *ibsta, short far *iberr, unsigned long far
*ibcntl )
C format (UNIX): short RSDLLilrd( short ud, char *Rd, unsigned long Cnt, short
*ibsta, short *iberr, unsigned long *ibcntl )
Parameters: ud Device handle
cnt Maximum number of bytes copied from the DLL into the target
string Rd.
Example: 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 to the target string Rd can be indicated by means
of Cnt. This function prevents writing beyond the end of the string.

Table of Contents

Related product manuals