![]() | Download Help (Windows Only) |
ViStatus niSwitch_Disconnect (ViSession vi, ViConstString channel1, ViConstString channel2);
Destroys the path between two channels that you create with the niSwitch_Connect or niSwitch_SetPath function.
If a path is not available, the function returns one of the following errors:
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 |
Helpful
Not Helpful