niSwitch_Disconnect

NI Switches Help

Edition Date: April 2015

Part Number: 375472H-01

»View Product Info
Download Help (Windows Only)

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.

If a path is not available, the function returns one of the following errors:

  • NISWITCH_ERROR_NO_SUCH_PATH, if a path does not exist between two channels.

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



Related Information

WAS THIS ARTICLE HELPFUL?

Not Helpful