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 #428 background image
Series 2600B System SourceMeter® instrument Reference Manual Section 9: TSP command reference
2600BS-901-01 Rev. F/August 2021 9-107
fs.rmdir()
This function removes a directory from the file system.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
fs.rmdir("path")
path
The path of the directory to remove
Details
This path may be absolute or relative to the present working directory.
An error is logged to the error queue if the given path does not exist or does not represent a directory.
An error is also logged if the directory is not empty.
Example
rootDirectory = "/usb1/"
tempDirectoryName = "temp"
if fs.is_dir(rootDirectory..tempDirectoryName) == false then
fs.mkdir(rootDirectory..tempDirectoryName)
end
fs.rmdir(rootDirectory..tempDirectoryName)
Insert a USB flash drive into the front panel of the instrument.
Set rootDirectory to be the USB port.
Set tempDirectoryName to be equivalent to temp.
Check to see if tempDirectoryName exists.
If it does not exist, create a directory named temp.
Remove the directory.
Also see
fs.mkdir() (on page 9-105)
gettimezone()
This function retrieves the local time zone.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
timeZone = gettimezone()
timeZone
The local time zone of the instrument

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