Series 3700 System Switch/Multimeter Reference Manual
Section 9
:
Instrument Control Library (ICL)
Document Number: 3700S-901-01 Rev. A / August 2007
9-127
exit function
Use this function to terminate a script that is presently running.
exit
Function
Stops execution of a script.
Usage
exit()
Remarks
Terminates script execution when called from a script that is being executed.
This command will not wait for overlapped commands to complete before terminating
script execution. If overlapped commands are required to finish, use the
waitcomplete
(on page 9-222)function prior to calling exit.
format attributes
Use the format attributes to configure the output formats used by the printnumber and printbuffer
functions. These attributes can set the data format (ASCII or binary), ASCII precision (number of
digits) and binary byte order (normal or swapped).
format.asciiprecision
Attribute
The precision (number of digits) for all numbers printed with the ASCII format.
Usage
To read precision:
precision = format.asciiprecision
To write precision:
format.asciiprecision = precision
precision
: Set from 1 to 16. Default value: 10.
Remarks
This attribute selects the precision (number of digits) for data printed with the print,
printnumber, and printbuffer functions. The precision attribute is only used with the
ASCII format. The precision must be a number between 1 and 16.
Note that the precision is the number of significant digits printed. There will always
be one digit to the left of the decimal point. Be sure to include this digit when
setting the precision.
The default and reset precision is 10.
Overflow readings (9.9E+37) may not appear as expected when ASCII precision is
set to 1 or 16 (the extreme values).
Also see
format.byteorder
(on page 9-128)
format.data
(on page 9-128)
printbuffer
(on page 9-155)
printnumber