How to import .dat file at 2021a version?

17 views (last 30 days)
HyeongKeun Jeong
HyeongKeun Jeong on 5 Jan 2022
Commented: Mark Walker on 16 Apr 2022
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?

Answers (1)

Dimitri MANKOV
Dimitri MANKOV on 6 Jan 2022
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
  1 Comment
Mark Walker
Mark Walker on 16 Apr 2022
This is true, but the ability to read in archived .dat files that were created with the original File Scope block should have been maintained. As it stands, the only way to do this seems to be to maintain a legacy pre-2020b version of MATLAB.

Sign in to comment.

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by