D64H_Open - ICP DAS USA PCI-D64HU User Manual

Hide thumbs Also See for PCI-D64HU:
Table of Contents

Advertisement

2.3

d64h_open

VC6
short d64h_open(BYTE bCardID)
VB6
d64h_open(ByVal bCardID As Byte) As Integer
Description:
This function opens the device node of PCI-D64HU based on the specific Card ID. If this function
returns successfully, the process that calls this function will own that specific device until d64h_close()
is called. The device node of PCI-D64HU is ought to be owned before calling other functions. It's
recommended to call d64h_scan() and d64h_get_cardinfo() to get the Card ID.
Parameters:
bCardID: The specific Card ID that is configured with the on-board Dip-Switch.
Return Code:
SUCCESS_NO_ERROR: The function returns successfully.
ERROR_INVALID_CARD_ID: There is no active PCI-D64HU card configured with bCardID, or the
ERROR_DEVICE_OPEN: Fail to open the device-node of PCI-D64HU. Please make sure no other
ERROR_EVENT_CREATE_FAILED: Fail to create the related events for digital input/output
ERROR_MEMORY_MAP: Indicates the Memory-Mapping is failed, please check the event logs in
PCI-D64HU Function Reference Version
given Card ID is invalid (for instance, Card ID is assigned to 254).
process owns that PCI-D64HU card.
operations.
Event Viewer.
9

Advertisement

Table of Contents
loading

Table of Contents