12 general purpose timer/counter functions – ADLINK cPCI-9116 User Manual

Page 87

Advertising
background image

C++ Library

• 77

6.11.3 _9116_GetOverrunStatus

@ Description

When you perform continuous scan data acquisition with
double-buffered mode DMA transer but you do not use
_9116_DblBufferTransfer() to copy converted data then circular buffer
overrun will occur. You can use this function to check overrun counts.

@ Syntax

C/C++ (DOS)

int _9116_GetOverrunStatus(I16 card_number, U32 *overrun_cnt)

@ Argument

card_number:

the card number of the cPCI-9116 to be initialized,
totally 4 cards can be initialized, valid card
numbers are CARD_1, CARD_2, CARD_3,
CARD_4.

overrunCount:

number of overrun counts.

@ Return Code

ERR_NoError

6.12 General Purpose Timer/Counter functions

6.12.1 _9116_GP0_Set_Mode

@ Description

This function is used to select operation mode of GPTC. Please refer to
5.3 for the details.

@ Syntax

C/C++ (DOS)

int _9116_GP0_Set_Mode( I16 card_number, U16 mode)

@ Argument

card_number:

the card number of the cPCI-9116 to be initialized,
totally 4 cards can be initialized, valid card
numbers are CARD_1, CARD_2, CARD_3,
CARD_4.

Mode: 0: mode0 operation
1: mode1 operation

Advertising