ICP DAS USA PCI-D64HU User Manual
Hide thumbs Also See for PCI-D64HU:
Table of Contents

Advertisement

Quick Links

Warranty
All products manufactured by ICP DAS are warranted against defective materials for a
period of one year from the date of delivery to the original purchaser.
Warning
ICP DAS assume no liability for damages consequent to the use of this product. ICP
DAS reserves the right to change this manual at any time without notice. The information
furnished by ICP DAS is believed to be accurate and reliable. However, no responsibility is
assumed by 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)
PCI-D64HU
User's Manual
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PCI-D64HU and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ICP DAS USA PCI-D64HU

  • 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)
  • Page 2: Table Of Contents

    Block Diagram........................5 1.4. Specifications ........................6 1.5. Product Check List ......................7 Hardware Configuration....................8 2.1. Board Layout........................8 2.2. Switch Setting ........................9 2.3. Pin Assignment ........................10 2.4. Operation Theory........................11 2.5. Timing Characteristic......................14 PCI-D64HU User’s Manual (Ver.1.0, Dec/2009)
  • Page 3: Introduction

    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.
  • Page 4: Features

    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 ...
  • Page 5: Block Diagram

    1.4. Block Diagram PCI-D64HU User’s Manual (Ver.1.0, Dec/2009)
  • Page 6: Specifications

    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)
  • Page 7: Product Check List

    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: ...
  • Page 8: Hardware Configuration

    2. Hardware Configuration 2.1. Board Layout Item Description I/O connector (37-pin D-Sub female) CON1 CON2 I/O connector (40-pin Box Header) Card ID switch Factory reserved PCI-D64HU User’s Manual (Ver.1.0, Dec/2009)
  • Page 9: Switch Setting

    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)
  • Page 10: Pin Assignment

    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...
  • Page 11: Operation Theory

    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 14: Timing Characteristic

    ( Output Signal ) DO0 ~ DO31 Valid Data ( Output Signal ) (2^(n+1)) * 25ns 25ns 2^(n+1)) * 25ns tH = <= tS <= ( (2^(n+1)) * 25ns tL >= Notes: n = 0~7 PCI-D64HU User’s Manual (Ver.1.0, Dec/2009)
  • Page 15 Characteristic of IREQ in External Clock Mode IREQ Rising Edge Trigger: IREQ Falling Edge Trigger: 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...
  • Page 19 ............................15 d64h_do_config ............................17 DIGITAL INPUT FUNCTIONS............................18 d64h_di_readport............................18 d64h_di_readline ............................19 d64h_di_async_dblbuf_mode........................20 d64h_di_async_dblbuf_halfready .......................21 d64h_di_async_dblbuf_transfer........................22 d64h_di_async_check ..........................23 d64h_di_async_clear ..........................24 d64h_continue_readport ..........................25 d64h_conti_di_status ..........................27 DIGITAL OUTPUT FUNCTIONS..........................28 d64h_do_writeport............................28 d64h_do_writeline ............................29 d64h_do_readport............................30 d64h_do_readline ............................31 d64h_do_async_dblbuf_mode........................32 d64h_do_async_dblbuf_halfready ......................33 d64h_do_async_dblbuf_transfer.........................34 d64h_do_async_check ..........................35 PCI-D64HU Function Reference Version...
  • Page 20 ..........................36 5.10 d64h_continue_writeport..........................37 5.11 d64h_continue_pattern_write ........................39 5.12 d64h_conti_do_status ..........................41 5.13 d64h_do_ext_trigline_write ........................42 DIGITAL FILTER FUNCTIONS............................43 d64h_DI_filter_set ............................43 d64h_IREQ_filter_set ..........................45 d64h_OACK_filter_set..........................46 d64h_ITRG_filter_set ..........................47 d64h_OREQ_width_set..........................48 EVENT NOTIFICATION FUNCTIONS ........................50 d64h_di_event_callback ..........................50 d64h_do_event_callback..........................52 ERROR CODE .................................54 PCI-D64HU Function Reference Version...
  • Page 21: Introduction

    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.
  • Page 22: System Initialization

    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...
  • Page 24: D64H_Get_Cardinfo

    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.
  • Page 25: D64H_Open

    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.
  • Page 26: D64H_Close

    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.
  • Page 27: D64H_Di_Available_Memory

    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.
  • Page 28: D64H_Do_Available_Memory

    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.
  • Page 29: D64H_Di_Buffer_Get

    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.
  • Page 30: D64H_Do_Buffer_Get

    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.
  • Page 31: Digital Input/Output Configuration

    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.
  • Page 33: D64H_Do_Config

    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.
  • Page 34: Digital Input Functions

    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.
  • Page 35: D64H_Di_Readline

    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.
  • Page 36: D64H_Di_Async_Dblbuf_Mode

    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.
  • Page 37: D64H_Di_Async_Dblbuf_Halfready

    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.
  • Page 38: D64H_Di_Async_Dblbuf_Transfer

    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.
  • Page 39: D64H_Di_Async_Check

    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.
  • Page 40: D64H_Di_Async_Clear

    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.
  • Page 41: D64H_Continue_Readport

    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...
  • Page 43: D64H_Conti_Di_Status

    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.
  • Page 44: Digital Output Functions

    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.
  • Page 45: D64H_Do_Writeline

    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.
  • Page 46: D64H_Do_Readport

    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.
  • Page 47: D64H_Do_Readline

    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.
  • Page 48: D64H_Do_Async_Dblbuf_Mode

    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.
  • Page 49: D64H_Do_Async_Dblbuf_Halfready

    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.
  • Page 50: D64H_Do_Async_Dblbuf_Transfer

    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.
  • Page 51: D64H_Do_Async_Check

    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.
  • Page 52: D64H_Do_Async_Clear

    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.
  • Page 53: D64H_Continue_Writeport

    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...
  • Page 55: D64H_Continue_Pattern_Write

    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...
  • Page 57: D64H_Conti_Do_Status

    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.
  • Page 58: D64H_Do_Ext_Trigline_Write

    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...
  • Page 59: Digital Filter Functions

    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.
  • Page 61: D64H_Ireq_Filter_Set

    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.
  • Page 62: D64H_Oack_Filter_Set

    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.
  • Page 63: D64H_Itrg_Filter_Set

    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.
  • Page 64: D64H_Oreq_Width_Set

    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...
  • Page 66: Event Notification Functions

    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...
  • Page 68: D64H_Do_Event_Callback

    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 69 PCI-D64HU Function Reference Version...
  • Page 70: Error Code

    ERROR_DI_CONFIG -105 ERROR_DI_ASYNC_CLEAR -106 ERROR_DI_ASYNC_CHECK -107 ERROR_DI_ASYNC_HALF_READY -108 ERROR_DI_PIO_READ -109 ERROR_DO_CONFIG -110 ERROR_DO_ASYNC_CLEAR -111 ERROR_DO_ASYNC_CHECK -112 ERROR_DO_PIO_READ -113 ERROR_DO_PIO_WRITE -114 ERROR_DO_PIO_LINE_WRITE -115 ERROR_CONTINUE_DI_START -116 ERROR_CONTINUE_DO_START -117 ERROR_FIFO_STATUS_GET -118 ERROR_DO_EXT_TRIGLINE_WRITE -119 ERROR_DO_HALF_READY -120 ERROR_DIGITAL_FILTER_SET -121 ERROR_OREQ_WIDTH_SET -122 PCI-D64HU Function Reference Version...
  • Page 71 ERROR_INVALID_TRIGGER_SOURCE -206 ERROR_INVALID_TRIGGER_ENABLE -207 ERROR_INVALID_TRIGGER_POLARITY -208 ERROR_INVALID_IREQ_POLARITY -209 ERROR_INVALID_OTRIG_LEVEL -210 ERROR_INVALID_OREG_ENABLE -211 ERROR_INVALID_DOUBLE_BUFFER_MODE -212 ERROR_INVALID_SYNCH_OP_MODE -213 ERROR_SAMPLE_COUNT_IS_ODD -214 ERROR_INVALID_DO_ITERATIONS -215 ERROR_INVALID_EVENT_ACTION -216 ERROR_INVALID_CALLBACK_ADDRESS -217 ERROR_INVALID_BUFFER_ADDRESS -218 ERROR_INVALID_PATTERN_SIZE -219 ERROR_INVALID_FILTER_SETTING -220 ERROR_INVALID_OREG_WIDTH -221 Runtime Error: ERROR_RUNTIME_BASE -300 PCI-D64HU Function Reference Version...
  • Page 72 DIO Runtime Error: ERROR_DIO_RUNTIME_BASE -500 ERROR_DEVICE_POWER_DOWN -501 ERROR_INVALID_MAPPED_ADDRESS -502 ERROR_BUFFER_NOT_ENOUGH -503 ERROR_DMA_NOT_AVAILABLE -504 ERROR_DMA_NOT_COMPLETE -505 ERROR_DMA_NOT_STARTED -506 ERROR_DMA_NOT_PAUSED -507 ERROR_DMA_IS_PAUSED -508 ERROR_DMA_IN_PROGRESS -509 ERROR_INVALID_SAMPLE_RATE -510 ERROR_SAMPLE_COUNT_TOO_LARGE -511 ERROR_SYNCH_OP_WITH_DOUBLE_BUFFER_MODE -512 ERROR_SYNCH_OP_WITH_ASYNC_CHECK -513 ERROR_UNSUPPORTED_SETTING -514 ERROR_PATTERN_OUT_WITH_DOUBLE_BUFFER_MODE -515 ERROR_PATTERN_OUT_IN_PROGRESS -516 PCI-D64HU Function Reference Version...
  • 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...
  • Page 75 ............................15 d64h_do_config ............................17 DIGITAL INPUT FUNCTIONS............................18 d64h_di_readport............................18 d64h_di_readline ............................19 d64h_di_async_dblbuf_mode........................20 d64h_di_async_dblbuf_halfready .......................21 d64h_di_async_dblbuf_transfer........................22 d64h_di_async_check ..........................23 d64h_di_async_clear ..........................24 d64h_continue_readport ..........................25 d64h_conti_di_status ..........................27 DIGITAL OUTPUT FUNCTIONS..........................28 d64h_do_writeport............................28 d64h_do_writeline ............................29 d64h_do_readport............................30 d64h_do_readline ............................31 d64h_do_async_dblbuf_mode........................32 d64h_do_async_dblbuf_halfready ......................33 d64h_do_async_dblbuf_transfer.........................34 d64h_do_async_check ..........................35 PCI-D64HU Function Reference Version...
  • Page 76: Pci-D64Hu Function Reference Version

    ..........................36 5.10 d64h_continue_writeport..........................37 5.11 d64h_continue_pattern_write ........................39 5.12 d64h_conti_do_status ..........................41 5.13 d64h_do_ext_trigline_write ........................42 DIGITAL FILTER FUNCTIONS............................43 d64h_DI_filter_set ............................43 d64h_IREQ_filter_set ..........................45 d64h_OACK_filter_set..........................46 d64h_ITRG_filter_set ..........................47 d64h_OREQ_width_set..........................48 EVENT NOTIFICATION FUNCTIONS ........................50 d64h_di_event_callback ..........................50 d64h_do_event_callback..........................52 ERROR CODE .................................54 PCI-D64HU Function Reference Version...
  • Page 77: Introduction

    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.
  • Page 78: System Initialization

    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...
  • Page 80: D64H_Get_Cardinfo

    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.
  • Page 81: D64H_Open

    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.
  • Page 82: D64H_Close

    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.
  • Page 83: D64H_Di_Available_Memory

    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.
  • Page 84: D64H_Do_Available_Memory

    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.
  • Page 85: D64H_Di_Buffer_Get

    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.
  • Page 86: D64H_Do_Buffer_Get

    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.
  • Page 87: Digital Input/Output Configuration

    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.
  • Page 89: D64H_Do_Config

    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.
  • Page 90: Digital Input Functions

    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.
  • Page 91: D64H_Di_Readline

    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.
  • Page 92: D64H_Di_Async_Dblbuf_Mode

    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.
  • Page 93: D64H_Di_Async_Dblbuf_Halfready

    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.
  • Page 94: D64H_Di_Async_Dblbuf_Transfer

    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.
  • Page 95: D64H_Di_Async_Check

    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.
  • Page 96: D64H_Di_Async_Clear

    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.
  • Page 97: D64H_Continue_Readport

    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...
  • Page 99: D64H_Conti_Di_Status

    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.
  • Page 100: Digital Output Functions

    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.
  • Page 101: D64H_Do_Writeline

    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.
  • Page 102: D64H_Do_Readport

    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.
  • Page 103: D64H_Do_Readline

    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.
  • Page 104: D64H_Do_Async_Dblbuf_Mode

    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.
  • Page 105: D64H_Do_Async_Dblbuf_Halfready

    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.
  • Page 106: D64H_Do_Async_Dblbuf_Transfer

    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.
  • Page 107: D64H_Do_Async_Check

    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.
  • Page 108: D64H_Do_Async_Clear

    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.
  • Page 109: D64H_Continue_Writeport

    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...
  • Page 111: D64H_Continue_Pattern_Write

    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...
  • Page 113: D64H_Conti_Do_Status

    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.
  • Page 114: D64H_Do_Ext_Trigline_Write

    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...
  • Page 115: Digital Filter Functions

    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.
  • Page 117: D64H_Ireq_Filter_Set

    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.
  • Page 118: D64H_Oack_Filter_Set

    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.
  • Page 119: D64H_Itrg_Filter_Set

    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.
  • Page 120: D64H_Oreq_Width_Set

    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...
  • Page 122: Event Notification Functions

    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...
  • Page 124: D64H_Do_Event_Callback

    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 125 PCI-D64HU Function Reference Version...
  • Page 126: Error Code

    ERROR_DI_CONFIG -105 ERROR_DI_ASYNC_CLEAR -106 ERROR_DI_ASYNC_CHECK -107 ERROR_DI_ASYNC_HALF_READY -108 ERROR_DI_PIO_READ -109 ERROR_DO_CONFIG -110 ERROR_DO_ASYNC_CLEAR -111 ERROR_DO_ASYNC_CHECK -112 ERROR_DO_PIO_READ -113 ERROR_DO_PIO_WRITE -114 ERROR_DO_PIO_LINE_WRITE -115 ERROR_CONTINUE_DI_START -116 ERROR_CONTINUE_DO_START -117 ERROR_FIFO_STATUS_GET -118 ERROR_DO_EXT_TRIGLINE_WRITE -119 ERROR_DO_HALF_READY -120 ERROR_DIGITAL_FILTER_SET -121 ERROR_OREQ_WIDTH_SET -122 PCI-D64HU Function Reference Version...
  • Page 127 ERROR_INVALID_TRIGGER_SOURCE -206 ERROR_INVALID_TRIGGER_ENABLE -207 ERROR_INVALID_TRIGGER_POLARITY -208 ERROR_INVALID_IREQ_POLARITY -209 ERROR_INVALID_OTRIG_LEVEL -210 ERROR_INVALID_OREG_ENABLE -211 ERROR_INVALID_DOUBLE_BUFFER_MODE -212 ERROR_INVALID_SYNCH_OP_MODE -213 ERROR_SAMPLE_COUNT_IS_ODD -214 ERROR_INVALID_DO_ITERATIONS -215 ERROR_INVALID_EVENT_ACTION -216 ERROR_INVALID_CALLBACK_ADDRESS -217 ERROR_INVALID_BUFFER_ADDRESS -218 ERROR_INVALID_PATTERN_SIZE -219 ERROR_INVALID_FILTER_SETTING -220 ERROR_INVALID_OREG_WIDTH -221 Runtime Error: ERROR_RUNTIME_BASE -300 PCI-D64HU Function Reference Version...
  • Page 128 DIO Runtime Error: ERROR_DIO_RUNTIME_BASE -500 ERROR_DEVICE_POWER_DOWN -501 ERROR_INVALID_MAPPED_ADDRESS -502 ERROR_BUFFER_NOT_ENOUGH -503 ERROR_DMA_NOT_AVAILABLE -504 ERROR_DMA_NOT_COMPLETE -505 ERROR_DMA_NOT_STARTED -506 ERROR_DMA_NOT_PAUSED -507 ERROR_DMA_IS_PAUSED -508 ERROR_DMA_IN_PROGRESS -509 ERROR_INVALID_SAMPLE_RATE -510 ERROR_SAMPLE_COUNT_TOO_LARGE -511 ERROR_SYNCH_OP_WITH_DOUBLE_BUFFER_MODE -512 ERROR_SYNCH_OP_WITH_ASYNC_CHECK -513 ERROR_UNSUPPORTED_SETTING -514 ERROR_PATTERN_OUT_WITH_DOUBLE_BUFFER_MODE -515 ERROR_PATTERN_OUT_IN_PROGRESS -516 PCI-D64HU Function Reference Version...

Table of Contents