"Unable to load specified variable from file."

2 views (last 30 days)
Is there anyone to help me about this error. I wanna use CAN messages for a project. But I couldn't replay the my records. Also I tried to a Matlab example but still I got the same error. What is the miss point in my programme?
I attached the my documents as zip. Also thee is the link of Matlab example.
link: openExample('vnt/demoVNTSL_CANReplayAndLogExample')
  2 Comments
Walter Roberson
Walter Roberson on 26 Oct 2023
load canData.mat
canFDMsgs = canFDMessageReplayBlockStruct(canFDMsgTimetable);
However there is no variable named canFDMsgTimetable in canData.mat -- the variable in canData.mat is named canData
zozan tatar
zozan tatar on 28 Oct 2023
thanks for help. I need ask you one more. I am using R2021b. I wrote the codes that in below. I got error "Can't create a std::string from this data.". How can I fix it?
load canData.mat
canMsgTimetable = blfread("example.blf");
canMsgTimetable = canMsgTimetable{1};
startTime = seconds(canMsgTimetable.Time(1))
stopTime = seconds(canMsgTimetable.Time(end))
Ts = 0.01;
startTime = round(startTime, 2);
stopTime = round(stopTime, 2);
canFDMsgs = canFDMessageReplayBlockStruct(canFDMsgTimetable);
save DriveReplayFD.mat canFDMsgs
whos

Sign in to comment.

Answers (0)

Categories

Find more on Filename Construction in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!