Sensoray 118 Manual do Utilizador Página 16

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 38
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 15
Sensoray Model 118 Smart A/D™ Instruction Manual 14 Commands: Board Configuration
6 Commands
6.1 Board Configuration
6.1.1 GetProductID
Returns the Smart A/D model number. In the case of
model 118, the value 118 (decimal) is returned.
This command can be used as a diagnostic tool to help
you during application program development.
Driver
// Return the model number from a Smart A/D board.
USHORT GetProductID( USHORT BasePort )
{
SendByte( BasePort, CMD_EXTENDED );
SendByte( BasePort, XCMD_GET_PRODUCTID );
SendByte( BasePort, 0 );
return (USHORT) ReadWord( BasePort );
}
Example
// Get a board’s model number.
USHORT MyModelNum = GetProductID( MyBasePort );
Command: (240),(4),(0)
Response: (ModelNumMSB),(ModelNumLSB)
Vista de página 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 37 38

Comentários a estes Manuais

Sem comentários