EasyManuals Logo

Tektronix Keithley SourceMeter 2470 Reference Manual

Tektronix Keithley SourceMeter 2470
995 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #721 background imageLoading...
Page #721 background image
2470
High Voltage SourceMeter Instrument Reference Manual Section 14:
TSP command reference
2470-901-01 Rev. A / May 2019 14-81
file.usbdriveexists()
This function detects if a USB flash drive is inserted into the front-panel USB port.
Type TSP-Link accessible
Affected by Where saved Default value
Function
No
Usage
driveInserted = file.usbdriveexists()
driveInserted
0: No flash drive is detected
1
: Flash drive is detected
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())
If the USB flash drive is not inserted in the
USB port on the front panel, this returns
0
.
Also see
None
file.write()
This function writes data to a file on the USB flash drive.
Type TSP-Link accessible
Affected by Where saved Default value
Function
No
Usage
file.write(fileNumber, "string")
fileNumber
The file number returned from the file.open() function to write
string
A string that contains the data to write to the file
Details
The file.write() function may include data that is buffering; 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.

Table of Contents

Other manuals for Tektronix Keithley SourceMeter 2470

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix Keithley SourceMeter 2470 and is the answer not in the manual?

Tektronix Keithley SourceMeter 2470 Specifications

General IconGeneral
BrandTektronix
ModelKeithley SourceMeter 2470
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals