
Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
8-16
2461-901-01 A/November 2015
Example 1
buffer.save(MyBuffer, "/usb1/myData.csv")
Save all reading and default time information from a buffer named
MyBuffer
to a file named
myData.csv
on
the USB flash drive.
Example 2
buffer.save(MyBuffer, "/usb1/myDataRel.csv", buffer.SAVE_RELATIVE_TIME)
Save all readings and relative timestamps from
MyBuffer
to a file named
myDataRel.csv
on the USB flash
drive.
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 8-14)
(on page 8-16)
(on page 3-2)
(on page 3-23)
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