Series 2600 System SourceMeters Reference Manual
Instrument Control Library 12-43
Return to
2600S-901-01 Rev. A / May 2006
exit
function
This function is used to terminate a script that is presently running.
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
function prior to calling
exit
.
Also see
“
format
attributes
The format attributes are used to configure the output formats used by the
printnumber
and
printbuffer
functions. These attributes are used to set the data format (ASCII or binary),
ASCII precision (number of digits) and binary byte order (normal or swapped).
exit
format.asciiprecision
Attribute
The precision (number of digits) for all numbers printed with the ASCII format.
Usage
precision = format.asciiprecision
-- Reads precision.
format.asciiprecision = precision
-- Writes precision.
precision
Set from 1 to 16.
Remarks
• This attribute selects the precision (number of digits) for data printed with the
,
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 (
reset
) precision is 6.
Also see
Example
Sets the ASCII precision to 7 digits and prints a number:
format.asciiprecision = 7
print(2.5)
Output: 2.00
Содержание SourceMeter 2600 Series
Страница 507: ...AppendixA Specifications Appendix A topics Model 2600S Specifications page A 2 2600S 901 01 Rev A May 2006...
Страница 575: ...AppendixF DisplayCharacterCodes Appendix F topics Introduction page F 2...
Страница 592: ......
Страница 593: ......