function [] = CanScopeCallback(rxCh)

global Data1;
global Data2;
global Data3;


%SRC_ID = 2;  %Specific to Ruddder Controller

rxMsg = receive(rxCh, Inf);

if(~isempty(rxMsg))    
    jdx = unpack(rxMsg, 0, 16, 'LittleEndian', 'uint16');
    Data1(jdx+1) = cast(unpack(rxMsg, 16, 16, 'LittleEndian', 'int16'),'double');   
    Data2(jdx+1) = cast(unpack(rxMsg, 32, 16, 'LittleEndian', 'int16'),'double');   
    Data3(jdx+1) = cast(unpack(rxMsg, 48, 16, 'LittleEndian', 'int16'),'double');
end

end