Can I import DAT files generated by Simulink Real-Time legacy File Scope blocks (R2020a or earlier) in R2020b or later releases?

10 views (last 30 days)
Up until the R2020a release, it was possible to import File Scope DAT files using the utility function SimulinkRealTime.utils.getFileScopeData. However, this function was discontinued in the R2020b as part of major changes in Simulink Real-Time, when File Scope blocks were replaced with File Log blocks.
If I still have DAT files generated by File Scope blocks from R2020a or an earlier release, how can I import them in a more recent release (R2020b or later)? 

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 14 Oct 2022
You can import DAT files generated by legacy File Scope blocks in more recent releases (R2020b or later) using the utility function "getLegacyFileScopeData" in the attached ZIP archive. This function uses the same input and output syntax as the SimulinkRealTime.utils.getFileScopeData function discontinued after the R2020a release. 
Please keep all contents of the ZIP archive in the same directory because the function depends on the other files in the archive.
Please note this is not a formally qualified and supported function, it is provided for convenience at the user's own discretion. The function was most recently tested in the R2022b release, and it might not work in a future MATLAB release.
  1 Comment
Sebastian K
Sebastian K on 2 Nov 2022
Hi @Christopher Bitikofer, can you confirm that the two DLL files "HostCommandObjects.dll" and "xPCFramework.dll" are in the current folder along with "getLegacyFileScopeData.p" when you invoke the function? That error can happen if one or both of those DLLs are missing. The DLLs should be included in the ZIP package.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!