Adlink ACL-8111 Bedienungsanleitung Seite 46

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 61
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 45
40
C/C++ Library for DOS
5.7 _8111_DA
@ Description
This function is used to write data to D/A converters. There is a Digital-to-
Analog conversion channel on the ACL-8111. The resolution is 12-bit, i.e.
the range is from 0 to 4095.
@ Syntax
int _8111_DA(unsigned int data )
@ Argument:
data: D/A converted value, if the value is greater
than 4095, the higher 4-bits are negligent.
@ Return Code:
ERR_NoError
ERR_BoardNoInit
ERR_InvalidDAChannel
@ Example:
#include “aclerr.h”
#include “8111.h”
main()
{
_8111_Initial( CARD_1, 0x220 );
/* Assume NoError when Initialize ACL-
8111 */
/* if the hardware setting for DA output range
is 0~5V */
_8111_DA( 0x800 );
printf( "The output voltage is 2.5V
\n" );
}
A more complete program is provided in this software. 'DA_DEMO.C'
Seitenansicht 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 60 61

Kommentare zu diesen Handbüchern

Keine Kommentare