beautypg.com

Cilxs_readinstrdata – AMETEK Ls Series Driver Manual User Manual

Page 225

background image

IVI Driver Manual

Lx / Ls Series

221

ciLxs_ReadInstrData


ViStatus ciLxs_ReadInstrData (ViSession instrumentHandle,
ViInt32 number_ofBytesToRead,
ViChar _VI_FAR readBuffer[],
ViPInt32 numBytesRead);

Purpose

This function reads data from the instrument.

Parameter List

instrumentHandle

Variable Type ViSession

The ViSession handle that you obtain from the ciLxs_init or
ciLxs_InitWithOptions function. The handle identifies a particular
instrument session.

Default Value: None


number_ofBytesToRead

Variable Type ViInt32

Pass the maximum number of bytes to read from the instruments.


Valid Range: 0 to the number of elements in the Read Buffer.

Default: 0



readBuffer

Variable Type ViChar[]

After this function executes, this parameter contains the data that
was read from the instrument.

numBytesRead

Variable Type ViInt32 (passed by reference)

Returns the number of bytes actually read from the instrument and
stored in the Read Buffer.

Return Value

Returns the status code of this operation. The status code either
indicates success or describes an error or warning condition. You
examine the status code from each call to an instrument driver
function to determine if an error occurred.

This manual is related to the following products: