8: TSP command reference Model 2461 Interactive SourceMeter® Instrument
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
to a file named
on the USB flash drive.
Also see
buffer.make() (on page 8-14)
buffer.saveappend() (on page 8-16)
Reading buffers (on page 3-2)
Remote buffer operation (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
Usage
buffer.saveappend(bufferVar, filename)
buffer.saveappend(bufferVar, filename, timeFormat)
buffer.saveappend(bufferVar, filename, timeFormat, start, end)
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
A string that indicates the name of the file on the USB flash drive in which to save
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
Defines the starting point in the buffer to start saving data
Defines the ending point in the buffer to stop saving data