

delete(gcf);

fclose('all');

clear all
close all

global Int1_0 Int2_0 Int3_0 Int4_0;
global Int1_1 Int2_1 Int3_1 Int4_1;
global Int1_2 Int2_2 Int3_2 Int4_2;

Int1_0 = NaN; Int2_0 = NaN; Int3_0 = NaN; Int4_0 = NaN; 
Int1_1 = NaN; Int2_1 = NaN; Int3_1 = NaN; Int4_1 = NaN; 

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

configBusSpeed(canch1, 125000);

start(canch1)


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

