Hello!
I have prepared a sample which I can share. I the attached ZIP-file you will find a DBC-database, a BLF-trace and two scripts.
The first script (test.m) does not work.
candb = canDatabase('TestDBC.dbc');
Data = blfread('Test_002.blf',1, "Database", candb);
plot(Data.Time);
plot(Data.Signals.Speed);
The last command is like suggested, but will be denied.
The second script (test2.m) is my workaround.
candb = canDatabase('TestDBC.dbc');
Data = blfread('Test_002.blf',1, "Database", candb, "CANStandardFilter", 291);
for i=1:size(Data,1)
stest(i)=Data.Signals{i,1}.Speed;
end
test=timetable(Data.Time,stest.');
plot(test.Time,test.Var1);
This script works, but is there no shorter way to get the same result?
Thanks