niSE_Connect
- Updated2023-02-21
- 2 minute(s) read
Connects the routes specified by the connection specification. When connecting, it may allow for multiconnection based on the multiconnection mode.
Function Prototype
NISEStatus __stdcall niSE_Connect( | NISESession sessionHandle, |
NISEConstString connectSpec, | |
NISEInt32 multiconnectMode, | |
NISEBoolean waitForDebounce); |
Parameters
Input
Name | Type | Description |
---|---|---|
sessionHandle | NISESession | The session referencing this NI Switch Executive virtual device session. |
connectSpec | NISEConstString | The string describing the connections to be made. The route specification strings are best summarized as a series of routes delimited by ampersands. The specified routes can be route names, route group names, or fully specified route paths delimited by square brackets. Refer to Route Specification Strings for more information. |
multiconnectMode | NISEInt32 | This value sets the connection mode for the function. The mode may be one of the following:
|
waitForDebounce | NISEBoolean | Waits (if true) for switches to debounce between its connect and disconnect operations. If false, it immediately begins the second operation after completing the first. The order of connect and disconnect operation is set by the Operation Order input. |
niSE_Connect Details
In the event of an error, the call to niSE_Connect attempts to undo any connections made so that the system is left in the same state that it was in before the call was made. Some errors can be caught before manipulating hardware, although it is feasible that a hardware call could fail causing some connections to be momentarily closed and then reopened.
If the wait for debounce parameter is set, the function does not return until the switch system has debounced.