How do I save measurement data to a specified location on my computer? #268
-
I'm using tm_devices to program a Keithley 2612B SMU. So far, I've been able to conduct an I-V sweep and save the voltage and current data to two separate buffers that can be printed to the terminal. However, I am unsure of how to save the data stored in those buffers to a specific location on my PC. As an example, I am using the following code:
After running this, I'm unable to locate where the file is. Is there another function I could use instead that allows me to specify the file's location? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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.
See the 2612B manual for more information about how the smu commands work: https://download.tek.com/manual/2600BS-901-01_C_Aug_2016_2.pdf |
Beta Was this translation helpful? Give feedback.
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: