function LoadDC_Callback(src,eventdata)

global BridgeDC LoadDC canch1 mode;

if(mode == 2)
  LoadDC = src.Value;
  
messageout = canMessage(AssembleCanID(SourceID(), 10, 0), true, 3);
pack(messageout, 222, 0, 8, 'LittleEndian');
pack(messageout, round(4096*LoadDC), 8, 16, 'LittleEndian');
transmit(canch1, messageout); 

disp(['Bridge DC = ' num2str(BridgeDC) '    Load DC = ' num2str(LoadDC)]);
else
    src.Value = .25;
end

end


