How to import .dat file at 2021a version?

조회 수: 10 (최근 30일)
HyeongKeun Jeong
HyeongKeun Jeong 2022년 1월 5일
댓글: Christopher Bitikofer 2022년 10월 15일
I was trying to use "SimulinkRealTime.utils.getFileScopeData", and noticed this was removed at 2020b.
Then, any substitute should be given, but there were nothing in the document.
Which function could I use for import ".Dat" file?

채택된 답변

Sebastian K
Sebastian K 2022년 10월 14일
The following MATLAB Answers post contains a utility function to import File Scope data in more recent MATLAB releases such as R2020b and later.
  댓글 수: 1
Christopher Bitikofer
Christopher Bitikofer 2022년 10월 15일
Thank you so much for this! This is much appreciated!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Dimitri MANKOV
Dimitri MANKOV 2022년 1월 6일
Hi HyeongKeun,
In MATLAB R2020b and later, this function is no longer required because the file logging mechanism is not based on the legacy File Scope block anymore, and the .dat files you are referring to are no longer created on the target machine. Instead, a new File Log block is available, which does not require any manual data extraction. For more information, you can have a look at the following MATLAB Answers post:
Best,
Dimitri
  댓글 수: 3
Christopher Bitikofer
Christopher Bitikofer 2022년 10월 13일
Is there anyway we can get a solution for this? I have many legacy .dat files which I need to work with... Its not ideal to have to keep 2019a arround forever for this one util funciton... Would it be possible to pack the util and it's dependancies in an optionally downloadable addon?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by