we_OpenCard 

long we_OpenCard(
     long ModelID,   //identifies the model type of the card being opened
     long BaseAddr   //address the card is configured to use
     );

Summary

The we_OpenCard function is used to open and initialize a Portal I/O card.   It returns a handle that identifies the card to the other Portal API functions. This function checks for errors and conflicts when it opens the card.

Parameters

ModelID:
    Identifies which model type of card is being opened. The API reference page contains a list of valid IDs.
BaseAddr:
    Identifies the base address that the card has been set up to use.

Return Values

If the card has been opened successfully, the function will return a new handle for that card. Valid handles are always greater than zero. If an error has occured, a errorr code will be returned instead of a new handle. Error codes are less than zero. Error codes are defined in the header file WeCrdError.h Errors that may be returned include:

Copyright 2004 Winford Engineering.