ADLINK PCM-9112+ User Manual

Page 78

Advertising
background image

70

C/C++ Library

5.25 _9112_AD_Timer

@ Description

This function is used to setup Timer #1 and #2. Timer #1 and #2 are
used as frequency divider for generating constant A/D sampling rate. It
is possible to stop the pacer trigger by setting any one of the dividers as
0. Because the AD conversion rate is limited due to the conversion time
of the AD converter, the highest sampling rate of the PCI-9112 cannot
exceed 100 KHz. The multiplication of the dividers must be larger than
20.

@ Syntax

Visual C++ (Windows-95)

int W_9112_AD_Timer (int card_number, unsigned int c1,

unsigned int c2)

Visual Basic (Windows-95)

W_9112_Timer (ByVal card_number As Long, c1 As Long, c2

As Long) As Long

C/C++ ( DOS)

int _9112_AD_Timer(int card_number, unsigned int c1 ,

unsigned int c2 )

@ Argument

card_number:

the card number of PCI-9112

c1: frequency divider of timer #1
c2: frequency divider of timer #2

Note: the A/D sampling rate is equal to: 2MHz / (c1 * c2).

@ Return Code

ERR_NoError
ERR_BoardNoInit
ERR_InvalidTimerValue

Advertising