Register_Card | ![]() ![]() ![]() ![]() |
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.
Card Type Series | Device Type |
PCI-6208 Series | PCI-6208V, PCI-6216V, PCI-6208A |
PCI-6308 Series | PCI-6308V, PCI-6308A |
PCI-7200/cPCI-7200 | PCI-7200/cPCI-7200 |
PCI-7230/cPCI-7230 | PCI-7230/cPCI-7230 |
PCI-7233 Series | PCI-7233/PCI-7233H |
PCI-7234 | PCI-7234 |
PCI-7248/cPCI-7248 | PCI-7248/cPCI-7248 |
PCI-7249 | cPCI-7249R |
PCI-7250 | PCI-7250 |
PCI-7252 | cPCI-7252 |
PCI-7296 | PCI-7296 |
PCI_7300A_RevA/ cPCI-7300A_RevA | PCI-7300A_RevA/cPCI-7300A_RevA |
PCI_7300A_RevB/ cPCI-7300A_RevB | PCI-7300A_RevB/cPCI-7300A_RevB |
PCI-7432/cPCI-7432 series | PCI-7432/cPCI-7432/cPCI-7432R |
PCI-7433/cPCI-7433 series | PCI-7433/cPCI-7433/cPCI-7433R |
PCI-7434/cPCI-7234 series | PCI-7434/cPCI-7234/cPCI-7434R |
PCI-8554 | PCI-8554 |
PCI-9111 Series | PCI-9111DG, PCI-9111HR |
PCI-9112/cPCI-9112 | PCI-9112/cPCI-9112 |
PCI-9113 | PCI-9113 |
PCI-9114 Series | PCI-9114DG, PCI-9114HG |
PCI-9116 | cPCI-9116 |
PCI-9118 Series | PCI-9118DG, PCI-9118HG, PCI-9118HR |
PCI-9812 Series | PCI-9812/cPCI-9812, PCI-9810/cPCI-9810 |
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