ADLINK cPCI-7300 User Manual

Page 76

Advertising
background image

68

• C/C++ Libraries

5.27 _7300_Set_Sample

@ Description

For the language without pointer support such as Visual Basic, programmer
can use this function to write the output data to the index-th position in output
DMA buffer. This function is only available in Windows 95 version.

@ Syntax

Visual C/C++ (Windows 95)

int W_7300_Set_Sample (U32 linearAddr, U32 index, U32 data_value,

U32 portWidth)

Visual Basic (Windows 95)

W_7300_Get_Sample (ByVal linearAddr As Long, ByVal index As Long,

ByVal data_value As Long, ByVal portWidth As Long)
As Long

@ Argument

linearAddr:

The linear address of the allocated DMA memory.

index:

The position the data is written to. The first

sample is with index 0.

dataValue:

The data to put to output buffer. The data width
is different with the different portWidth value.

portWidth:

The port width of the digital output port. The
possible values are 8, 16, or 32.

@ Return Code

NoError

5.28 _7300_GetUnderrunStatus

@ Description

When you use _7300_DO_DMA_Start to output data, the output data is read
from the FIFO on the cPCI/PCI-7300A. If the FIFO becomes empty and next
data is read from the FIFO, underrun situation occurs. Using this function to
check underrun status.

@ Syntax

Visual C/C++ (Windows 95)

int W_7300_GetUnderrunStatus (int card_number, int *underrun)

Visual Basic (Windows 95)

int W_7300_GetUnderrunStatus (ByVal card_number As Long,

underrun As Long) As Long

C/C++ (DOS)

int _7300_GetUnderrunStatus (int card_number, int *underrun)

Advertising