IOSession

IVI Library

Ivi_IOSession

Usage

ViSession = Ivi_IOSession(ViSession vi);

Purpose

This function returns the current value of the IVI_ATTR_IO_SESSION attribute for the session you specify.

Use Ivi_IOSession in the high-level functions in specific instrument drivers. Ivi_IOSession provides fast, convenient access to the IVI_ATTR_IO_SESSION attribute because it does no error checking and does not lock the session.

Note  Do not call this function unless you have already locked the session.

Parameters

Name Type Description
vi ViSession

The ViSession handle that you obtain from Ivi_SpecificDriverNew. The handle identifies a particular IVI session.

Return Value

Returns the value of the IVI_ATTR_IO_SESSION attribute for the session. You use the I/O session handle to communicate with the actual instrument.

If you pass an invalid session handle to the function, this parameter returns VI_NULL.

Related Topic

IVI Status Codes