User`s guide

1 Getting Started
1-22
canch1
MATLAB displays the updated status of the channel:
Summary of CAN Channel using 'Vector' 'CANcaseXL 1' Channel 1.
Channel Parameters: Bus Speed is 250000.
Bus Status is 'ErrorPassive'.
Transceiver name is 'CANpiggy 251mag (Highspeed)'.
Serial Number of this device is 24811.
Initialization access is allowed.
No database is attached.
Status: Online.
1 messages available to RECEIVE.
1 messages transmitted since last start.
0 messages received since last start.
Filter History: Standard ID Filter: Allow All | Extended ID Filter: Allow All.
In the Status section, messages transmitted since last start count
increments by 1 each time you transmit a message.
Refer to the transmit function to understand more about the input arguments.
Receive a Message
After your channel is online, use the receive function to receive available messages. For
this example, receive the message on the second configured channel object, canch2.
1
To see messages available to be received on this channel, type:
canch2
The channel status displays available messages:
.
.
.
Status: Online.
1 messages available to RECEIVE.
0 messages transmitted since last start.
0 messages received since last start.
2
To receive one message from canch1 and store it as messagein, type:
messagein = receive(canch2, 1)
MATLAB returns the received message properties:
messagein =