EasyManuals Logo

Tektronix KEITHLEY 2600B Series User Manual

Tektronix KEITHLEY 2600B Series
834 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 #426 background imageLoading...
Page #426 background image
Series 2600B System SourceMeter® instrument Reference Manual Section 9: TSP command reference
2600BS-901-01 Rev. F/August 2021 9-105
Also see
fs.is_file() (on page 9-105)
fs.is_file()
Tests whether the specified path refers to a file (as opposed to a directory).
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
status = fs.is_file("path")
status
true if the given path is a file; otherwise, false
path
The path of the file system entry to test
Details
The file system path may be absolute or relative to the current working system path.
Example
rootDirectory = "/usb1/"
print("Is file: ", fs.is_file(rootDirectory))
Insert a USB flash drive into the front panel of the instrument.
Set rootDirectory to be the USB port.
Check to see if rootDirectory is a file. Because rootDirectory was set up as a directory, the return is
false.
Also see
fs.is_dir() (on page 9-104)
fs.mkdir()
This function creates a directory at the specified path.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
path = fs.mkdir("newPath")
path
The returned path of the new directory
newpath
Location (path) of where to create the new directory
Details
The directory path may be absolute or relative to the current working directory.
An error is logged to the error queue if the parent folder of the new directory does not exist, or if a file
system entry already exists at the given path.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix KEITHLEY 2600B Series and is the answer not in the manual?

Tektronix KEITHLEY 2600B Series Specifications

General IconGeneral
BrandTektronix
ModelKEITHLEY 2600B Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals