This is machine translation

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

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


Information on available CAN devices


chans = canChannelList



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


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 = 

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


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


Introduced in R2017b

Was this topic helpful?