User`s guide
13 Real-Time Workshop Rapid Simulation Target
13-8
This picture shows the resulting plot.
As a result the new data file is read and the simulation progresses to the stop
time as specified in the Solver page of the Simulation Parameters dialog box.
It is possible to have multiple instances of From File blocks in your Simulink
model.
Since
rsim does not place signal data into generated code, it reduces code size
and compile time for systems with large numbers of data points that originate
in From File blocks. The From File block requires the time vector and signals
to be data of type double. If you need to use data types other than double, use
a From Workspace block with the data specified as a structure. The workspace
data must be in this format:
variable.time
variable.signals.values
If you have more than one signal, the format must be:
variable.time
variable.signals(1).values
variable.signals(2).values