A.1.2 release_card, A.1.2, Release_card – ADLINK EOS-1200 User Manual

Page 55

Advertising
background image

Function Library

43

EOS-1200

supports that card. These are the constants defined in
DASK.H that represent the NuDAQ PCI-bus data acquisi-
tion cards supported by PCIS-DASK:

PCMe_1432

card_num

Sequence number of the card with the same card type (as
defined in argument CardType) or that belongs to the same
card type series (except PCI- 7300A_Rev. A and PCI-
7300A Rev. B) in the PCI slot. card_num is always equal to
0 for PCMe-1432.

Return Code

Returns a numeric card ID for the initialized card. The card ID
range is between 0 and 31. If any error occurs, a negative error
code is returned, with possible error codes as follows:

ErrorTooManyCardRegistered
ErrorUnknownCardType
ErrorOpenDriverFailed
ErrorOpenEventFailed

A.1.2

Release_Card

Description

A maximum of 32 cards can be registered simultaneously.
This function informs the PCIS-DASK library that the regis-
tered card is not currently in use and can be released.
Releasing a card clears space for a new card to register.
This function is also applied at the end of a program to
release all registered cards.

Syntax

C/C++

I16 Release_Card (U16 CardNumber)

Visual Basic

Release_Card (ByVal CardNumber As Integer) As
Integer

Advertising