Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

isConnected

Return connection status

Syntax

isConnected(xcpch)

Description

example

isConnected(xcpch) returns a boolean value to indicate active connection to the slave.

Examples

collapse all

Create a new XCP channel and see if it is connected.

a2l = xcpA2L('XCPSIM.a2l')
xcpch = xcpChannel(a2lfile, 'CAN', 'Vector', 'Virtual 1', 1)
isConnected(xcpch)
ans =

     0

Input Arguments

collapse all

XCP channel, specified as an XCP channel object created using xcpChannel. The XCP channel object can then communicate with the specified slave module defined by the A2L file.

See Also

Introduced in R2013a

Was this topic helpful?