Skip to main contentdiagConnectChannel
Valid for: CANoe DE
Function Syntax
long diagConnectChannel(); // form 1
DiagConnectChannel(char ecuQualifier[]); // form 2
Description
Initiates the connection of a diagnostic channel. This function is called asynchronously, i.e., it immediately returns even if establishing the connection takes some more time. You can query the state of the diagnostic channel using diagIsChannelConnected. Additionally, you can wait until the connection is established using TestWaitForDiagChannelConnected.
For form 1, the channel the function refers to is set with the last call of diagSetTarget.
Parameters
- ecuQualifier: Qualifier of the ECU or target as set in the diagnostic configuration dialog for the respective diagnostic description.
Return Values
On success 0, otherwise error code.
Example
—