close all
clear all


global float1_0 float2_0;
global Int1_1 Int2_1 Int3_1 Int4_1;
global Int1_2 Int2_2 Int3_2 Int4_2;
global Int1_3 Int2_3 Int3_3 Int4_3;

canch1 = canChannel('PEAK-System', 'PCAN_USBBUS1');

%configBusSpeed(canch1, 1000000);
configBusSpeed(canch1, 125000);
start(canch1)


canch1.MessageReceivedFcnCount = 1;
canch1.MessageReceivedFcn = @TestFirmwareCanCallback;

%EID = AssembleCanID(3, 10, 0)  

%messageout = canMessage(EID, true, 3);


%pack(messageout,02, 0, 8, 'LittleEndian');
%pack(messageout,03, 8, 8, 'LittleEndian');
%pack(messageout,04, 16, 8, 'LittleEndian');

%transmit(canch1, messageout);
%messageout




