"Unable to load specified variable from file."

1 Ansicht (letzte 30 Tage)
zozan tatar
zozan tatar am 26 Okt. 2023
Kommentiert: zozan tatar am 28 Okt. 2023
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 Kommentare
Walter Roberson
Walter Roberson am 26 Okt. 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 am 28 Okt. 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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Filename Construction finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by