niSwitch_CanConnect
IviSwtchBase Capability Group
C Function Prototype
ViStatus niSwitch_CanConnect (ViSession vi, ViConstString channel1, ViConstString channel2, ViInt32* pathCapability);
Purpose
Verifies that a path between channel1 and channel2 can be created.
If a path is possible in the switch module, the availability of that path is returned given the existing connections. If the path is possible but in use, a NISWITCH_WARN_IMPLICIT_CONNECTION_EXISTS warning is returned.
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 desired path. Pass the other channel name as the channel2. Refer to Devices for valid channel names for the switch module.
Examples of valid channel names: ch0, com0, ab0, r1, c2, cjtemp The default value is an empty string. |
||||||||||||||
channel2 | ViConstString | Input one of the channel names of the desired path. Pass the other channel name as channel1. Refer to Devices for valid channel names for the switch module.
Examples of valid channel names: The default value is an empty string. |
||||||||||||||
pathCapability | ViInt32 | Indicates whether a path is valid.
Possible values include:
|