User manual
Section 13: Instrument Control Library (ICL)  Series 3700 System Switch/Multimeter Reference Manual 
13-188  3700S-901-01 Rev. C / July 2008 
gpib.address 
Example 
To set the GPIB address of the Series 3700 to 26 and then read the address: 
gpib.address = 26 
address = gpib.address 
print(address)   2.600000e+01 
io functions 
Use the io commands when you need to manipulate file input or output with 
Series 3700 instruments. These commands open and close file descriptors and 
perform basic I/O operations on a pair of default files, one input and one output. 
io.close() 
Function 
Closes the specified file. 
Usage 
io.close(file) 
file: A file descriptor to flush and close 
Remarks 
This command is equivalent to file:close() (on page 9-10). 
io.flush() 
Function 
Flush the buffered data for the current output file. 
Usage 
io.flush() 
Remarks 
Use this command to flush data written to the current default file by file:write() 
(on page 9-11) or io.write() (on page 9-14). Using this command removes the 
need to close a file after writing to it and allows it to be left open to write more data. 
Data may be lost if the file is not closed or flushed before an application ends. To 
prevent the loss of data if there is going to be a time delay before more data is written 
when you want to keep file open and not close it, flush the file after writing to it. 
io.input() 
Function 
Assigns a previously opened file, or opens a new file, as the default input file. 
Usage 
io.input(filein) 
fileout = io.input() 
filein: A file descriptor to assign or the path of a file to open as the default input file. 
The path may be absolute or relative to the current working directory. This parameter 
is optional; if absent, the command returns the absolute path to the current default 
input file (fileout). 
fileout: The absolute path to the default input file. 
Remarks 
Any error encountered is logged to the error queue. 
The remotely-accessible version of this command does not accept a file descriptor 
parameter. 










