Documentation

This is machine translation

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

Hardware Connection

CAN hardware connection and configuration

Hardware connection functions define a connection to a CAN interface hardware that establishes a physical connection to a CAN bus.

Functions

canHWInfo Information on available CAN devices
canChannel Construct CAN channel connected to selected device
discard Discard all messages from CAN channel
CAN.VendorInfo Display available device vendor information
CAN.ChannelInfo Display device channel information
configBusSpeed Set bit timing rate of CAN channel
canTool Open Vehicle CAN Bus Monitor

Properties

BusLoad Load on CAN bus
Database Store CAN database information
MessageReceivedFcn Specify function to run
MessageReceivedFcnCount Specify number of messages available before function is triggered
OnboardTermination Configure bus termination on device
Running Determine status of channel
SilentMode Specify if channel is active or silent
StartTriggerTerminal Specify start trigger source terminal
TransceiverName Name of device transceiver
TransceiverState Display state or mode of transceiver
UserData Enter custom data
Device Display channel device type
Device(NI) Display NI CAN channel device type
DeviceChannelIndex Display device channel index
DeviceSerialNumber Display device serial number
DeviceVendor Display device vendor name
InitializationAccess Determine control of device channel
BusSpeed Bit rate of bus
NumOfSamples Display number of samples available to channel
SJW Synchronization jump width (SJW) of bit time segment
TSEG1 Display amount that channel can lengthen sample time
TSEG2 Display amount that channel can shorten sample time

Blocks

CAN Configuration Configure parameters for specified CAN device

Examples and How To

Discover Installed Hardware

Get information about the CAN hardware devices on your system:

Create a CAN Channel

This example assumes that you have a loopback connection between the two channels on your CAN device.

Configure Silent Mode

The SilentMode property of a CAN channel specifies that the channel can only receive messages and not transmit them.

Concepts

Vehicle CAN Bus Monitor

Getting to know your Vehicle CAN Bus Monitor

Was this topic helpful?