Is it possible to call a Matlab function to load the data?
In my Matlab, I use this code to obtain the same data:
bagselect_io = select(bag, 'Topic', '/robo/io');
readMsg_io = readMessages(bagselect_io);
io_data = zeros(size(readMsg_io,1),32);
for i = 1:size(readMsg_io,1)
C = strsplit(readMsg_io{i,1}.Data,',');
io_data(i,:) = str2double(C);
end
External Current Sensor %%%
curr_sensors_time = io_data(:,1) - io_data(1,1);
curr_sensors_time(elements:end,:,:)=[];
currTmp = io_data(:,6:7) - 2410; % current data from the external sensors
currTmp = [ currTmp(:,1), currTmp(:,2); ];
curr_sensors = -(currTmp)*(300/5000)*0.5*0.92;
curr_sensors(elements:end,:,:)=[];
cuurent_sensor_data = [curr_sensors_time, curr_sensors(:,1), curr_sensors(:,2)];
I can't use it inside Simulink, unfortunately.