18.12.2012 Views

R&S FSQ Signal Analyzer - Rohde & Schwarz

R&S FSQ Signal Analyzer - Rohde & Schwarz

R&S FSQ Signal Analyzer - Rohde & Schwarz

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

R&S <strong>FSQ</strong> Instrument Functions<br />

RSIB Interface Functions<br />

RSDLLibrd()<br />

The function reads data from the device with the handle ud into the string Rd.<br />

VB format: Function RSDLLibrd (ByVal ud%, ByVal Rd$,<br />

ibsta%, iberr%, ibcntl&) As Integer<br />

C format: short WINAPI RSDLLibrd( short ud, char far<br />

*Rd, short far *ibsta, short far *iberr,<br />

unsigned long far *ibcntl )<br />

C format (UNIX): short RSDLLibrd( short ud, char *Rd, short<br />

*ibsta, short *iberr, unsigned long *ibcntl<br />

)<br />

Parameters: ud Device handle<br />

Rd String to which the read data is copied.<br />

Example: RSDLLibrd (ud, Rd, ibsta, iberr, ibcntl)<br />

This function fetches the responses of the GPIB parser to a query.<br />

In the case of Visual Basic programming, a string of sufficient length must be generated<br />

beforehand. This can be done during the definition of the string or using the<br />

command Space$().<br />

Generation of a string of the length 100:<br />

– Dim Rd as String * 100<br />

– Dim Rd as String<br />

Rd = Space$(100)<br />

RSDLLilrd<br />

This function reads Cnt bytes from the device with the handle ud.<br />

VB format: Function RSDLLilrd (ByVal ud%, ByVal Rd$,<br />

ByVal Cnt&, ibsta%, iberr%, ibcntl&) As<br />

Integer<br />

C format: short WINAPI RSDLLilrd( short ud, char far<br />

*Rd, unsigned long Cnt, short far *ibsta,<br />

short far *iberr, unsigned long far *ibcntl<br />

)<br />

C format (UNIX): short RSDLLilrd( short ud, char *Rd,<br />

unsigned long Cnt, short *ibsta, short<br />

*iberr, unsigned long *ibcntl )<br />

Parameters: ud Device handle<br />

cnt Maximum number of bytes copied from<br />

the DLL into the target string Rd.<br />

Example: RSDLLilrd (ud, RD, 100, ibsta, iberr,<br />

ibcntl)<br />

Like the function RSDLLibrd(), this function reads data from a device. The only<br />

difference is that in this case the maximum number of bytes to be copied to the target<br />

string Rd can be indicated by means of Cnt. This function prevents writing<br />

beyond the end of the string.<br />

4.260 Operating Manual 1313.9681.12 - 01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!