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.

canChannelList

Information on available CAN devices

Syntax

chans = canChannelList

Description

example

chans = canChannelList returns a table of information about available CAN devices.

Examples

collapse all

View available CAN devices and programmatically read a device's supported protocol modes.

chans = canChannelList
chans =

  4×6 table

      Vendor         Device       Channel    DeviceModel    ProtocolMode     SerialNumber
    ___________    ___________    _______    ___________    _____________    ____________

    "MathWorks"    "Virtual 1"    1          "Virtual"      "CAN, CAN FD"    "0"
    "MathWorks"    "Virtual 1"    2          "Virtual"      "CAN, CAN FD"    "0"
    "Vector"       "Virtual 1"    1          "Virtual"      "CAN"            "0"
    "Vector"       "Virtual 1"    2          "Virtual"      "CAN"            "0"
pm = chans{3,5}
pm = 

    "CAN"
pm = chans{3,'ProtocolMode'}
pm = 

    "CAN"

Output Arguments

collapse all

Information on available CAN devices, returned as a table. To access specific elements, you can index into the table.

See Also

Functions

Introduced in R2017b

Was this topic helpful?