EasyManuals Logo

Tektronix Keithley 2601B-PULSE Reference Manual

Tektronix Keithley 2601B-PULSE
849 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 #451 background imageLoading...
Page #451 background image
Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 11: TSP command reference
2601B-PULSE-901-01A April 2020 11-93
fs.cwd()
This function returns the absolute path of the current working directory.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
path = fs.cwd()
path
The absolute path of the current working directory
Example
if fs.is_dir("/usb1/temp") == true then
fs.chdir("/usb1/temp")
testPath = fs.cwd()
print(testPath)
else
testPath = fs.cwd()
print(testPath)
end
Insert a USB flash drive into the front panel of the instrument.
Verify that /usb1/temp is a directory and change it to be the current working directory.
Set the variable for the current working directory to be testPath.
The return should be:
/usb1/temp
If /usb1/temp is not a directory, set the variable for the current working directory to be testPath.
The return should be:
/usb1
Also see
None
fs.is_dir()
This function tests whether or not the specified path refers to a directory.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
status = fs.is_dir("path")
status
Whether or not the given path is a directory (true or 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.

Table of Contents

Other manuals for Tektronix Keithley 2601B-PULSE

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix Keithley 2601B-PULSE and is the answer not in the manual?

Tektronix Keithley 2601B-PULSE Specifications

General IconGeneral
BrandTektronix
ModelKeithley 2601B-PULSE
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals