Page 1
ICP DAS for its use, nor for any infringements of patents or other rights of third parties resulting from its use. Copyright Copyright 2009 by ICP DAS. All rights are reserved. Trademark The names used for identification only may be registered trademarks of their respective companies. PCI-D64HU User’s Manual (Ver.1.0, Dec/2009)
The PCI-D64HU has the Card ID switch on board. Users can set Card ID on a board and recognize the board by the ID via software when using two or more PCI-D64HU cards in one computer.
1.2. Features The following is a list of general features for the PCI-D64HU. Check section 1.5 for more details. Support 32-bit, 33 MHz Universal PCI bus 32-CH 5V TTL Digital Inputs and 32-CH 5V TTL Digital Outputs ...
120 mm x 105 mm x 22 mm Power Consumption 200 mA @ +5 V typical (output no load) Operating Temperature 0 ~ 60 °C Storage Temperature -20 ~ 70 °C Humidity 5 ~ 85% RH, non-condensing PCI-D64HU User’s Manual (Ver.1.0, Dec/2009)
2. How to install software & utility 3. Location of the diagnostic program 1.7. Ordering Information Ordering Information: PCI-D64HU: 40 MB/s High-speed 32-CH DI and 32-CH DO Universal PCI DIO Card (RoHS). Includes one CA-4037W cable and two CA-4002 D-Sub connectors Accessories: ...
SW1: Card ID Switch The SW1 switch is used to set the card ID. The value is from 0 to 15. Please refer to table below for details. Switch Setting Card ID (On = 1) 0(Default) Default PCI-D64HU User’s Manual (Ver.1.0, Dec/2009)
2.3. Pin Assignment The PCI-D64HU has one 37-pin D-Sub connector (CON1) and one 40-pin pin header (CON2). Please refer figure below for the pin assignment of CON1 and CON2 Signal Name Description Direction Digital input channel x Input Digital output channel x...
2.4. Operation Theory The PCI-D64HU support 4 data transfer modes, they are direct programmed I/O control, timer pacer control, external clock mode and handshaking mode. This chapter descript the detailed operation of these 4 data transfer modes. Direct Program Control Mode The status of digital inputs and digital outputs can be directly accessed by I/O port access.
Page 12
3. If the FIFO is not empty and PCI bus is not occupied, the data will be transferred to main memory. Handshaking Mode The PCI-D64HU also supports handshaking data transfer mode. The data transfer rate is controlled by REQ and ACK signals to guarantee no data loss. The operation of DI Handshaking...
Page 13
When the DO FIFO is set as ring buffer mode, the last buffer of the DO buffer will be chained with the first buffer. No bus loading is required which makes PCI-D64HU perfect for repetitive pattern generation application. PCI-D64HU User’s Manual (Ver.1.0, Dec/2009)
Page 16
Characteristic of DI Handshaking Mode Characteristic of DO Handshaking Mode PCI-D64HU User’s Manual (Ver.1.0, Dec/2009)
Page 17
PCI-D64HU Function Reference (Version 1.0) PCI-D64HU Function Reference Version...
Page 18
The names used for identification only maybe registered trademarks of their respective companies. License The user can use, modify and backup this software on a single machine. The user may not reproduce, transfer or distribute this software, or any copy, in whole or in part. PCI-D64HU Function Reference Version...
DIP-Switch, and helps to identify multiple PCI-D64HU cards in your system. In other words, you no longer worry about the order that Operating System scans PCI-D64HU cards; the only thing you must take care is the correct relationship between the terminal-boards and PCI-D64HU cards.
The functions in this chapter provide the interface to Operating-System. By calling these functions, your applications can scan all active PCI-D64HU cards in your system, and get the specific Card-ID that is configured with the on-board Dip-Switch. Open the card before calling other functions in PCI-D64HU Library.
Page 23
ERROR_CARD_ID_DUPLICATED: There are multiple cards that are assigned the same Card ID, please check the settings of on-board Dip-Switch. ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function. PCI-D64HU Function Reference Version...
This function returns the Card ID based on the scanned-index. This routine will get the Card ID configured with on-board Dip-Switch. Parameters: ScannedIndex: The index that the active PCI-D64HU is scanned. This index begins from 0, and is less than the active PCI-D64HU cards. pCardID: The pointer to the memory that stores the specific Card ID.
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.
As Byte) As Integer Description: This function closes the device node of PCI-D64HU based on the specific Card ID. After calling this function, the PCI-D64HU card will be released, and other process can open it. 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 opened PCI-D64HU card with assigned Card ID, or the given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
Return Code: SUCCESS_NO_ERROR: The function returns successfully. ERROR_INVALID_CARD_ID: There is no opened PCI-D64HU card with assigned Card ID, or the given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
Return Code: SUCCESS_NO_ERROR: The function returns successfully. ERROR_INVALID_CARD_ID: There is no opened PCI-D64HU card with assigned Card ID, or the given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
Return Code: SUCCESS_NO_ERROR: The function returns successfully. ERROR_INVALID_CARD_ID: There is no opened PCI-D64HU card with assigned Card ID, or the given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
As Integer, ByVal wTrigPolarity As Integer, ByVal wI_REQ_Polarity As Integer) As Integer Description: This function configures the functionality of the following continuous digital-input. Parameters: bCardID: The specific Card ID that is configured with the on-board Dip-Switch. wTrigSource: TRIG_SOURCE_INT_PACER, TRIG_SOURCE_EXT_STROBE or TRIG_SOURCE_HANDSHAKE. wExtTrigEnable: DI_WAITING or DI_NOWAITING. PCI-D64HU Function Reference Version...
Page 32
TRIG_SOURCE_HANDSHAKE. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
OREQ_ENABLE. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
The pointer to the 32-bit variable that stores all digital-input. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_PORT_LINE: Indicates the invalid setting is assigned to parameter wLine.
DOUBLE_BUFFER_MODE_ENABLE or DOUBLE_BUFFER_MODE_DISABLE. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
The pointer to the user-provided buffer that the acquisition data will be transferred to. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_SYNCH_OP_WITH_ASYNC_CHECK: Indicates the digital-input acquisition is configured as SYCNH_OP mode, and d64h_di_async_check() is conflict with this operation mode.
The pointer to the variable that stores the number of acquired-samples 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_SAMPLE_COUNT_TOO_LARGE: Indicates the value of dwSampleCount is larger than the DI buffer in driver.
Page 42
ERROR_DI_ASYNC_CLEAR: Cannot terminate the current acquisition, please call GetLastError() for further system information. ERROR_CONTINUE_DI_START: Cannot start continuous digital-input acquisition, please call GetLastError() for further system information. PCI-D64HU Function Reference Version...
0 or DI_OVERRUN_STATUS. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_DO_PIO_WRITE: Cannot write the digital-output port, please call GetLastError() for further system information.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_PORT_LINE: Indicates the invalid setting is assigned to parameter wLine.
The pointer to the 32-bit variable that stores all digital-output data. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_PORT_LINE: Indicates the invalid setting is assigned to parameter wLine.
DOUBLE_BUFFER_MODE_ENABLE or DOUBLE_BUFFER_MODE_DISABLE. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
The pointer to the user-provided buffer that contains the DO output data. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_SYNCH_OP_WITH_ASYNC_CHECK: Indicates the digital-input acquisition is configured as SYCNH_OP mode, and d64h_do_async_check() is conflict with this operation mode.
The pointer to the variable that stores the number of acquired-samples 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_SAMPLE_COUNT_TOO_LARGE: Indicates the value of dwSampleCount is larger than the DI buffer in driver.
Page 54
ERROR_DO_ASYNC_CLEAR: Cannot terminate the current acquisition, please call GetLastError() for further system information. ERROR_CONTINUE_DO_START: Cannot start continuous digital-input acquisition, please call GetLastError() for further system information. PCI-D64HU Function Reference Version...
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_SAMPLE_COUNT_TOO_LARGE: Indicates the value of dwSampleCount is larger than the DI buffer in driver.
Page 56
: Cannot terminate the current acquisition, please call ERROR ASYNC CLEAR GetLastError for further system information ERROR CONTINUE START Cannot start continuous digital acquisition please call GetLastError for further system information PCI-D64HU Function Reference Version...
0 or DO_UNDERRUN_STATUS. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
The state to be set on external trigger line, OTRIG_HIGH or OTRIG_LOW. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR...
Please take the input sampling-ate into consideration when you set this parameter. Assuming the output date is sampled at 10MHz, the input data may update every 100ns. Therefore, wDIFilter * 25ns < 100ns wDIFilter < 4 Return Code: PCI-D64HU Function Reference Version...
Page 60
SUCCESS_NO_ERROR: The function returns successfully. ERROR_INVALID_CARD_ID: There is no active PCI-D64HU card configured with bCardID, or the given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_FILTER_SETTING: Indicates the filter-setting is out of range. ERROR_DIGITAL_FILTER_SET: Cannot set the digital filter, please call GetLastError() for further system information.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_FILTER_SETTING: Indicates the filter-setting is out of range.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_FILTER_SETTING: Indicates the filter-setting is out of range.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_FILTER_SETTING: Indicates the filter-setting is out of range.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_OREG_WIDTH: Indicates the width-setting is out of range.
Page 65
ERROR_OREQ_WIDTH_SET: Cannot set the width of O_REQ, please call GetLastError() for further system information PCI-D64HU Function Reference Version...
To avoid missing event-notification, the callback function must return before next triggered-event. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). PCI-D64HU Function Reference Version...
Page 67
ERROR_INVALID_EVENT_ACTION: Neither DIEnd nor DBEvent is assigned to parameter wEventType. ERROR_DI_EVENT_ATTACH: Cannot attach the notification-event to driver, please call GetLastError() for further system information. ERROR_DI_EVENT_DETACH: Cannot detach the notification-event from driver, please call GetLastError() for further system information. PCI-D64HU Function Reference Version...
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_EVENT_ACTION: Neither ADD_NOTIFICATION nor REMOVE_NOTIFICATION is assigned to parameter wEventEnable.
Page 73
PCI-D64HU Function Reference (Version 1.0) PCI-D64HU Function Reference Version...
Page 74
The names used for identification only maybe registered trademarks of their respective companies. License The user can use, modify and backup this software on a single machine. The user may not reproduce, transfer or distribute this software, or any copy, in whole or in part. PCI-D64HU Function Reference Version...
DIP-Switch, and helps to identify multiple PCI-D64HU cards in your system. In other words, you no longer worry about the order that Operating System scans PCI-D64HU cards; the only thing you must take care is the correct relationship between the terminal-boards and PCI-D64HU cards.
The functions in this chapter provide the interface to Operating-System. By calling these functions, your applications can scan all active PCI-D64HU cards in your system, and get the specific Card-ID that is configured with the on-board Dip-Switch. Open the card before calling other functions in PCI-D64HU Library.
Page 79
ERROR_CARD_ID_DUPLICATED: There are multiple cards that are assigned the same Card ID, please check the settings of on-board Dip-Switch. ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function. PCI-D64HU Function Reference Version...
This function returns the Card ID based on the scanned-index. This routine will get the Card ID configured with on-board Dip-Switch. Parameters: ScannedIndex: The index that the active PCI-D64HU is scanned. This index begins from 0, and is less than the active PCI-D64HU cards. pCardID: The pointer to the memory that stores the specific Card ID.
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.
As Byte) As Integer Description: This function closes the device node of PCI-D64HU based on the specific Card ID. After calling this function, the PCI-D64HU card will be released, and other process can open it. 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 opened PCI-D64HU card with assigned Card ID, or the given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
Return Code: SUCCESS_NO_ERROR: The function returns successfully. ERROR_INVALID_CARD_ID: There is no opened PCI-D64HU card with assigned Card ID, or the given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
Return Code: SUCCESS_NO_ERROR: The function returns successfully. ERROR_INVALID_CARD_ID: There is no opened PCI-D64HU card with assigned Card ID, or the given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
Return Code: SUCCESS_NO_ERROR: The function returns successfully. ERROR_INVALID_CARD_ID: There is no opened PCI-D64HU card with assigned Card ID, or the given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
As Integer, ByVal wTrigPolarity As Integer, ByVal wI_REQ_Polarity As Integer) As Integer Description: This function configures the functionality of the following continuous digital-input. Parameters: bCardID: The specific Card ID that is configured with the on-board Dip-Switch. wTrigSource: TRIG_SOURCE_INT_PACER, TRIG_SOURCE_EXT_STROBE or TRIG_SOURCE_HANDSHAKE. wExtTrigEnable: DI_WAITING or DI_NOWAITING. PCI-D64HU Function Reference Version...
Page 88
TRIG_SOURCE_HANDSHAKE. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
OREQ_ENABLE. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
The pointer to the 32-bit variable that stores all digital-input. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_PORT_LINE: Indicates the invalid setting is assigned to parameter wLine.
DOUBLE_BUFFER_MODE_ENABLE or DOUBLE_BUFFER_MODE_DISABLE. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
The pointer to the user-provided buffer that the acquisition data will be transferred to. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_SYNCH_OP_WITH_ASYNC_CHECK: Indicates the digital-input acquisition is configured as SYCNH_OP mode, and d64h_di_async_check() is conflict with this operation mode.
The pointer to the variable that stores the number of acquired-samples 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_SAMPLE_COUNT_TOO_LARGE: Indicates the value of dwSampleCount is larger than the DI buffer in driver.
Page 98
ERROR_DI_ASYNC_CLEAR: Cannot terminate the current acquisition, please call GetLastError() for further system information. ERROR_CONTINUE_DI_START: Cannot start continuous digital-input acquisition, please call GetLastError() for further system information. PCI-D64HU Function Reference Version...
0 or DI_OVERRUN_STATUS. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_DO_PIO_WRITE: Cannot write the digital-output port, please call GetLastError() for further system information.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_PORT_LINE: Indicates the invalid setting is assigned to parameter wLine.
The pointer to the 32-bit variable that stores all digital-output data. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_PORT_LINE: Indicates the invalid setting is assigned to parameter wLine.
DOUBLE_BUFFER_MODE_ENABLE or DOUBLE_BUFFER_MODE_DISABLE. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
The pointer to the user-provided buffer that contains the DO output data. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_MAPPED_ADDRESS: Indicates the mapped address is invalid.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_SYNCH_OP_WITH_ASYNC_CHECK: Indicates the digital-input acquisition is configured as SYCNH_OP mode, and d64h_do_async_check() is conflict with this operation mode.
The pointer to the variable that stores the number of acquired-samples 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_SAMPLE_COUNT_TOO_LARGE: Indicates the value of dwSampleCount is larger than the DI buffer in driver.
Page 110
ERROR_DO_ASYNC_CLEAR: Cannot terminate the current acquisition, please call GetLastError() for further system information. ERROR_CONTINUE_DO_START: Cannot start continuous digital-input acquisition, please call GetLastError() for further system information. PCI-D64HU Function Reference Version...
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_SAMPLE_COUNT_TOO_LARGE: Indicates the value of dwSampleCount is larger than the DI buffer in driver.
Page 112
: Cannot terminate the current acquisition, please call ERROR ASYNC CLEAR GetLastError for further system information ERROR CONTINUE START Cannot start continuous digital acquisition please call GetLastError for further system information PCI-D64HU Function Reference Version...
0 or DO_UNDERRUN_STATUS. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying memory, please check the pointer-type parameter you assign to this function.
The state to be set on external trigger line, OTRIG_HIGH or OTRIG_LOW. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR...
Please take the input sampling-ate into consideration when you set this parameter. Assuming the output date is sampled at 10MHz, the input data may update every 100ns. Therefore, wDIFilter * 25ns < 100ns wDIFilter < 4 Return Code: PCI-D64HU Function Reference Version...
Page 116
SUCCESS_NO_ERROR: The function returns successfully. ERROR_INVALID_CARD_ID: There is no active PCI-D64HU card configured with bCardID, or the given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_FILTER_SETTING: Indicates the filter-setting is out of range. ERROR_DIGITAL_FILTER_SET: Cannot set the digital filter, please call GetLastError() for further system information.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_FILTER_SETTING: Indicates the filter-setting is out of range.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_FILTER_SETTING: Indicates the filter-setting is out of range.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_FILTER_SETTING: Indicates the filter-setting is out of range.
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_OREG_WIDTH: Indicates the width-setting is out of range.
Page 121
ERROR_OREQ_WIDTH_SET: Cannot set the width of O_REQ, please call GetLastError() for further system information PCI-D64HU Function Reference Version...
To avoid missing event-notification, the callback function must return before next triggered-event. 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 given Card ID is invalid (for instance, Card ID is assigned to 254). PCI-D64HU Function Reference Version...
Page 123
ERROR_INVALID_EVENT_ACTION: Neither DIEnd nor DBEvent is assigned to parameter wEventType. ERROR_DI_EVENT_ATTACH: Cannot attach the notification-event to driver, please call GetLastError() for further system information. ERROR_DI_EVENT_DETACH: Cannot detach the notification-event from driver, please call GetLastError() for further system information. PCI-D64HU Function Reference Version...
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 given Card ID is invalid (for instance, Card ID is assigned to 254). ERROR_INVALID_EVENT_ACTION: Neither ADD_NOTIFICATION nor REMOVE_NOTIFICATION is assigned to parameter wEventEnable.
Need help?
Do you have a question about the PCI-D64HU and is the answer not in the manual?
Questions and answers