AMETEK Ls Series Driver Manual User Manual
Page 186

IVI Driver Manual
Lx / Ls Series
182
instrumentHandle
Variable Type ViSession (passed by reference)
Returns a ViSession handle that you use to identify the instrument in
all subsequent instrument driver function calls.
Notes:
(1) This function creates a new session each time you invoke it.
This is useful if you have multiple physical instances of the same
type of instrument.
(2) Avoid creating multiple concurrent sessions to the same physical
instrument. Although you can create more than one IVI session for
the same resource, it is best not to do so. A better approach is to
use the same IVI session in multiple execution threads. You can use
functions ciLxs_LockSession and ciLxs_UnlockSession to protect
sections of code that require exclusive access to the resource.
baudRate
Variable Type ViInt32
Specify the baud rate of the serial port.
Baud Rate Ranges:
9600
19200
38400
57600
115200
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