21 _7300_do_pg_start, Description, Syntax – ADLINK PCI-7300A User Manual

Page 96: Argument, Return code, Description @ syntax, Argument @ return code

Advertising
background image

84

C/C++ Libraries

5.21 _7300_DO_PG_Start

@ Description

The function will perform pattern generation with the data stored in
buff_ptr. It will takes place in the background which will not be stop
until your program execute _7300_DO_PG_Stop function to stop
the process.

@ Syntax

Visual C/C++ (Windows 95)

int W_7300_DO_PG_Start (int card_number, void

*buff_ptr, U32 count)

Visual Basic (Windows 95)

W_7300_DO_PG_Start (ByVal card_number As Long,

buff_ptr As Any, ByVal count As Long) As
Long

C/C++ (DOS)

int _7300_DO_PG_Start (int card_number, void

*buff_ptr, U32 count)

@ Argument

card_number:The card number of the PCI-7300A card.

buff_ptr:the start address of the memory buffer to store the out-

put data of pattern generation.

** This memory should be double-word alignment

count:the total number of pattern generation samples. The size of

the sample depends on the port configuration. For example, if port
is set as DO32, each sample contains 4 bytes; if port is set as
DI16DO8 or DI8DO8, each sample is 1 byte.

@ Return Code

NoError
PCICardNumErr
PCICardNotInit
DMATransferNotAllowed
InvalidDIOCount
BufNotDWordAlign

Advertising