Adlink ACL-8112 Series Instrukcja Użytkownika Strona 71

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 94
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 70
C Language Library
63
7.7 _8112_AD_Input_Mode
Description
This function is only used with the ACL-8112 ver. B series.
The ACL-8112 offers either 16 single-ended analog input channels or 8
differential analog input channels. If the ACL-8112 ver B card is used,
you have to call this function to initialize the A/D operation.
Syntax
int _8112_AD_Input_Mode( int ad_mode )
Argument:
ad_ch_mode:
SINGLE_ENDED
: the analog inputs are single-ended
mode.
DIFFERENTIAL
: the analog inputs are differential.
Return Code:
ERR_NoError
ERR_BoardNoInit
ERR_InvalidADChannel
Example:
#include “8112.h”
main()
{
int j;
_8112_Initial( CARD_1, A8112B_DG, 0x210 );
/* Assume ERR_NoError when Initialize ACL-8112 */
_8112_Initial( CARD_2, A8112B_HG, 0x220 );
/* Assume ERR_NoError when Initialize ACL-8112 */
_8112_AD_Input_Mode( DIFFERENTIAL) ;
/* set analog input mode as “differential” mode */
/* if this function is not called, the default input
mode is single-ended mode */
Przeglądanie stron 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 93 94

Komentarze do niniejszej Instrukcji

Brak uwag