Returns a System.String that identifies the explicit path created with Connect.

Syntax

Namespace: NationalInstruments.ModularInstruments.NISwitch

public string[] GetPath(string channel1, string channel2)

Parameters

NameTypeDescription
channel1string

Indicates one of the channel name of the desired path.

channel2string

Indicates the name of the other channel name of the desired path.

Returns

Returns a System.String that identifies the path between the desired two channels.

Exceptions

TypeDescription
Ivi.Swtch.NoSuchPathException

This exception is used when no explicit path exists between the two channels..

System.ObjectDisposedException

The GetPath method was accessed after the associated NISwitch object was disposed.