User's Manual
14
3.3. CARD LEVEL FUNCTIONS
#
Brief
Description
Name
Arguments (in C Syntax)
Full Description
1
Supply a
‘Card Handle’
to the n-th EN-
EIC-325-PCI
card (if exists).
(First n is 0.)
GetCardHandle
(long* CardHandle,
short CardIndex)
Call this function in loop in your initialization.
Start with CardIndex=0 and increment it each iteration.
Stop the loop upon receiving a ‘failure’ (0) return code from the
function.
For each iteration (denoting CardIndex by ‘n’):
If the n-th EN-EIC-325-PCI card is detected:
* CardHandle is set to a handle to current card, to be used by you
as card’s identifier in all other functions. Save this CardHandle.
In case you have more than one EN-EIC-325-PCI card, use an
array
for the ‘save’ operation.
* Return Code is set to 1 (‘success’).
Otherwise (no ‘fresh’ card detected):
* CardHandle is irrelevant.
* Return Code is set to 0 (‘failure’).
2
Supply the
Revision ID of
current card.
GetRevisionID
(long CardHandle,
short* RevisionID)
Sets RevisionID to the Revision ID of current EN-EIC-325-PCI
card.
3
Set a LED
SetLed
(long CardHandle,
short LedNumber,
short OnOffMode)
Turns the specified LED on or off. Useful to check primary
communication with the card. Except when turning both LEDs on,
has no functional significance. Turning both LEDs on has same
effect as RequestPositionCounter (CardHandle, Encoder4, 0),
i.e., simultaneous request for all four axes.
4
Get a LED
GetLed
(long CardHandle,
short LedNumber,
short* OnOffMode)
Gets the current status (on or off) of the specified LED.
Note: The description of the common arguments is in section 3.6
3.4. CHIP LEVEL FUNCTIONS
3.4.1. ACTIVE CHIP