Skip to content

How do I save measurement data to a specified location on my computer? #268

Closed Answered by SydTenaglia
vuhoang8 asked this question in Q&A
Discussion options

You must be logged in to vote

The savebuffer() command saves the specified buffer to a USB flash drive inserted into the instrument front panel. The 2612B cannot access the file structure of a host PC, but you have a couple of options for work arounds:

You can save data to a USB drive that's plugged into the instrument and then transfer the data from the USB manually.
You can copy/paste the data printed to the terminal into excel
Or you can use the printbuffer(startIndex, endIndex, bufferVar, bufferVar2) command to return the buffer data to the pc and do some file manipulation within python:

def write_readings_to_file(file_path, floats):
    # This function writes the floating point data to the
    # target file.

   …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vuhoang8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested TSP Test Script Processing
2 participants