

delete(gcf);

fclose('all');

clear all
close all


IntGain = 0.01*32767;

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

configBusSpeed(canch1, 125000);

start(canch1)

EID = AssembleCanID(3, 10, 0)  

messageout = canMessage(EID, true, 3);


pack(messageout,38, 0, 8, 'LittleEndian');
pack(messageout,IntGain, 8, 16, 'LittleEndian');

transmit(canch1, messageout);
