![]() |
SetSession()





Public Function |
Declared in: NiIviDriver.h |
Declaration
inline void SetSession( ViSession vi, bool destructorClosesSession = false);
Description
Sets the object session to the value provided. The object verifies that the session is of the correct type. If the object is already using a valid session and the DestructorClosesSession property is true, the function closes the existing session.
Parameters
ViSession vi
bool destructorClosesSession = false
Session to associate with the object.
Determines if the session associated with the object is closed when the object is destroyed.