Measurement-computing Serial488/4 Manual do Utilizador Página 48

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 91
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 47
Section 3 Command Descriptions
3.9
Input Query I?
The Input Query command returns the number of characters available to be read
on the the IEEE bus from the selected serial port ( i.e. the port's serial input buffer ).
The Port Select command (
Pn
) is used to select the serial port regardless of addressing
mode in use.
I?
Return number of characters in the input buffer.
Example 1: Find the number of input characters available on port 1 using dual
primary addressing mode.
PRINT#1,"OUTPUT08;P1x"
select port 1
PRINT#1,"OUTPUT08;I?" request number of serial input characters
PRINT#1,"ENTER08"
INPUT#2,A$ read the response
PRINT A$
display shows
I00010
, 10 characters
Example 2: Find number of input characters available on port 1 using secondary
addressing mode.
PRINT#1,"OUTPUT0800;P1xI?"
select port 1 and request number of input
PRINT#1,"ENTER0800" characters available
INPUT#2,A$
read the response
PRINT A$
display shows
I00033
, 33 characters
Vista de página 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 90 91

Comentários a estes Manuais

Sem comentários