KPXI-CON-900-01 Rev. A / January 2007
Return to
A-3
KPXI System Controller User’s Manual
Appendix A: KPXI Trigger Function Description
Visual Basic
KPXITRIG_Close (ByVal CardNumber As Integer) As Integer
Parameters
CardNumber:
The card ID of the card that want to be released.
Return Value
NoError
KPXITRIG_GetGPIOBase
Description
Get the GPIO base address of the Model KPXI-CON controller.
Cards Supported: KPXI Series
Syntax
Microsoft C/C++ and Borland C++
I16 KPXITRIG_GetGPIOBase(U16 wCardNumber, U32 *BaseAddr)
Visual Basic
KPXITRIG_GetGPIOBase (ByVal CardNumber As Integer, BaseAddr
As Long) As Integer
Parameters
CardNumber:
The card ID of the card to retrieve the DPIO address.
Base Addr:
Returns the GPIO base address.
Return Value
NoError
KPXITRIG_Init
Description
Initializes the hardware and software states of a Model KPXI-CON controller
device, and returns a numeric card ID that corresponds to the card initialized.
KPXITRIG_Init must be called before any other Model KPXI-CON controller
library functions can be called for that card. The function initializes the card and
variables internal to the Model KPXI-CON controller library.
Cards Supported: KPXI Series
Syntax
Microsoft C/C++ and Borland C++
I16 KPXITRIG_Init (U16 card_num)
Visual Basic
KPXITRIG_Init (ByVal card_num As Integer) As Integer
Parameters
card_num:
The sequence number of the device. This must be zero.
Return Value
This function returns a numeric card ID for the card initialized. A negative error
code would be returned in the even of an error. Possible error codes:
ERR_InvalidBoardNumber
ERR_BoardNoInit
ErrorOpenDriverFailed
ERR_OpenDriverFail
ERR_GetGPIOAddress
ERR_BoardBusy
Summary of Contents for KPXI
Page 96: ......