![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750407.webp)
Section 7: TSP command reference
Model 2657A High Power System SourceMeter® Instrument Reference Manual
7-94
2657A-901-01 Rev. B/December 2012
fs.chdir()
This function sets the current working directory.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
workingDirectory
= fs.chdir(
path
)
workingDirectory
Returned value containing the working path
path
A string indicating the new working directory path
Details
The new working directory path may be absolute or relative to the current working directory.
An error is logged to the error queue if the given path does not exist.
Example
testPath = fs.chdir("/usb1/")
Change the working directory to
usb1
.
Also see
None
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
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
Содержание 2657A
Страница 3: ......