Fs.cwd() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual
Usage
workingDirectory = fs.chdir(path)
workingDirectory
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/")
Also see
None

fs.cwd()

This function returns the absolute path of the current working directory.
Type
TSP-Link accessible
Function
Yes
Usage
path = fs.cwd()
path
Also see
None
fs.is_dir()
This function tests whether or not the specified path refers to a directory.
Type
TSP-Link accessible
Function
Yes
Usage
status = fs.is_dir(path)
status
path
2651A-901-01 Rev. A / March 2011
Returned value containing the working path
A string indicating the new working directory path
Change the working directory to usb1.
Affected by
The absolute path of the current working directory
Affected by
Whether or not the given path is a directory (true or false)
The path of the file system entry to test
Where saved
Default value
Where saved
Default value
Section 7: Command reference
7-89

Advertisement

Table of Contents
loading

Table of Contents