Adlink ACL-8111 Bedienungsanleitung Seite 41

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 61
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 40
C/C++ Library for DOS
35
5.2 _8111_Initial
@ Description
An ACL-8111 card is initialized according to the card number and the
corresponding base address. Every ACL-8111 Multi-Function Data
Acquisition Card have to be initialized by this function before calling other
functions.
@ Syntax
int _8111_Initial(int card_number, int base_addresss )
@ Argument:
card_number: the card number to be initialized, only
two cards can be initialized, the card
number must be CARD_1 or CARD_2.
base_address:the I/O port base address of the card,
the default address on the hardware
setting is Hex 220.
@ Return Code:
ERR_NoError
ERR_InvalidBoardNumber
ERR_BaseAddressError
@ Example:
#include "8111.h"
main()
{
int ErrCode;
Errcode = _8111_Initial( CARD_1, 0x210 );
if ( ErrCode != ERR_NoError )
exit(0);
ErrCode = _8111_Initial( CARD_2, 0x220 );
if ( ErrCode != ERR_NoError )
exit(0);
...
}
Seitenansicht 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 60 61

Kommentare zu diesen Handbüchern

Keine Kommentare