PLECS 3.1 Online Help |
Write time stamps and signal values to a file.
System
While a simulation is running, the To File block writes the time stamps and the values of its input signals to a file. The file format can be either a text file with comma separated values (csv) or a MATLAB data file (mat). CSV files can be imported by all common spreadsheet tools like Microsoft Excel.
In a csv file a new row is appended for each time step. When writing to a MATLAB file the resulting data contains a column for each time step.
The first value for each data record is the simulation time of the current simulation step. The value is followed by the signal values of the input signal.