DAQmxSwitchConnect
int32 DAQmxSwitchConnect (const char switchChannel1[], const char switchChannel2[], bool32 waitForSettling);
Purpose
Makes a connection between two switch channels. When using this function, specify only the two connection endpoints using switchChannel1 and switchChannel2. The function then attempts to find an available path between the two channels.
Parameters
Input | ||
Name | Type | Description |
---|---|---|
switchChannel1 |
|
The first channel to connect. |
switchChannel2 |
|
The second channel to connect. |
waitForSettling | bool32 | If TRUE, this function waits for the switches to settle before returning. If FALSE, the function returns immediately after the operation. |
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 positive value indicates a warning. A negative value indicates an error. |