

delete(gcf);

fclose('all');

clear all
close all


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

configBusSpeed(canch1, 1000000);

start(canch1)

EID = AssembleCanID(0, 1, 0)  

messageout = canMessage(EID, true, 8);

pack(messageout,0, 0, 16, 'LittleEndian');
pack(messageout,0, 16, 16, 'LittleEndian');
pack(messageout,128, 32, 16, 'LittleEndian');
pack(messageout,0, 48, 16, 'LittleEndian');

for i = 1:1
  transmit(canch1, messageout)
  %pause(.001);
end