User manual

Series 3700 System Switch/Multimeter Reference Manual Section 13: Instrument Control Library (ICL)
3700S-901-01 Rev. C / July 2008 13-187
fs.readdir()
Function
Returns a list of all the file system entries within a specified directory.
Usage
files = fs.readdir(path)
files: A list containing the names of all the file system entries that reside in the
specified directory.
path: The directory path. This path may be absolute or relative to the current working
directory.
Remarks
This command is non-recursive (that is, entries in subfolders are not returned). An
error is logged to the error queue if the given path does not exist, or does not
represent a directory.
fs.rmdir()
Function
Removes a directory from the file system.
Usage
fs.rmdir(path)
path: The path of the directory to remove. This path may be absolute or relative to the
current working directory.
Remarks
An error is logged to the error queue if the given path does not exist, does not
represent a directory, or if the directory is not empty.
gpib attributes
Use the following attribute to set the GPIB address.
gpib.address
Attribute
GPIB address.
Usage
To read the GPIB address:
address = gpib.address
To write the GPIB address:
gpib.address = address
address: Set from 0 to 30. Default is 16.
Remarks
A new GPIB address takes effect when the command is processed. If there are
response messages in the output queue when this command is processed they
must be read at the new address.
The user should allow ample time for the command to be processed before
attempting to communicate with the instrument again. After sending this
command, make sure to use the new address to communicate with the
instrument.
The GPIB address is stored in non-volatile memory. The reset function has no
effect on the address.