How to input a large data file in Simulink?

Hi,
I have a large quantity of sampling data which is about 500 MB. The data format is shown as below. I would use these data in Simulink. Each time step will read one row of data. I would like to know what block/function is a best way to read one row for each time step.

The concerns are as following:
1. The first 35 rows (This number is determined, no change for each file) should be bypassed (neglected);
2. The input data file extension is .csv

3. textscan seems useful for large input data file, but I have no idea about how to use it in Simulink.

> Hi,
> I have a large quantity of sampling data which is about 500 MB. The data
> format is shown as below. I would use these data in Simulink. Each time
> step will read one row of data. I would like to know what block/function
> is a best way to read one row for each time step.
>
> The concerns are as following:
> 1. The first 35 rows (This number is determined, no change for each
> file) should be bypassed (neglected);
> 2. The input data file extension is .csv
>
> 3. textscan seems useful for large input data file, but I have no idea
> about how to use it in Simulink.

AFIK, Simulink doesn't have a canned routine for parsing file headers. Seems likely you'll need to pre-process that
manually, or try one of the following from the library:

"From Workspace"
"user-defined function"

There may be a way to invoke "Import", but you'll need to do a bit of your own research. Apart from that -- try to
build your own S-function-based library model; strip-out the time vector and pass the data vector directly to your
Simulink model.
[...]

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.