"Unable to load specified variable from file."

2 vues (au cours des 30 derniers jours)
zozan tatar
zozan tatar le 26 Oct 2023
Commenté : zozan tatar le 28 Oct 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 commentaires
Walter Roberson
Walter Roberson le 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 le 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

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Filename Construction dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by