Sensoray 118 Instrukcja Użytkownika Strona 16

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 38
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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)
Przeglądanie stron 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 37 38

Komentarze do niniejszej Instrukcji

Brak uwag