2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-15
Example 3
buffer.save(defbuffer1, "/usb1/defbuf1data", buffer.SAVE_RAW_TIME)
Save readings and raw time stamps from
defbuffer1
to a file named
defbuf1data
on the USB flash drive.
Also see
(on page 14-12)
(on page 14-15)
(on page 6-25)
buffer.saveappend()
This function appends data from the reading buffer to a file on the USB flash drive.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
buffer.saveappend(
bufferVar
, "
filename"
)
buffer.saveappend(
bufferVar
, "
filename"
,
timeFormat
)
buffer.saveappend(
bufferVar
, "
filename"
,
timeFormat
,
start
,
end
)
bufferVar
Indicates the reading buffer to use; the default buffers (
defbuffer1
or
defbuffer2
) or the name of a user-defined buffer; if no buffer is specified,
defbuffer1
is used
fileName
A string that indicates the name of the file on the USB flash drive in which to save the
reading buffer
timeFormat
Indicates how date and time information from the buffer is saved in the file on the
USB flash drive; the values are:
Save dates, times, and fractional seconds:
buffer.SAVE_FORMAT_TIME
Saves relative timestamps:
buffer.SAVE_RELATIVE_TIME
Saves seconds and fractional seconds:
buffer.SAVE_RAW_TIME
Saves timestamps:
buffer.SAVE_TIMESTAMP_TIME
start
Defines the starting point in the buffer to start saving data
end
Defines the ending point in the buffer to stop saving data
Details
If the file you specify does not exist on the USB flash drive, this command creates the file.
For options that save more than one item of time information, each item is comma-delimited. For
example, the default format is date, time, and fractional seconds for each reading.
The file extension
.csv
is appended to the filename if necessary. Any file extension other than
.csv
generates an error.
The index column entry in the
.csv
file starts at 1 for each append operation.