close all
clear all

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

configBusSpeed(canch1, 1000000);

start(canch1)


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

EID = AssembleCanID(1, 10, 0)  

messageout = canMessage(EID, true, 1);


pack(messageout,02, 0, 8, 'LittleEndian');
transmit(canch1, messageout);
messageout




