How to read ASCII data file directly by Simulink FMU and dynamically create a multidimentional table?

1 visualización (últimos 30 días)
Hi!
I have the following situation in Simulink that I need to solve and hope to get someone in the community to be instigated on how to solve it.
I have a FMU exported from Simulink that currently has a multidimentional table that is loaded from the Matlab workspace. So everytime that this table needs an update new values have to be loaded to Matlab workspace and the Simulink FMU has to be recreated. This is the process that I want to eliminate.
I want to have an ASCII file, that contains the table data, being read directly by the Simulink FMU and have them stored and the required tables dynamically built.
I've managed, with the help from the community, to build an S-function that reads one line of a text file directly in Simulink but, I can't manage to get all data for the table to be read and the table created.
Also, once the line is read I have to use a Zero-Order Hold to hold the signal during the simulation. I need all the data to be read once and stored also as constants.
Hope to catch someones interest to this challenge.
Thanks in advance,
Gustavo.

Respuestas (0)

Categorías

Más información sobre Simulink 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