niSwitch_close

NI-SWITCH Functions

niSwitch_close

Specific Function

C Function Prototype

ViStatus niSwitch_close (ViSession vi);

Purpose

Terminates the NI-SWITCH session and all of its attributes and deallocates any memory resources the driver uses.

Note  You must unlock the session before calling niSwitch_close. After calling niSwitch_close, you cannot use the NI-SWITCH again until you call niSwitch_init or niSwitch_InitWithOptions.

Parameters

Name Type Description
vi ViSession A particular NI-SWITCH session established with niSwitch_InitWithTopology, niSwitch_InitWithOptions, or niSwitch_init and used for all subsequent NI-SWITCH calls.