Register_Card Previous topicNext topicFirst topicLast topic

Register_Card

@ Description

Initializes the hardware and software states of an NuDAQ PCI-bus data acquisition card, and then returns a numeric card ID that corresponds to the card initialized. Register_Card must be called before any other PCIS-DASK library functions can be called for that card. The function initializes the card and variables internal to PCIS-DASK library. Because NuDAQ PCI-bus data acquisition cards meets the plug-and-play design, the base address (pass-through address) and IRQ level are assigned by system BIOS directly.

@ Cards Support

6208V/6216V, 6208A, 6308V/08A, 7200, 7230, 7233, 7234, 7248, 7249, 7250, 7252, 7296, 7300A, 7432, 7433, 7434, 8554, 9111, 9112, 9113, 9114, 9116, 9118, 9812/10

@ Syntax

I16 Register_Card (U16 CardType, U16 card_num)

@ Parameter

CardType : The type of card to be initialized. ADLink will periodically upgrades PCIS-DASK to add support for new
                NuDAQ PCI-bus data acquisition cards and NuIPC CompactPCI cards. Please refer to Release Notes
                at the beginning of this manual for the card types that the current release of PCIS-DASK actually supports.
                Following are the constants defined in DASK.H that represent the NuDAQ PCI-bus data acquisition cards
                that DASK supports currently or in the near future:
                    PCI_6208V (for PCI-6208V/6216V)
                    PCI_6208A
                    PCI_6308V
                    PCI_6308A
                    PCI_7200 (for PCI-7200/cPCI-7200)
                    PCI_7230 (for PCI-7230/cPCI-7230)
                    PCI_7233 (for PCI-7233/PCI-7233H)
                    PCI_7234
                    PCI_7248 (for PCI-7248/cPCI-7248)
                    PCI_7249 (for cPCI-7249R)
                    PCI_7250
                    PCI_7252 (for cPCI-7252)
                    PCI_7296
                    PCI_7300A_RevA (for PCI_7300A_RevA/cPCI_7300A_RevA)
                    PCI_7300A_RevB (for PCI_7300A_RevB/cPCI_7300A_RevB)
                    PCI_7432 (for PCI-7432/cPCI-7432/cPCI7432R)
                    PCI_7433 (for PCI-7433/cPCI-7433/cPCI7433R)
                    PCI_7434 (for PCI-7434/cPCI-7434/cPCI7434R)
                    PCI_8554
                    PCI_9111DG
                    PCI_9111HR
                    PCI_9112 (for PCI-9112/cPCI-9112)
                    PCI_9113
                    PCI_9114DG
                    PCI_9114HG
                    PCI_9116 (for cPCI-9116)
                    PCI_9118DG
                    PCI_9118HG
                    PCI_9118HR
                    PCI_9810 (for PCI-9810/cPCI-9810)
                    PCI_9812 (for PCI-9812/cPCI-9812)
card_num : The sequence number of the card with the same card type (as defined in argument CardType) or belonging to
                the same card type series (Except PCI-7300A_RevA and PCI-7300A_RevB) plugged in the PCI slot. The card
                sequence number setting is according to the PCI slot sequence in the mainboard. The first card (in the most prior
                slot) is with card_num=0. For example, if there are one PCI-9111DG card (in the first PCI slot) and one PCI-9111HR
                card and two PCI-9112 cards plugged on your PC, the PCI-9111DG card should be registered with card_num=0,
                and the PCI-9111HR card with card_num=1. The PCI-9112 card in the prior slot should be registered with card_num=0,
                and the other one with card_num=1.

The following table categories the NuDAQ PCI devices by card type series.

@ Return Code

This function returns a numeric card id for the card initialized. The range of card id is between 0 and 31.
If there is any error occurs, it will return negative error code, the possible error codes are listed below:
ErrorTooManyRegisteredCards, ErrorUnknownCardType, ErrorOpenDriverFailed, ErrorOpenEventFailed