Hardware connection functions define a connection to a CAN interface hardware that establishes a physical connection to a CAN bus. The CAN Transmit Workflow shows how to pack and transmit CAN messages with MATLAB®. You can also employ event-based message transmission; load and replay messages. The CAN Receive Workflow shows how to receive and unpack CAN messages.
For building Simulink® models that use CAN blocks to transmit and receive messages on the network, see CAN Communication in Simulink.
|Build CAN message based on user-specified structure|
|Pack signal data into CAN message|
|Set CAN channel online|
|Send CAN messages to CAN bus|
|Retransmit messages from CAN bus|
|Receive messages from CAN bus|
|Attach CAN database to messages and remove CAN database from messages|
|Set CAN channel offline|
|Unpack signal data from CAN message|
|Select all instances of CAN message from message array|
|Select most recent CAN message from array of messages|
|Select CAN messages occurring within specified time range|
|Information on available CAN FD device channels|
|Construct CAN FD channel connected to specified device|
|Build CAN FD message based on user-specified structure|
|Convert CAN or CAN FD messages into timetable|
|Convert CAN FD messages for use as CAN Replay block output|
Discover CAN devices and communicate over a network.
Set up filters to accept messages based on specified parameters.
Observe and analyze message activity without affecting the network state or behavior.
Use multiplexing to represent multiple signals in one signal location in a CAN message’s data.
Emulate virtual CAN channels provided with the toolbox.