ADLINK PCM-9112+ User Manual

Page 61

Advertising
background image

C/C++ Library

53


_9112_AD_Set_Mode(CARD_1, AD_MODE_4 );
printf( "Now, The Internal Timer Pacer trigger is set

\n" );


/* All A/D conversion will be trigger by internal timer

pacer, and the converted data should be transfered
in the interrupt service routine. (ISR). */

}

5.11 _9112_AD_Set_Autoscan

@ Description

This function is used to enable or disable an automatic hardware
channel scan. If the PCI-9112 is set as enable mode, then the A/D
channel can be converted automatically, that is, the hardware will
automatically decrement until it reaches channel 0. Then, loop back to
the channel it started from and continue decrementing again. For
example, the channel is set as 4, the A/D conversion sequence will be
4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3,

If the auto-scan is set to disable, the scan will scan a single channel
only, such as channel 4.

@ Syntax

Visual C++ (Windows-95)

int W_9112_AD_Set_Autoscan (int card_number, int autoscan)

Visual Basic (Windows-95)

int W_9112_AD_Set_ Autoscan (ByVal card_number As Long,

ByVal autoscan As Long) As Long

C/C++ ( DOS)

int _9112_AD_Set_Autoscan (int card_number, int autoscan)

@ Argument

card_number:

the card number of PCI-9112

autoscan: TRUE or FALSE

@ Return Code

ERR_NoError, ERR_BoardNoInit

@ Example

See the demo program ‘AD_DEMO4.C'

Advertising