Agilent Technologies 8935 Series Manual do Utilizador Página 277

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 329
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 276
Chapter 8 277
IBASIC Controller
PROGram Subsystem
Example 8-26 Example setting the value of a one dimensional array [Array(5)]
with 6 elements
OUTPUT 714;"PROGram:SELected:NUMBer Array,0,1,2,3,4,5"
or
OUTPUT 714;"PROG:NUMB Array,0,1,2,3,4,5"
NOTE
Individual array elements cannot be set with the :NUMBer command.
Example 8-27 Example setting the value of a two dimensional array
[Array(1,2)] with 6 elements
OUTPUT 714;"PROGram:SELected:NUMBer Array,0,1,2,3,4,5"
or
OUTPUT 714;"PROG:NUMB Array,0,1,2,3,4,5"
Arrays are filled by varying the right-most dimension the fastest. After
executing the above statement the array values would be, Array(0,0)=0,
Array(0,1)=1, Array(0,2)=2, Array(1,0)=3, Array(1,1)=4, Array(1,2)=5.
NOTE
Individual array elements cannot be set with the :NUMBer command.
:NUMber? <varname> The :NUMBer? query command is used to
return, to an external controller, the current value of numeric variables
or arrays in an IBASIC program in the Test Set. <varname> is the
name of an existing numeric variable or array in the IBASIC program,
and can be sent as either character data (name not enclosed in quotes)
or string data (name enclosed in quotes).
NOTE
Attempting to send a <var_name> longer than 12 characters as
character data (<var_name> not enclosed in quotes) will generate the
following error: HP-IB Error: -112 Program mnemonic too long.
If the variable name <var_name> is longer than 12 characters it must
be sent as string data (<var_name> enclosed in quotes). For example,
OUTPUT 714;"PROG:NUMB ’Var_name’".
Vista de página 276
1 2 ... 272 273 274 275 276 277 278 279 280 281 282 ... 328 329

Comentários a estes Manuais

Sem comentários