"Unable to load specified variable from file."

1 回表示 (過去 30 日間)
zozan tatar
zozan tatar 2023 年 10 月 26 日
コメント済み: zozan tatar 2023 年 10 月 28 日
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 件のコメント
Walter Roberson
Walter Roberson 2023 年 10 月 26 日
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 2023 年 10 月 28 日
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

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeFilename Construction についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by