DAQmxSwitchFindPath
int32 DAQmxSwitchFindPath (const char switchChannel1[], const char switchChannel2[], char path[], uInt32 pathBufferSize, int32 *pathStatus);
Purpose
Returns information about the path between switchChannel1 and switchChannel2. If the channels are connected, this function returns the path by which they are connected. If the channels are not connected, the function returns a path by which they could be connected, if one is available.
Parameters
Input | |||||||||||||||||||||||
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
switchChannel1 |
|
The first channel to connect. | |||||||||||||||||||||
switchChannel2 |
|
The second channel to connect. | |||||||||||||||||||||
pathBufferSize | uInt32 | The size of path. If you pass 0, this function returns the size of the buffer needed to allocate. | |||||||||||||||||||||
Output | |||||||||||||||||||||||
Name | Type | Description | |||||||||||||||||||||
path |
|
The existing path or an available path between switchChannel1 and switchChannel2. This path uses the same syntax as a connection or disconnection list. If you pass NULL, this function returns the size of the buffer needed to allocate. | |||||||||||||||||||||
pathStatus |
|
The status of the requested path. The following values can be returned:
|
Return Value
Name | Type | Description |
---|---|---|
status | int32 | The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A negative value indicates an error. For this function, if you pass NULL for the buffer or 0 for the buffer size, this function returns the number of bytes needed to allocate. |