CNiIviSwtchPath::CanConnect

Measurement Studio IVI

Class
CNiIviSwtchPath::
CanConnect()
Base ClassesFunctionsGo to hierarchy chart    Prev page: CNiIviSwtchPathNext page: Connect    
Public Function Declared in:
NiIviSwtch.h

'Declaration' icon -- Shortcut to top of page. Declaration

inline long CanConnect(
    const CString &ch1,
    const CString &ch2) const;

'Description' icon -- Shortcut to top of page. Description

Returns a value indicating whether a path is currently available between two channels given the existing connections.

The following list includes valid values:

  • CNiIviSwtch::PathAvailable - The path is available.
  • CNiIviSwtch::PathExists - The path already exists.
  • CNiIviSwtch::PathUnsupported - The path can not be created.
  • CNiIviSwtch::ResourceInUse - The path is valid but cannot be created because part of the path is alread in use.
  • CNiIviSwtch::SourceConflict - The path can not be created because both channels are connected to source channels.
  • CNiIviSwtch::ChannelNotAvailable - The path can not be created because one of the channels is a configuration channel.

Shortcut to top of page. Parameters

const CString &ch1

One of the two channels to test for connectivity.

const CString &ch2

One of the two channels to test for connectivity.

'See Also' icon -- Shortcut to top of page. See Also