beautypg.com

Cilxs_close – AMETEK Ls Series Driver Manual User Manual

Page 41

background image

IVI Driver Manual

Lx / Ls Series

37

ciLxs_close


ViStatus ciLxs_close (ViSession instrumentHandle);

Purpose

This function performs the following operations:

- Closes the instrument I/O session.

- Destroys the instrument driver session and all of its attributes.

- Deallocates any memory resources the driver uses.

Notes:

(1) You must unlock the session before calling ciLxs_close.

(2) After calling ciLxs_close, you cannot use the instrument driver again
until you call ciLxs_init or ciLxs_InitWithOptions.



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


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.

To obtain a text description of the status code, call the
ciLxs_error_message function. To obtain additional information about
the error condition, call the ciLxs_GetError function. To clear the
error information from the driver, call the ciLxs_ClearError
function.

The general meaning of the status code is as follows:

Value Meaning
-------------------------------
0 Success
Positive Values Warnings
Negative Values Errors

This manual is related to the following products: