Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 358

Multimètre

Publicité

6
Command Reference
Example
10 OUTPUT 722;"STB?" !RETURNS THE WEIGHTED SUM OF ALL SET BITS
20 ENTER 722 !ENTERS RESPONSE INTO COMPUTER'S A VARIABLE
30 PRINT A !PRINTS RESPONSE
40 END
Assume the above program returns the weighted sum 24. This means the bits with
weighted values 8 (power-on) and 16 (ready for instructions) are set.
SUB
Subprogram. Stores a series of commands as a subprogram and assigns the
sub-program name.
Syntax
SUB name
name
Subprogram name. A subprogram name may contain up to 10 characters. The
name can be alpha, alphanumeric, or an integer from 0 to 127. When using an
alphanumeric name, the first character must be alpha. Alpha or alphanumeric
subprogram names must not be the same as multimeter commands or
parameters or the name of a stored state. The characters _ and ? can also be
included in an alpha or alphanumeric name.
When using an integer subprogram name (0 - 127), the multimeter assigns the
prefix SUB to the integer when the subprogram is stored. This differentiates an
integer subprogram name from an integer state name. For example, a
sub-program stored with the name 15 will be recorded as SUB15. The
subprogram can be accessed later using either the name 15 or SUB15. A
subprogram named 0 (zero) is designated the autostart subprogram (see 7th
Remark following).
Power-on name = none.
Default name = none; parameter required.
358
Keysight 3458A User's Guide

Publicité

loading