writersp
Writes data in a RSP file.
Attention: Available only with Twin Activate commercial edition.
Syntax
writersp(filename, timedata, data, headers, padding)
Inputs
- filename
- Path of the file.
- timedata
- Time channel data. Time channel should be evenly distributed.
- data
- Data channel data.
- headers
- Header of time channel followed by header of data channels.
- padding
- Number of points written to Rsp file is power of 2. Minimum number of points is 512.
Examples
Basic writersp example:
writersp('test1.rsp',[1,2,3],[11,12,13; 21, 22, 23])
Writing with headers example:
writersp('test2.rsp',[1,2,3],[11,12,13; 21, 22, 23],{'Time';'data1';'data2'})
Padding last point example:
writersp('test3.rsp',[1,2,3],[11,12,13; 21, 22, 23],{'Time';'data1';'data2'},'lastpoint')