niSwitch_Disconnect
IviSwtchBase Capability Group
C Function Prototype
ViStatus niSwitch_Disconnect (ViSession vi, ViConstString channel1, ViConstString channel2);
Purpose
Destroys the path between two channels that you create with the niSwitch_Connect or niSwitch_SetPath function.
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. |
channel1 | ViConstString | Input one of the channel names of the path to break. Pass the other channel name as channel2. Refer to Devices for valid channel names for the switch module. Examples of valid channel names: ch0, com0, ab0, r1, c2, cjtemp |
channel2 | ViConstString | Input one of the channel names of the path to break. Pass the other channel name as channel1. Refer to Devices for valid channel names for the switch module. Examples of valid channel names: ch0, com0, ab0, r1, c2, cjtemp |