File.usbdriveexists(); File.write() - Keithley DMM7510 Reference Manual

7 1/2 digit graphical sampling multimeter
Hide thumbs Also See for DMM7510:
Table of Contents

Advertisement

Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual

file.usbdriveexists()

This function detects if a USB flash drive is inserted into the front-panel USB port.
Type
TSP-Link accessible
Function
No
Usage
driveInserted = file.usbdriveexists()
driveInserted
Details
You can call this command from a script to verify that a USB flash drive is inserted before attempting
to write data to it.
Example
print(file.usbdriveexists())
Also see
None

file.write()

This function writes data to a file on the USB flash drive.
Type
TSP-Link accessible
Function
No
Usage
file.write(fileNumber, string)
fileNumber
string
Details
The file.write() function may buffer data; it may not be written to the USB flash drive
immediately. Use the file.flush() function to immediately write buffered data to the drive.
You must use the file.close() command to close the file after writing.
DMM7510-901-01 Rev. B / May 2015
Affected by
Where saved
0: No flash drive is detected
1: Flash drive is detected
Affected by
Where saved
The file number returned from the file.open() function to write
The data to write to the file
Section 8: TSP command reference
Default value
If the USB flash drive is not inserted in the USB
port on the front panel, this returns 0.
Default value
8-213

Advertisement

Table of Contents
loading

Table of Contents