User`s guide

Building for the Rapid Simulation Target
13-11
<-s> Specifying a New Stop Time for an rsim Simulation
If a new stop time is not provided, the simulation will run until reaching the
value specified in the Solver page at the time of code generation. You can
specify a new stop time value as follows:
!rsimtfdemo -s 6.0
In this case, the simulation will run until it reaches 6.0 seconds. At this point
it will stop and log the data according to the MAT-file data logging rules as
described above.
If your model includes From File blocks that also include a time vector in the
first row of the time and signal matrix, the end of the simulation is still
regulated by the original setting in the Solver page of the
Simulation
Parameters
dialog box or from the -s option as described above. However, if
the simulation time exceeds the end points of the time and signal matrix (that
is, if the final time is greater than the final time value of the data matrix), then
the signal data will be extrapolated out to the final time value as specified
above.
<-t> Specifying New Output Filenames for To File BLocks
In much the same way as you can specify a new system output filename, you
can also provide new output filenames for data saved from one or more To File
blocks. This is done by specifying the original filename at the time of code
generation with a new name as follows:
!mymodel -t original.mat=replacement.mat
In this case, assume that the original model wrote data to the output file called
original.mat. Specifying a new filename forces rsim to write to the file
replacement.mat. This technique allows you to avoid over-writing an existing
simulation run.
<-w> Specifying a New MAT-file with From Workspace Data
The -w option allows you to specify the name of a new MAT-file containing
From Workspace signal data. The From Workspace block supports signals with
data types including: int8, uint8, int16, uint16, int32, uint32, float, double, and
the complex signals of these data types. MATLAB consists of one workspace in
which you can have a selection of variables containing signal data.
rsim,by
default, expects to find a MAT-file called
from_workspace.mat that contains
the same variables (in the structure format) including time and input signal).