configBusSpeed
Set bit timing rate of CAN channel
Syntax
Description
configBusSpeed(
sets the speed of the CAN channel in a direct form that uses baseline bit timing
calculation factors.canch
,busspeed
)
Unless you have specific timing requirements for your CAN connection, use the direct form of
configBusSpeed
. Also note that you can set the bus speed only when the CAN channel is offline. The channel must also have initialization access to the CAN device.Synchronize all nodes on the network for CAN to work successfully. However, over time, clocks on different nodes will get out of sync, and must resynchronize.
SJW
specifies the maximum width (in time) that you can add toTSeg1
(in a slower transmitter), or subtract fromTSeg2
(in a faster transmitter) to regain synchronization during the receipt of a CAN message.This function does not support SocketCAN devices.
configBusSpeed(
sets the arbitration and data bus speeds of canch
,arbbusspeed
,databusspeed
)canch
using
default bit timing calculation factors for CAN FD. This syntax supports
NI™ and MathWorks® virtual devices.
configBusSpeed(
sets the data and arbitration bus speeds of canch
,arbbusspeed
,arbSJW
,arbTSeg1
,arbTSeg2
,databusspeed
,dataSJW
,dataTSeg1
,dataTSeg2
)canch
using the
specified bit timing calculation factors in an advanced form for CAN FD. This
syntax supports Kvaser and Vector devices.
Examples
Input Arguments
Version History
Introduced in R2009a