"Unable to load specified variable from file."

2 visualizaciones (últimos 30 días)
zozan tatar
zozan tatar el 26 de Oct. de 2023
Comentada: zozan tatar el 28 de Oct. de 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 comentarios
Walter Roberson
Walter Roberson el 26 de Oct. de 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 el 28 de Oct. de 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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Filename Construction en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by