ADLINK cPCI-7300 User Manual

Page 75

Advertising
background image

C/C++ Libraries

• 67

W_7300_Int_Timer (ByVal card_number As Long, ByVal c2 As Integer)

As Long

C/C++ (DOS)

int _7300_Int_Timer (int card_number, U16 c2)

@ Argument

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

c2:

frequency divider of Counter #2. Valid value
ranges from 2 to 65535.

Note: Since the Integer type in Visual Basic is signed integer. It’s range is

within -32768 and 32767. In Visual Basic, if you want to set c2 as
value larger than 32767, please set it as the intended value minus
65536. For example, if you want to set c1 as 40000, please set c1 as
40000-65536 = -25536.

@ Return Code

NoError
PCICardNumErr
PCICardNotInit

5.26 _7300_Get_Sample

@ Description

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

@ Syntax

Visual C/C++ (Windows 95)

int W_7300_Get_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,

data_value As Long, ByVal portWidth As Long) As
Long

@ Argument

linearAddr:

The linear address of the allocated DMA memory.

index:

The index of the sample. The first sample is with
index 0.

dataValue:

The sample retrieved. The width of retrieved data
is different with the different portWidth value.

portWidth:

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

@ Return Code

NoError

Advertising