%% CANmsgIntro
%   
%% Get Vendors
info = canChannelList
%% Create CAN Channels
canch1 = canChannel('MathWorks','Virtual 1',1)
canch2 = canChannel('MathWorks','Virtual 1',2)
%% Configure Bus Speed 1
configBusSpeed(canch1,250000)
canch1.BusSpeed
%% View Bus Speed 1
canch1
%% Configure Bus Speed 2
configBusSpeed(canch2,250000)
%% Start Channels
start(canch1)
start(canch2)
canch1
%% Create Message
messageout = canMessage(500,false,8)
%% Pack Message
pack(messageout,25,0,16,'LittleEndian')
messageout.Data
%% Transmit Message
transmit(canch1,messageout)
canch1
%% View Available Messages
canch2
%% Receive Message
messagein = receive(canch2,1)
%% View Reception Channel
canch2
%% Unpack Message
value = unpack(messagein,0,16,'LittleEndian','int16')


%% 
% Copyright 2012 The MathWorks, Inc.